FANDOM


m (This revision completely broke the main page, go go :D)
(cleanup of usage and added style variable)
Line 2: Line 2:
 
|beige = #cc9900
 
|beige = #cc9900
 
|light blue = #33ccff
 
|light blue = #33ccff
  +
|nm = red
  +
|positive = green
  +
|negative = red
  +
|neutral = #cc9900
 
|fire = red
 
|fire = red
 
|earth = #cc9900
 
|earth = #cc9900
Line 10: Line 14:
 
|light = gray
 
|light = gray
 
|dark = black
 
|dark = black
|nm = red
+
|{{lc:{{{1}}}}} = {{lc:{{{1}}}}}
|positive = green
+
}}">{{#switch:{{lc:{{{style|}}}}}
|negative = red
+
|normal = {{{2}}}
|neutral = #cc9900
+
|bold = '''{{{2}}}'''
|{{{1}}} = {{{1}}}
+
|italic = ''{{{2}}}''
}}">'''{{{2}}}'''</font><noinclude>[[Category:Templates|{{PAGENAME}}]]<br><br><br>
+
|bold-italic = '''''{{{2}}}'''''
Usage is as follows:<br>
+
| = '''{{{2}}}'''
+
}}</font><noinclude>
{| border=1 cellspacing=1 cellpadding=0 width=35%
+
[[Category:Templates|{{PAGENAME}}]]
!style="width:25%" align=center|Code
+
==Usage==
!style="width:10%" align=center|Result
+
<pre>
|- align=center
+
{{Color|color|text}}
|{{tl2|Color|beige|XXX}}
+
</pre>
|{{Color|beige|XXX}}
+
Style can be set to either normal, bold, italic, or bold-italic by declaring the style variable (the default is bold).
|- align=center
+
<pre>
|{{tl2|Color|light blue|XXX}}
+
{{Color|style=normal|color|text}}
|{{Color|light blue|XXX}}
+
</pre>
|- align=center
+
Any color may be used, but there are several predefined colors included for convenience:
|{{tl2|Color|fire|XXX}}
+
{| width="20%"
|{{Color|fire|XXX}}
+
!align="left"| Color
|- align=center
+
!align="left"| Result
|{{tl2|Color|earth|XXX}}
+
|-
|{{Color|earth|XXX}}
+
| Beige || {{Color|beige|XXX}}
|- align=center
+
|-
|{{tl2|Color|water|XXX}}
+
| Light Blue || {{Color|light blue|XXX}}
|{{Color|water|XXX}}
+
|-
|- align=center
+
| NM || {{Color|NM|XXX}}
|{{tl2|Color|wind|XXX}}
+
|-
|{{Color|wind|XXX}}
+
| Positive || {{Color|positive|XXX}}
|- align=center
+
|-
|{{tl2|Color|ice|XXX}}
+
| Negative || {{Color|negative|XXX}}
|{{Color|ice|XXX}}
+
|-
|- align=center
+
| Neutral || {{Color|neutral|XXX}}
|{{tl2|Color|lightning|XXX}}
+
|-
|{{Color|lightning|XXX}}
+
| Fire || {{Color|fire|XXX}}
|- align=center
+
|-
|{{tl2|Color|light|XXX}}
+
| Earth || {{Color|earth|XXX}}
|{{Color|light|XXX}}
+
|-
|- align=center
+
| Water || {{Color|water|XXX}}
|{{tl2|Color|dark|XXX}}
+
|-
|{{Color|dark|XXX}}
+
| Wind || {{Color|wind|XXX}}
|- align=center
+
|-
|{{tl2|Color|NM|XXX}}
+
| Ice || {{Color|ice|XXX}}
|{{Color|NM|XXX}}
+
|-
|- align=center
+
| Lightning || {{Color|lightning|XXX}}
|{{tl2|Color|positive|XXX}}
+
|-
|{{Color|positive|XXX}}
+
| Light || {{Color|light|XXX}}
|- align=center
 
|{{tl2|Color|negative|XXX}}
 
|{{Color|negative|XXX}}
 
|- align=center
 
|{{tl2|Color|neutral|XXX}}
 
|{{Color|neutral|XXX}}
 
 
|-
 
|-
|}</noinclude>
+
| Dark || {{Color|dark|XXX}}
  +
|}
  +
</noinclude>

Revision as of 00:20, July 21, 2007

{{{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
Fire XXX
Earth XXX
Water XXX
Wind XXX
Ice XXX
Lightning XXX
Light XXX
Dark XXX
Community content is available under CC-BY-SA unless otherwise noted.