Template:CatWcolFrame: Difference between revisions

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

Latest revision as of 18:06, 16 May 2009

Insert requested CatWeight frame colour.

Syntax

The template can only have 1 parameter:

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

             red
             worstcaseSec
             worstcase    ->   CCA3A3 

             green
             amountSec
             amount       ->   A3CCA3 

             blue         ->   A3A3CC 

             grey         ->   AAAAAA 

             purple 
             misc    
            (default)     ->   DFC8EC 

Example

{{CatWcolFrame|blue}}

A3A3CC

Usage

Used by the templates Template:CatWeight, Template:CatWeightInfo and Template:CatWeightTable.