Template:CatWeightInfo/doc: Difference between revisions

m
no edit summary
mNo edit summary
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{TOCright}}
{{TOCright}}
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.}}
==Alternative names==
* <tt><nowiki>{{catWeightInfo|<type>}}</nowiki></tt>
* <tt><nowiki>{{cwi|<type>}}</nowiki></tt> - alternate template name
* <tt><nowiki>{{catWeightInfo|<type>|<align>}}</nowiki></tt>
* <tt><nowiki>{{cwi|<type>|<align>}}</nowiki></tt> - alternate template name
==Syntax==
The template can have '''1''' or '''2 parameters''':
#{{m|catWeightInfo|<type>}} - Default mode, no alignment!
#{{m|catWeightInfo|<type>|<align>}} - Define alignment via <align> parameter.
    '''<type>''' =  Define the type of weight info box you require:
              '''onoff'''        = The category weight is simply used as an on/off switch
              '''onoffSec'''    =  Same as onoff, but referring to the complete page/section.
              '''worstcase'''    = The worst case of category occurrence defines weight.
              '''worstcaseSec''' =  Same as worstcase, but referring to the complete page/section.
              '''amount'''      = The category weight is defined by the occurrence amount (default).
              '''amountSec'''    =  Same as amount, but referring to the complete page/section.
    '''<align>''' =  Should the info box be aligned? By default it is not a "float".
              '''left'''        = Aligns the info box to the left of the text.
              '''right'''        = Aligns the info box to the right of the text.
              '''1''' to '''6'''      = No alignment, instead defines level of indentation!
              '''none'''        = No entry, or any other entry will *not* align the info box.
{{eyecatch|1|Note|Any '''<type>''' entry other than "onoff", "onoffSec", "worstcase", "worstcaseSec", or "amountSec" defaults to '''"amount"'''!<br>Any '''<align>''' entry other than "left" or "right" defaults to '''no''' alignment!}}


==Example Category Weight Info Boxes==
==Example Category Weight Info Boxes==
===The six <type>s of info boxes===
<nowiki>{{CatWeightInfo|onoffSec}}</nowiki>
{{CatWeightInfo|onoffSec}}


===Three info tests: <type> ===
  <nowiki>{{CatWeightInfo|onoff}}</nowiki>
  <nowiki>{{CatWeightInfo|onoff}}</nowiki>
{{CatWeightInfo|onoff}}
{{CatWeightInfo|onoff}}
<nowiki>{{CatWeightInfo|amountSec}}</nowiki>  (this is the default)
{{CatWeightInfo|amountSec}}


  <nowiki>{{CatWeightInfo|amount}}</nowiki>  (this is the default)
  <nowiki>{{CatWeightInfo|amount}}</nowiki>  (this is the default)
{{CatWeightInfo|amount}}
{{CatWeightInfo|amount}}
<nowiki>{{CatWeightInfo|worstcaseSec}}</nowiki> (default align is NONE!)
{{CatWeightInfo|worstcaseSec}}


  <nowiki>{{CatWeightInfo|worstcase}}</nowiki> (default align is NONE!)
  <nowiki>{{CatWeightInfo|worstcase}}</nowiki> (default align is NONE!)
{{CatWeightInfo|worstcase}}
{{CatWeightInfo|worstcase}}


===Alignment Tests: <align> ===
===The <align> used for indentation===
  <nowiki>{{CatWeightInfo|onoff|right}}</nowiki> (align right)
  <nowiki>{{CatWeightInfo|amount|1}}</nowiki> (indent level 1)
{{CatWeightInfo|amount|1}}
 
===The <align>ment of the info boxes===
<nowiki>{{CatWeightInfo|onoff|right}}</nowiki>
{{CatWeightInfo|onoff|right}}
{{CatWeightInfo|onoff|right}}


blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah...
blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah...


  <nowiki>{{CatWeightInfo|amount|left}}</nowiki> (align left)
  <nowiki>{{CatWeightInfo|amount|left}}</nowiki>
{{CatWeightInfo|amount|left}}
{{CatWeightInfo|amount|left}}
blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah...
blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah...
1,633

edits

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