Template:ColoredText/doc
Jump to navigation
Jump to search
Red text using one of the predefined colors:
Gold text using hex code for gold:
Orange text using HSL:
CosmoGreen text using one of the CSS variables:
Colors
Red text using one of the predefined colors: red
{{ColoredText|red|hello world, I'm red}}
This text hello world, I'm red has custom color.
Gold text using hex code for gold: #ffd700
{{ColoredText|#ffd700|GOLD GOLD GOLD}}
This text GOLD GOLD GOLD has custom color.
Orange text using HSL: hsl(24, 100%, 50%)
{{ColoredText|hsl(24, 100%, 50%)|orange energy}}
This text orange energy has custom color.
CosmoGreen text using one of the CSS variables: --color-cosmoGreen
{{ColoredText|--color-cosmoGreen|space green}}
This text space green has custom color.
Modifiers
Disabling inline text
{{ColoredText|inline=0|--color-cosmoGreen|space green}}
This text
space green
is not inline.
Other
Multiline text (inline)
To add linebreaks use
<br>
, {{br}}
will not work.This text {{ColoredText|--color-cosmoGreen|space green<br>
moreeee greeen<br>
green}} is multiline inline text.
This text space green
moreeee greeen
green is multiline inline text.
Multiline text (NOT inline)
This text {{ColoredText|space green{{br}}
moreeee greeen<br>
green|--color-cosmoGreen|inline=0}} is multiline text NOT in inline mode.
This text
space green
moreeee greeen
green
is multiline text NOT in inline mode.