Template:CatWcolFrame: Difference between revisions

m (Helper module for CatWeight Templates... makes code much more readable.)
 
mNo edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{{1}}}
<includeonly>{{#switch: {{{1}}}
  | yellow
  | yellow
| onoffSec
| onoffSecOne
  | onoff = CCCCA3
  | onoff = CCCCA3
  | red
  | red
| worstcaseSec
  | worstcase = CCA3A3
  | worstcase = CCA3A3
  | green
  | green
| amountSec
  | amount = A3CCA3
  | amount = A3CCA3
  | blue = A3A3CC
  | blue = A3A3CC
| grey = AAAAAA
  | purple
  | purple
  | misc
  | misc
  | DFC8EC
  | DFC8EC
}}</includeonly><noinclude>
}}</includeonly><noinclude>{{{{PAGENAME}}/doc}}[[Category:Category Weight|Helper]]</noinclude>
;Info : Insert requested CatWeight '''frame colour'''.
 
;Syntax : <nowiki>{{CatWcolFrame|<color>}}</nowiki>
 
;Example : <nowiki>{{CatWcolFrame|blue}}</nowiki>
{{CatWcolFrame|blue}}
 
;Used by the templates : CatWeight, CatWeightInfo, CatWeightTable
 
[[Category:Template]]</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.

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.