Template:CatWeightInfo/doc: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{TOCright}}
{{TOCright}}
==Documentation for this template==
This template creates six different info boxes explaining how the weights for the current category or the current category section should be interpreted.
This template creates six different info boxes explaining how the weights for the current category or the current category section should be interpreted.
{{eyecatch|1|New|Choose between the six <nowiki><type></nowiki>s, and optionally <nowiki><align></nowiki> them.}}
{{eyecatch|1|New|Choose between the six <nowiki><type></nowiki>s, and optionally <nowiki><align></nowiki> them.}}
Line 7: Line 5:
==Alternative names==
==Alternative names==
* <tt><nowiki>{{catWeightInfo|<type>}}</nowiki></tt>  
* <tt><nowiki>{{catWeightInfo|<type>}}</nowiki></tt>  
* <tt><nowiki>{{CatWeightInfo|<type>}}</nowiki></tt> - alternate spelling of template
* <tt><nowiki>{{cwi|<type>}}</nowiki></tt> - alternate template name
* <tt><nowiki>{{catWeightInfo|<type>|<align>}}</nowiki></tt>  
* <tt><nowiki>{{catWeightInfo|<type>|<align>}}</nowiki></tt>  
* <tt><nowiki>{{CatWeightInfo|<type>|<align>}}</nowiki></tt> - alternate spelling of template
* <tt><nowiki>{{cwi|<type>|<align>}}</nowiki></tt> - alternate template name
 


==Syntax==
==Syntax==
The template can have '''1''' or '''2 parameters''':
The template can have '''1''' or '''2 parameters''':
#'''<tt><nowiki>{{catWeightInfo|<type>}}</nowiki></tt>''' - Default mode, no alignment!
#{{m|catWeightInfo|<type>}} - Default mode, no alignment!
#'''<tt><nowiki>{{catWeightInfo|<type>|<align>}}</nowiki></tt>''' - Define alignment via <align> parameter.
#{{m|catWeightInfo|<type>|<align>}} - Define alignment via <align> parameter.
     '''<type>''' =  Define the type of weight info box you require:
     '''<type>''' =  Define the type of weight info box you require:
               '''onoff'''        = The category weight is simply used as an on/off switch
               '''onoff'''        = The category weight is simply used as an on/off switch
Line 32: Line 29:


==Example Category Weight Info Boxes==
==Example Category Weight Info Boxes==
===The six <type>s of info boxes===
===The six <type>s of info boxes===
  <nowiki>{{CatWeightInfo|onoffSec}}</nowiki>
  <nowiki>{{CatWeightInfo|onoffSec}}</nowiki>
Line 51: Line 47:
  <nowiki>{{CatWeightInfo|worstcase}}</nowiki> (default align is NONE!)
  <nowiki>{{CatWeightInfo|worstcase}}</nowiki> (default align is NONE!)
{{CatWeightInfo|worstcase}}
{{CatWeightInfo|worstcase}}


===The <align> used for indentation===
===The <align> used for indentation===
1,633

edits

Navigation menu

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