Difference between revisions of "Template:Categorize"

(Created page with '<noinclude>{{Template Overview |usedon=all |purpose=place a page in a category |template=<nowiki>{{Category| }}</nowiki> |category=Utility }} {{Template Parameter |name=1 |usage=…')
 
m
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>{{Template Overview
 
<noinclude>{{Template Overview
 
|usedon=all
 
|usedon=all
|purpose=place a page in a category
+
|purpose=place a page into one or more categories
|template=<nowiki>{{Category| }}</nowiki>
+
|template=<nowiki>{{Categorize| }}</nowiki>
 
|category=Utility
 
|category=Utility
 
}}
 
}}
Line 11: Line 11:
 
|denotes=the category in which to place the page
 
|denotes=the category in which to place the page
 
|generates=the name of the category
 
|generates=the name of the category
|othernotes=This parameter, the template's only one, is an anonymous parameter, which means that no parameter name needs to be explicitly specified when using [[Template:Category]].
+
|othernotes=This parameter is an anonymous parameter, which means that no parameter name needs to be explicitly specified when using [[Template:Categorize]]. In actuality, more parameters like {{Monospace|1}} are created dynamically, meaning that one instance of this template can be used to place a page into as many categories as needed simply by passing it more pipe-delimited ({{Monospace|{{!}}}}) values.
 
|validvalues=Any string or strings that correspond to an existing or future category on UOGuide.
 
|validvalues=Any string or strings that correspond to an existing or future category on UOGuide.
}}</noinclude><includeonly>[[Category:{{{1}}}|{{PAGENAME}}]]</includeonly>
+
}}</noinclude><includeonly>{{#fornumargs: key
 +
| value
 +
| [[Category:{{#var: value}}{{!}}{{PAGENAME}}]]
 +
}}</includeonly>

Latest revision as of 08:55, 11 January 2012

Template:Categorize is designed for use on all pages to place a page into one or more categories.

Template

{{Categorize| }}

Parameters

1

  • Usage: Mandatory
  • Description: The 1 parameter takes a string denoting the category in which to place the page. This is used to generate the name of the category. This parameter is an anonymous parameter, which means that no parameter name needs to be explicitly specified when using Template:Categorize. In actuality, more parameters like 1 are created dynamically, meaning that one instance of this template can be used to place a page into as many categories as needed simply by passing it more pipe-delimited (|) values.
  • Valid Value(s): Any string or strings that correspond to an existing or future category on UOGuide.