Difference between revisions of "Template:Color"
*>Karuberu m (link to new Colorlink template) |
|||
(16 intermediate revisions by 4 users not shown) | |||
Line 14: | Line 14: | ||
|negative = red | |negative = red | ||
|neutral = #cc9900 | |neutral = #cc9900 | ||
− | |{{{1}}} = {{{ | + | |#default = {{lc:{{{1}}}}} |
− | }} | + | }}">{{#switch:{{lc:{{{style|}}}}} |
− | + | |normal = {{{2}}} | |
− | + | |bold = '''{{{2}}}''' | |
− | {| | + | |italic = ''{{{2}}}'' |
− | ! | + | |bold-italic = '''''{{{2}}}''''' |
− | !Result | + | |'''{{{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}} |
− | |{{Color|beige|XXX}} | ||
|- | |- | ||
− | | | + | | Light Blue || {{Color|light blue|XXX}} |
− | |{{Color|light blue|XXX}} | ||
|- | |- | ||
− | | | + | | NM || {{Color|NM|XXX}} |
− | |{{Color| | ||
|- | |- | ||
− | | | + | | Positive || {{Color|positive|XXX}} |
− | |{{Color| | ||
|- | |- | ||
− | | | + | | Negative || {{Color|negative|XXX}} |
− | |{{Color| | ||
|- | |- | ||
− | | | + | | Neutral || {{Color|neutral|XXX}} |
− | |{{Color| | + | |} |
− | + | ||
− | + | 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.