Template:CatWcolBackground: Difference between revisions

From AniDB
Jump to navigation Jump to search
m (Helper module for CatWeight Templates... makes code much more readable.)
 
mNo edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{{1}}}
<includeonly>{{#switch: {{{1}}}
  | yellow
  | yellow
| onoffSec
| onoffSecOne
  | onoff = FFFFEF
  | onoff = FFFFEF
  | red
  | red
| worstcaseSec
  | worstcase = FFEFEF
  | worstcase = FFEFEF
  | green
  | green
| amountSec
  | amount = EFFFEF
  | amount = EFFFEF
  | blue = EFEFFF
  | blue = EFEFFF
| grey = F9F9F9
  | purple
  | purple
  | misc
  | misc
  | FAF0FF
  | FAF0FF
}}</includeonly><noinclude>
}}</includeonly><noinclude>{{{{PAGENAME}}/doc}}[[Category:Category Weight|Helper]]</noinclude>
Insert requested CatWeight background colour.
 
(Used by templates: CatWeight, CatWeightInfo, CatWeightTable)
 
;Syntax : <nowicki>{{CatWcolBackground|<color>}}</nowiki>
 
;Example :<nowicki>{{CatWcolBackground|<color>}}</nowiki>
{{CatWcolBackground|blue}}
 
{{ {{TALKPAGENAME}} }}[[Category:Template]]</noinclude>

Latest revision as of 17:56, 16 May 2009

Insert requested CatWeight background colour.

Syntax

The template can only have 1 parameter:

  1. {{CatWcolBackground|<colour>}} - Name of required colour.
<colour>  =  yellow
             onoffSec
             onoffSecOne
             onoff        ->   FFFFEF 

             red
             worstcaseSec
             worstcase    ->   FFEFEF 

             green
             amountSec
             amount       ->   EFFFEF 

             blue         ->   EFEFFF 

             grey         ->   F9F9F9 

             purple 
             misc    
            (default)     ->   FAF0FF 

Example

{{CatWcolBackground|blue}}

EFEFFF

Usage

Used by the templates CatWeight, CatWeightInfo, and CatWeightTable.