Template:Raw Minecraft Text/doc

Overview
Raw Minecraft Text (Rmt) shows and styles in-game Minecraft text. Dialogue is a similar template that is suitable for showing Minecraft dialogue.

Important Note: One major difference between Rmt and Dialogue is that Rmt displays inline, and Dialogue displays as a block. Dialogue supports line modifiers (for example, $[c] for center text), while for Rmt you would need other methods to achieve this (for example, wrapping with &#60;center&#62;).

Syntax
1 1
 * - The minecraft text for display
 * Use & (INSTEAD OF §) to specify colors or formatting. This uses minecraft formatting codes. A / or a line break both add a line break.
 * - The font size (Raw Minecraft Text defaults to 12px) (Dialogue defaults to 11px)
 * - Any other styles to add.
 * - Any other classes to add to the parent div.

For Dialogue only, you may use line modifiers at the start of each line you apply the effect:
 * Syntax: $[ ]Your Text
 * c will center that line of text. For example, $[c]Centered Line
 * r will align that line to the right. For example, $[r]Right Line
 * It is easier to use /  to center/right align the whole text

Formatting
The Raw Minecraft Text string accepts Color/Formatting Codes specified in w:c:minecraft:Formatting codes with Java version behaviour, with the following rules:
 * Use & followed by a letter representing a Color/Formatting Code. The specified color/formatting(s) will affect the rest of the string. For example, &c starts a string colored in red, and &a&l starts a string colored in green and in bold font.
 * When going into a new line or when &r is used, all previous Color/Formatting Codes are discarded.
 * When using a color code (-, -), all previous formatting code are discarded.
 * A new line can be inserted with /.
 * The ampersand and the forward slash & / must be escaped as \& \/ to be treated correctly as normal text.