Template:Categorize
From UO Excelsior Wiki - Ultima Online Free Shard
Revision as of 07:36, 7 April 2013 by Dramoor (talk | contribs) (Created page with "<noinclude>{{Template Overview |usedon=all |purpose=place a page into one or more categories |template=<nowiki>{{Categorize| }}</nowiki> |category=Utility }} {{Template Parameter...")
Contents
Template:Categorize is designed for use on all pages to place a page into one or more categories. {{#if: | {{{othernotes}}} | }}
Template
{{#switch: {{Categorize| }} | {{Categorize| }} }}
{{#if: | {{#ifeq: {{{display}}} | yes
| ==Display==
{{#fornumargs: key | value | [[Category:{{#var: value}}|Categorize]] }}
| ==Display==
{{{display}}}
}}
}}
Parameters
{{#switch: {{{parameters}}} | none = This template has no parameters. | | #default = }} {{#fornumargs: key | value | [[Category:{{#var: value}}|Categorize]] }}
1
- Usage: {{#ifeq: mandatory | mandatory | Mandatory | Optional}}
- 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. {{#if: | If this parameter is left blank or omitted, a default value of "{{{defaultvalue}}}" is used. | }} {{#if: | {{#ifeq: {{{anonymous}}} | true | 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:Categorize. }} }} {{#if: 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. | 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.