Difference between revisions of "Template:W-color"

From Basin Wiki
Jump to navigation Jump to search
(Created page with '{{#switch: {{lc: {{{1}}} }} | background | light = <nowiki>#FF8</nowiki> | border | dark = <nowiki>#EA3</nowiki> | #default = <nowiki>#FF8</nowiki> }}<noinclude...')
 
Line 1: Line 1:
 
{{#switch: {{lc: {{{1}}} }}
 
{{#switch: {{lc: {{{1}}} }}
 +
| border
 +
| dark      = <nowiki>#EEAA33</nowiki>
 +
| tint
 +
| lighter    = <nowiki>#FFFFCC</nowiki>
 
| background
 
| background
| light     = <nowiki>#FF8</nowiki>
+
| light
| border
+
| #default  = <nowiki>#FFFF88</nowiki>
| dark      = <nowiki>#EA3</nowiki>
 
| #default  = <nowiki>#FF8</nowiki>
 
 
}}<noinclude>
 
}}<noinclude>
==Usage==
+
 
<nowiki>{{W-color|xxx}}</nowiki>
+
Where <code>xxx</code> is one of the following values:
Where xxx is one of the following values:
+
* lighter
 
* light
 
* light
 
* dark
 
* dark
* border (same as dark)
+
An alternate set of values that could be used are:
* background (same as light)
+
* tint (same as ''lighter'')
 +
* background (same as ''light'')
 +
* border (same as ''dark'')
 +
 
 +
If ''xxx'' is not specified, the default value is ''light'', although leaving it as the default is discouraged.
  
Note: if left off, the default value is ''light''[[Category:Templates/Formatting]]</noinclude>
+
Aside from special circumstances, always attempt to use the more appropriate set of color values - either ''lighter-light-dark'' or ''tint-background-border''. Avoid mixing them up.

Revision as of 11:25, 11 January 2012

#FFFF88

Where 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 xxx is not specified, the default value is light, although leaving it as the default is discouraged.

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