Template:CatWcolBackground: Difference between revisions

From AniDB
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 15: Line 15:
  | misc
  | misc
  | FAF0FF
  | FAF0FF
}}</includeonly><noinclude>
}}</includeonly><noinclude>{{{{PAGENAME}}/doc}}[[Category:Category Weight|Helper]]</noinclude>
;Info : Insert requested CatWeight '''background colour'''.
 
;Syntax : <nowiki>{{CatWcolBackground|<colour>}}</nowiki>
<colour>  =  '''yellow'''
              '''onoffSec'''
              '''onoffSecOne'''
              '''onoff'''        ->  <span style="background:#{{CatWcolBackground|yellow}}; border:1px solid grey;">{{CatWcolBackground|yellow}}</span>
              '''red'''
              '''worstcaseSec'''
              '''worstcase'''    ->  <span style="background:#{{CatWcolBackground|red}}; border:1px solid grey;">{{CatWcolBackground|red}}</span>
              '''green'''
              '''amountSec'''
              '''amount'''      ->  <span style="background:#{{CatWcolBackground|green}}; border:1px solid grey;">{{CatWcolBackground|green}}</span>
              '''blue'''        ->  <span style="background:#{{CatWcolBackground|blue}}; border:1px solid grey;">{{CatWcolBackground|blue}}</span>
              '''grey'''        ->  <span style="background:#{{CatWcolBackground|grey}}; border:1px solid grey;">{{CatWcolBackground|grey}}</span>
              '''purple'''
              '''misc'''   
            (default)    ->  <span style="background:#FAF0FF; border:1px solid grey;">FAF0FF</span>
 
;Example : <nowiki>{{CatWcolBackground|blue}}</nowiki><br>{{CatWcolBackground|blue}}
 
;Used by the templates : CatWeight, CatWeightInfo, CatWeightTable
 
[[Category:Category Weight|Helper]]</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.