Template:Color: Difference between revisions

From HorizonXI Wiki
(Created page with "<font color="{{#switch:{{lc:{{{1}}}}} |beige = #cc9900 |light blue = #33ccff |fire = red |earth = #cc9900 |water = blue |wind = green |ice = #33CCFF |lightning = purple |light = gray |dark = black |nm = red |positive = green |negative = red |neutral = #cc9900 |#default = {{lc:{{{1}}}}} }}">{{#switch:{{lc:{{{style|}}}}} |normal = {{{2}}} |bold = '''{{{2}}}''' |italic = ''{{{2}}}'' |bold-italic = '''''{{{2}}}''''' |'''{{{2}}}''' }}</font><noinclude> Category:Templates|{...")
Tag: visualeditor-wikitext
(No difference)

Revision as of 22:04, 18 August 2022

{{{2}}}

Usage

{{Color|color|text}}

Style can be set to either normal, bold, italic, or bold-italic by declaring the style variable (the default is bold).

{{Color|style=normal|color|text}}

Any color may be used, but there are several predefined colors included for convenience:

Color Result
Beige XXX
Light Blue XXX
NM XXX
Positive XXX
Negative XXX
Neutral XXX

In addition, all the elemental colors that are used for each crystal are in the template, (i.e. {{Fire}}). However, this template is not actually to be used on any crystal or element references, but only for if you want to mimic the color in other places.

Color Result
Fire XXX
Water XXX
Lightning XXX
Earth XXX
wind XXX
ice XXX
light XXX
dark XXX

Be very mindful of using this template, users with custom themes may not be able to read text with hard-coded colors if an appropriate background color is not also defined.

See Also