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}}} = {{{1}}}
+
|#default = {{lc:{{{1}}}}}
}}">'''{{{2}}}'''</font><noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude><br><br><br>
+
}}">{{#switch:{{lc:{{{style|}}}}}
<noinclude>Usage is as follows:<br>
+
|normal = {{{2}}}
 
+
|bold = '''{{{2}}}'''
{| style="background:none"
+
|italic = ''{{{2}}}''
!style="width:200px"|Code
+
|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
 
|-
 
|-
|{{tl2|Color|beige|XXX}}
+
| Beige || {{Color|beige|XXX}}
|{{Color|beige|XXX}}
 
 
|-
 
|-
|{{tl2|Color|light blue|XXX}}
+
| Light Blue || {{Color|light blue|XXX}}
|{{Color|light blue|XXX}}
 
 
|-
 
|-
|{{tl2|Color|fire|XXX}}
+
| NM || {{Color|NM|XXX}}
|{{Color|fire|XXX}}
 
 
|-
 
|-
|{{tl2|Color|earth|XXX}}
+
| Positive || {{Color|positive|XXX}}
|{{Color|earth|XXX}}
 
 
|-
 
|-
|{{tl2|Color|water|XXX}}
+
| Negative || {{Color|negative|XXX}}
|{{Color|water|XXX}}
 
 
|-
 
|-
|{{tl2|Color|wind|XXX}}
+
| Neutral || {{Color|neutral|XXX}}
|{{Color|wind|XXX}}
+
|}
|-
+
 
|{{tl2|Color|ice|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.
|{{Color|ice|XXX}}
+
==See Also==
|-
+
*[[Template:Colorlink]] - a template used to make colored links.
|{{tl2|Color|lightning|XXX}}
+
</noinclude>
|{{Color|lightning|XXX}}
 
|-
 
|{{tl2|Color|light|XXX}}
 
|{{Color|light|XXX}}
 
|-
 
|{{tl2|Color|dark|XXX}}
 
|{{Color|dark|XXX}}
 
|-
 
|{{tl2|Color|NM|XXX}}
 
|{{Color|NM|XXX}}
 
|-
 
|{{tl2|Color|positive|XXX}}
 
|{{Color|positive|XXX}}
 
|-
 
|{{tl2|Color|negative|XXX}}
 
|{{Color|negative|XXX}}
 
|-
 
|{{tl2|Color|neutral|XXX}}
 
|{{Color|neutral|XXX}}
 
|-
 
|}</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]