Difference between revisions of "Template:Infobox Character/size"
J McKalling (Talk | contribs) m |
J McKalling (Talk | contribs) m |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#switch: {{lc:{{{1|}}}}} | {{#switch: {{lc:{{{1|}}}}} | ||
− | | small = {{categorizer|category=Small | + | | small = {{categorizer|category=Small characters|label=Small|nocat={{{nocat|false}}}}} |
− | | average = {{categorizer|category=Average | + | | average = {{categorizer|category=Average characters|label=Average|nocat={{{nocat|false}}}}} |
− | | large = {{categorizer|category=Large | + | | large = {{categorizer|category=Large characters|label=Large|nocat={{{nocat|false}}}}} |
| {{categorizer|category=Characters of unknown size|label=unknown|nocat={{{nocat|false}}}}} | | {{categorizer|category=Characters of unknown size|label=unknown|nocat={{{nocat|false}}}}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
Line 28: | Line 28: | ||
<nowiki>{{infobox character/size|large}}</nowiki> | <nowiki>{{infobox character/size|large}}</nowiki> | ||
− | :{{categorizer|category=Small | + | :{{categorizer|category=Small characters|label=Small|nocat=true}} |
− | :{{categorizer|category=Average | + | :{{categorizer|category=Average characters|label=Average|nocat=true}} |
− | :{{categorizer|category=Large | + | :{{categorizer|category=Large characters|label=Large|nocat=true}} |
Line 36: | Line 36: | ||
<nowiki>{{infobox character/size|LARge}}</nowiki> | <nowiki>{{infobox character/size|LARge}}</nowiki> | ||
− | :{{categorizer|category=Large | + | :{{categorizer|category=Large characters|label=Large|nocat=true}} |
Line 52: | Line 52: | ||
<nowiki>{{infobox character/size|small|nocat=true}}</nowiki> | <nowiki>{{infobox character/size|small|nocat=true}}</nowiki> | ||
− | This would render the same result as the first example above, but would not automatically categorize under [[:Category:Small | + | This would render the same result as the first example above, but would not automatically categorize under [[:Category:Small characters]]. This feature works both on valid values and the maintenance task mentioned above. |
[[Category:Article Categorizers|character]]</noinclude> | [[Category:Article Categorizers|character]]</noinclude> |
Revision as of 22:50, 29 November 2012
This template offers a multiple choice for defining the size category of a (character) article. It can also automatically categorize a page under that category.
Parameters
- The selected size from the following values (no parameter name and values are case insensitive):
- small
- average
- large
- any other (non)empty value defaults to: unknown
- nocat: Whether or not to suppress categorization under the chosen category (defaults to false, which means auto categorization).
Note: more category values should be discussed on the discussion page.
Syntax
{{infobox character/size|value}}
Examples
Any of the above values may be used like this:
{{infobox character/size|small}} {{infobox character/size|average}} {{infobox character/size|large}}
The case of the value is not important:
{{infobox character/size|LARge}}
- Large [list all]
You may leave the "size" undefined (which would raise the Characters of unknown size maintenance task) by not specifying any valid value, so these all have the same result:
{{infobox character/size}} {{infobox character/size|}} {{infobox character/size|extreme}} {{infobox character/size|tall}} {{infobox character/size|granny}}
- unknown [list all]
The nocat parameter may be used to suppress automatic categorization like this (any value will do):
{{infobox character/size|small|nocat=true}}
This would render the same result as the first example above, but would not automatically categorize under Category:Small characters. This feature works both on valid values and the maintenance task mentioned above.