Template:CatWeight/doc: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
Line 18: Line 18:
#'''<tt><nowiki>{{catWeight|<#>|<weight>|<text>}}</nowiki></tt>''' - Define indentation via <#> parameter.
#'''<tt><nowiki>{{catWeight|<#>|<weight>|<text>}}</nowiki></tt>''' - Define indentation via <#> parameter.
         '''<#>''' =  Number '''0''' (min) to '''6''' (max), defines indentation level.
         '''<#>''' =  Number '''0''' (min) to '''6''' (max), defines indentation level.
   '''<weight>''' =  The category weight denominator (not word-wrapped), range '''+''' to '''***'''.
   '''<weight>''' =  The category weight denominator (not word-wrapped), range '''1''' (+) to '''6''' (***).
     '''<text>''' =  The descriptive text for the info.
     '''<text>''' =  The descriptive text for the info.
{{eyecatch|1|Note|Only the '''<#>''' values '''1''' to '''6''' are actually checked, any '''other values''' (e.g. 0 or abc) yield '''no indentation''' at all, and are treated the same as <tt><nowiki>{{eyecatch|info|text}}</nowiki></tt>!}}
{{eyecatch|1|Note|Only the '''<#>''' values '''1''' to '''6''' are actually checked, any '''other values''' (e.g. 0 or abc) yield '''no indentation''' at all, and are treated the same as <tt><nowiki>{{eyecatch|info|text}}</nowiki></tt>!}}
Line 25: Line 25:
==Examples==
==Examples==
===The Weights===
===The Weights===
{{catWeight|1|+&nbsp;&nbsp; | Weight <tt>+  </tt> means this and that.}}
{{catWeight|1|1| Weight <tt>+  </tt> means this and that.}}
{{catWeight|1|x&nbsp;&nbsp;  | Weight <tt>*  </tt> means this and that.}}
{{catWeight|1|2| Weight <tt>*  </tt> means this and that.}}
{{catWeight|1|x+&nbsp; | Weight <tt>*+ </tt> means this and that.}}
{{catWeight|1|3| Weight <tt>*+ </tt> means this and that.}}
{{catWeight|1|xx&nbsp; | Weight <tt>** </tt> means this and that.}}
{{catWeight|1|4| Weight <tt>** </tt> means this and that.}}
{{catWeight|1|xx+| Weight <tt>**+</tt> means this and that.}}
{{catWeight|1|5| Weight <tt>**+</tt> means this and that.}}
{{catWeight|1|xxx| Weight <tt>***</tt> means this and that.}}
{{catWeight|1|6| Weight <tt>***</tt> means this and that.}}


There is an issue when using '''*''' as argument in <tt>catWeight</tt>, using "x" for now.
There is an issue when using '''*''' as argument in <tt>catWeight</tt>, using "x" for now.
1,633

edits

Navigation menu

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