Difference between revisions of "Template:Categorizer"
From Twinsuniverse
J McKalling (Talk | contribs) m |
J McKalling (Talk | contribs) |
||
| Line 4: | Line 4: | ||
| {{#if: {{{label|}}} | {{{label}}} | ???[[Category:Malformed categorizers]] }} | | {{#if: {{{label|}}} | {{{label}}} | ???[[Category:Malformed categorizers]] }} | ||
}} | }} | ||
| − | {{#if: {{{category|}}} | <sup>[[[:Category:{{{category}}} | + | {{#if: {{{category|}}} | <sup>[[[:Category:{{{category}}}{{!}} {{#if: {{{catlabel|}}} | {{{catlabel}}} | list all }} ]]]</sup> }} |
</includeonly><noinclude>[[Template:!]] | </includeonly><noinclude>[[Template:!]] | ||
This template is used to add a tag to an infobox, labeling and automatically categorize the article under a category. | This template is used to add a tag to an infobox, labeling and automatically categorize the article under a category. | ||
| Line 25: | Line 25: | ||
}}</nowiki> | }}</nowiki> | ||
| − | ==Example== | + | ==Common Example== |
| + | <nowiki>{{categorizer | ||
| + | |category=Quetches | ||
| + | |article=Quetch | ||
| + | }}</nowiki> | ||
| + | |||
| + | :[[Quetch]] <sup>[[[:Category:Quetches|list all]]]</sup> | ||
| + | (and the page would be categorized under [[:Category:Quetches]]) | ||
| + | |||
| + | ==Full Example== | ||
<nowiki>{{categorizer | <nowiki>{{categorizer | ||
|category=Quetches | |category=Quetches | ||
Revision as of 23:02, 10 November 2012
Template:! This template is used to add a tag to an infobox, labeling and automatically categorize the article under a category.
- {{categorizer | category = category name | catlabel = link text for categorylink | article = an article about the category | label = link text for article link }}
Parameters
- category: The target category to add this article to.
- catlabel: The text to display on the categorylink (defaults to "list all").
- article: The article that represents the target category (defaults to the label not to become linked).
- label: The text to display on the link to the article (defaults to the article pagename).
- nocat: Whether or not to suppress categorization under category (defaults to false, which means auto categorization).
Syntax
{{categorizer
|category=
|catlabel=
|article=
|label=
}}
Common Example
{{categorizer
|category=Quetches
|article=Quetch
}}
(and the page would be categorized under Category:Quetches)
Full Example
{{categorizer
|category=Quetches
|catlabel=list members
|article=Quetch
|label=Men
}}
(and the page would be categorized under Category:Quetches)