Template:CatWeightTable/doc: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{TOCright}}
{{TOCright}}


(still testing all this!)
==Documentation for this template==
This template lets you crate a category weight table with one to six rows, letting the user so into as much ranking detail as he chooses.
{{eyecatch|1|Features|Indentation, colour, one to six text rows.}}


==Examples==
{{CatWeightTable|1|blue|1|Level 1 does this and that.}}


{{CatWeightTable|1|red|1|Level 1 does this and that.|2|Level 2 does this and that.}}
==Issues==
Even though the code works pretty well if you add descriptions for 6 rows, using less of them will lead to "empty ghost lines" that mess up the table padding. The fewer rows you use the more noticeable. Alas I (foo2) have not yet been able to fix this issue :(.


{{CatWeightTable|1|green
 
==Alternative names==
* <tt><nowiki>{{catWeightTable|<#>|<colour>|<weight>|<text>}}</nowiki></tt>
* <tt><nowiki>{{CatWeightTable|<#>|<colour>|<weight>|<text>}}</nowiki></tt> - alternate spelling of template
* <tt><nowiki>{{catWeightTable|<#>|<colour>|<w>|<t>|<w>|<t>}}</nowiki></tt>
* <tt><nowiki>{{catWeightTable|<#>|<colour>|<w>|<t>|<w>|<t>|<w>|<t>}}</nowiki></tt>
* <tt><nowiki>{{catWeightTable|<#>|<colour>|<w>|<t>|<w>|<t>|<w>|<t>|<w>|<t>}}</nowiki></tt>
* <tt><nowiki>{{catWeightTable|<#>|<colour>|<w>|<t>|<w>|<t>|<w>|<t>|<w>|<t>|<w>|<t>}}</nowiki></tt>
* <tt><nowiki>{{catWeightTable|<#>|<colour>|<w>|<t>|<w>|<t>|<w>|<t>|<w>|<t>|<w>|<t>|<w>|<t>}}</nowiki></tt>
 
 
==Syntax==
The template can have '''4''' to '''14 parameters''':
 
#'''<tt><nowiki>{{catWeightTable|<#>|<colour>|<weight>|<text>}}</nowiki></tt>''' - 1 row table!
#'''<tt><nowiki>{{catWeightTable|<#>|<colour>|<w>|<t>|<w>|<t>}}</nowiki></tt>''' - 2 row table!
#'''<tt><nowiki>{{catWeightTable|<#>|<colour>|<w>|<t>|<w>|<t>|<w>|<t>}}</nowiki></tt>''' - 3 row table!
#'''<tt><nowiki>{{catWeightTable|<#>|<colour>|<w>|<t>|<w>|<t>|<w>|<t>|<w>|<t>}}</nowiki></tt>''' - 4 row table!
#'''<tt><nowiki>{{catWeightTable|<#>|<colour>|<w>|<t>|<w>|<t>|<w>|<t>|<w>|<t>|<w>|<t>}}</nowiki></tt>''' - 5 row table!
#'''<tt><nowiki>{{catWeightTable|<#>|<colour>|<w>|<t>|<w>|<t>|<w>|<t>|<w>|<t>|<w>|<t>|<w>|<t>}}</nowiki></tt>''' - 6 row table!
 
      '''<#>''' =  Number '''0''' (min) to '''6''' (max), defines indentation level.
  '''<colour>''' =  Define the colours:
                '''onoff'''        = Category weight "on/off" colour. Alias '''red'''.
                '''worstcase'''    = Category weight "worst case" colour. Alias '''yellow'''.
                '''amount'''      = Category weight "amount" colour. Alias '''green'''.
                '''blue'''        = Not actually used but there just in case.
                '''misc'''        = Category weight "amount" colour. Alias '''purple''' (default).
  '''<weight>''' =  The category weight denominator (not word-wrapped), range:
    '''<w>'''          '''1''' for "+"  to  '''6''' for "***"
                '''1-5''' for "+ to **+"
                '''1-6''' for "+ to ***"
    '''<text>''' =  Text describing the current weight level for this category.
    '''<t>'''
 
 
==Example Category Weight Tables==
 
===CatWeightTable 1, 2 and 6 rows===
<nowiki>{{catWeightTable|1|blue|1|Level 1 does this and that.}}</nowiki> (LAYOUT ISSUE)
{{catWeightTable|1|blue|1|Level 1 does this and that.}}
 
<nowiki>{{catWeightTable|1|red|1|Level 1 does this and that.|2|Level 2 does this and that.}}</nowiki> (LAYOUT ISSUE)
{{catWeightTable|1|red|1|Level 1 does this and that.|2|Level 2 does this and that.}}
 
<nowiki>{{catWeightTable|1|green
|1|Level 1 does this and that.
|2|Level 2 does this and that.
|3|Level 3 does this and that.
|4|Level 4 does this and that.
|5|Level 5 does this and that.
|6|Level 6 does this and that.}}</nowiki>
{{catWeightTable|1|green
|1|Level 1 does this and that.
|1|Level 1 does this and that.
|2|Level 2 does this and that.
|2|Level 2 does this and that.
1,633

edits

Navigation menu

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