Template:CatWweight: Difference between revisions

From AniDB
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 14: Line 14:
  | 1-6 = + to ***
  | 1-6 = + to ***
  |    
  |    
}}</includeonly><noinclude>
}}</includeonly><noinclude>{{{{PAGENAME}}/doc}}[[Category:Category Weight|Helper]]</noinclude>
;Info : Insert requested CatWeight '''weight''', includes weight ranges. '''1''' to '''6''' padded with non-breaking spaces.
 
;Syntax : <nowiki>{{CatWweight|<weight>}}</nowiki>
<weight>  =  '''1'''    ->  +
              '''2'''    ->  *
              '''3'''    ->  *+
              '''4'''    ->  **
              '''5'''    ->  **+
              '''6'''    ->  ***
              '''1-2'''  ->  + or *
              '''2-3'''  ->  * or *+
              '''3-4'''  ->  *+ or **
              '''4-5'''  ->  ** or **+
              '''5-6'''  ->  **+ or ***
              '''1-5'''  ->  + to **+
              '''1-6'''  ->  + to ***
      else        ->  "  "  (3 non-breaking spaces, default)         
 
;Example : <nowiki>{{CatWweight|4-5}}</nowiki><br>{{CatWweight|4-5}}
 
;Used by the templates : CatWeight, CatWeightInfo, CatWeightTable, but could be used elsewhere as well.
 
[[Category:Category Weight|Helper]]</noinclude>

Latest revision as of 21:19, 10 May 2009

Insert requested catagory related weight, also includes weight ranges. Values 1 to 6 are padded with non-breaking spaces.

Syntax

The template can have 1 parameter:

  1. {{CatWweight|<weight>}} - Enter weight to get appropriate * rating.
 <weight>  =  1    ->  +
              2    ->  *
              3    ->  *+
              4    ->  **
              5    ->  **+
              6    ->  ***
              1-2  ->  + or *
              2-3  ->  * or *+
              3-4  ->  *+ or **
              4-5  ->  ** or **+
              5-6  ->  **+ or ***
              1-5  ->  + to **+
              1-6  ->  + to ***
       else        ->  "   "  (3 non-breaking spaces, default)          

Example

{{CatWweight|4-5}}

** or **+

Use?

Used by the templates CatWeight, CatWeightInfo, and CatWeightTable, but could be used elsewhere as well.