Difference between revisions of "Template:Class-color"

From Starsonata Wiki
Jump to: navigation, search
m (1 revision)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{{{#switch: {{{1}}} | W|w=W | R|r=R | Mo|MO|mo=Mo | E|e=E | Me|ME|me=Me | N|n=N | A|a=A | Rt|RT|rt|Ri|RI|ri=Rt | D|d=D | P|p=P | #default = Any}}-color|{{#switch: {{{2}}} | border=border | dark=dark | tint=tint | lighter=lighter | background=background | light|#default = light}}}}
 
{{{{#switch: {{{1}}} | W|w=W | R|r=R | Mo|MO|mo=Mo | E|e=E | Me|ME|me=Me | N|n=N | A|a=A | Rt|RT|rt|Ri|RI|ri=Rt | D|d=D | P|p=P | #default = Any}}-color|{{#switch: {{{2}}} | border=border | dark=dark | tint=tint | lighter=lighter | background=background | light|#default = light}}}}
noinclude
+
<noinclude>
  
 
== Usage ==
 
== Usage ==
  nowiki{{/nowiki{{BASEPAGENAME}}|'''codeclass/code'''|'''codexxx/code'''nowiki}}/nowiki
+
  <nowiki>{{</nowiki>{{BASEPAGENAME}}|'''<code>class</code>'''|'''<code>xxx</code>'''<nowiki>}}</nowiki>
  
Where codeclass/code is one of the following values:
+
Where <code>class</code> is one of the following values:
 
*W R Mo E Me N A Rt D P Any
 
*W R Mo E Me N A Rt D P Any
  
And codexxx/code is one of the following values:
+
And <code>xxx</code> is one of the following values:
 
* lighter
 
* lighter
 
* light
 
* light
Line 20: Line 20:
  
 
Aside from special circumstances, always attempt to use the more appropriate set of color values for ''xxx'' - either ''lighter-light-dark'' or ''tint-background-border''. Avoid mixing them up.
 
Aside from special circumstances, always attempt to use the more appropriate set of color values for ''xxx'' - either ''lighter-light-dark'' or ''tint-background-border''. Avoid mixing them up.
----
+
{{GW}}
[[User:Longshot Hammerhand|Longshot Hammerhand]] 16:56, 25 January 2009 (UTC)
 
 
[[Category:Style templates|Class-color]]
 
[[Category:Style templates|Class-color]]
/noinclude
+
</noinclude>

Latest revision as of 16:14, 25 January 2009

#DDDDDD


Usage

{{Class-color|class|xxx}}

Where class is one of the following values:

  • W R Mo E Me N A Rt D P Any

And xxx is one of the following values:

  • lighter
  • light
  • dark

An alternate set of values that could be used are:

  • tint (same as lighter)
  • background (same as light)
  • border (same as dark)

If either class and/or xxx are not specified, the default values are Any and/or light, although leaving them as the default is discouraged.

Aside from special circumstances, always attempt to use the more appropriate set of color values for xxx - either lighter-light-dark or tint-background-border. Avoid mixing them up.


part of this article was copied from Template:Class-color