Difference between revisions of "Template:Color"
*>Karuberu (New page: <font color="{{#switch:{{lc:{{{1}}}}} |beige = #cc9900 |light blue = #33ccff |{{{1}}} = {{{1}}} }}">'''{{{2}}}'''</font><noinclude>{{PAGENAME}}</noinclude>) |
*>Karuberu m (link to new Colorlink template) |
||
(20 intermediate revisions by 5 users not shown) | |||
Line 2: | Line 2: | ||
|beige = #cc9900 | |beige = #cc9900 | ||
|light blue = #33ccff | |light blue = #33ccff | ||
− | |{{{1}}} = {{{ | + | |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|{{PAGENAME}}]] | ||
+ | ==Usage== | ||
+ | <pre> | ||
+ | {{Color|color|text}} | ||
+ | </pre> | ||
+ | Style can be set to either normal, bold, italic, or bold-italic by declaring the style variable (the default is bold). | ||
+ | <pre> | ||
+ | {{Color|style=normal|color|text}} | ||
+ | </pre> | ||
+ | Any color may be used, but there are several predefined colors included for convenience: | ||
+ | {| width="20%" | ||
+ | !align="left"| Color | ||
+ | !align="left"| Result | ||
+ | |- | ||
+ | | Beige || {{Color|beige|XXX}} | ||
+ | |- | ||
+ | | Light Blue || {{Color|light blue|XXX}} | ||
+ | |- | ||
+ | | NM || {{Color|NM|XXX}} | ||
+ | |- | ||
+ | | Positive || {{Color|positive|XXX}} | ||
+ | |- | ||
+ | | Negative || {{Color|negative|XXX}} | ||
+ | |- | ||
+ | | Neutral || {{Color|neutral|XXX}} | ||
+ | |} | ||
+ | |||
+ | In addition, all the elemental colors that are used for each crystal are in the template, (i.e. {{[[Template:Fire|{{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. | ||
+ | ==See Also== | ||
+ | *[[Template:Colorlink]] - a template used to make colored links. | ||
+ | </noinclude> |
Latest revision as of 15:40, 22 December 2008
{{{2}}}
Usage[edit]
{{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.
See Also[edit]
- Template:Colorlink - a template used to make colored links.