Template:Category
Template:Category is designed for use on category pages to standardize their look and feel and to make them easier to create and manage. {{#if: | {{{othernotes}}} | }}
Template
{{#switch: {{Category |description= |see= |category= |category2= |category3= |category4= |category5= |category6= |category7= |category8= |category9= |category10= }} | {{Category |description= |see= |category= |category2= |category3= |category4= |category5= |category6= |category7= |category8= |category9= |category10= }} }}
{{#if: | {{#ifeq: {{{display}}} | yes
| ==Display==
{{#if: | {{{description}}}
{{#if: | See: [[{{{see}}}]] }} | {{#if: | See: [[{{{see}}}]] }} }} {{#ifeq: Category | UOGuide | | {{#if: | {{#fornumargs: key | value | [[Category:{{#var: value}}|Category]] }} | {{#fornumargs: key | value | [[Category:{{#var: value}}|Category]] }} }} }}{{#if: | {{#fornumargs: key | value | [[Category:{{#var: value}}|Category]] }} }}{{#if: | {{#fornumargs: key | value | [[Category:{{#var: value}}|Category]] }} }}{{#if: | {{#fornumargs: key | value | [[Category:{{#var: value}}|Category]] }} }}{{#if: | {{#fornumargs: key | value | [[Category:{{#var: value}}|Category]] }} }}{{#if: | {{#fornumargs: key | value | [[Category:{{#var: value}}|Category]] }} }}{{#if: | {{#fornumargs: key | value | [[Category:{{#var: value}}|Category]] }} }}{{#if: | {{#fornumargs: key | value | [[Category:{{#var: value}}|Category]] }} }}{{#if: | {{#fornumargs: key | value | [[Category:{{#var: value}}|Category]] }} }}{{#if: | {{#fornumargs: key | value | [[Category:{{#var: value}}|Category]] }} }}
| ==Display==
{{{display}}}
}}
}}
Parameters
{{#switch: {{{parameters}}} | none = This template has no parameters. | | #default = }} {{#fornumargs: key | value | [[Category:{{#var: value}}|Category]] }}
description
- Usage: {{#ifeq: | mandatory | Mandatory | Optional}}
- Description: The description parameter takes a string or strings denoting a basic description of the category and its contents. This is used to generate the description section at the top of the page. {{#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:Category. }} }} {{#if: | {{{othernotes}}} }}
- Valid Value(s): Any string or strings.
see
- Usage: {{#ifeq: | mandatory | Mandatory | Optional}}
- Description: The see parameter takes a string denoting the article or articles to which the category directly relates. This is used to generate a line underneath the description reading "See:" followed by an internal link to a directly associated article. {{#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:Category. }} }} {{#if: | {{{othernotes}}} }}
- Valid Value(s): Any string or strings that correspond to the name of a valid article or articles on uoex.
category
- Usage: {{#ifeq: mandatory | mandatory | Mandatory | Optional}}
- Description: The category parameter takes a string denoting the main category to which the category page should belong. This is used to generate the main category of the page. {{#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:Category. }} }} {{#if: The only category on UOGuide that this parameter is not mandatory for is Category:UOGuide, as it is the root of the category hierarchy. Any other category will be added to Category:Uncategorized Categories if this parameter is left blank. | The only category on UOGuide that this parameter is not mandatory for is Category:UOGuide, as it is the root of the category hierarchy. Any other category will be added to Category:Uncategorized Categories if this parameter is left blank. }}
- Valid Value(s): Any string that corresponds to a valid category on uoex.
category2
- Usage: {{#ifeq: | mandatory | Mandatory | Optional}}
- Description: The category2 parameter takes a string denoting a second, auxiliary category to which the category page should belong. This is used to generate the second category of the page. {{#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:Category. }} }} {{#if: | {{{othernotes}}} }}
- Valid Value(s): Any string that corresponds to a valid category on uoex.
category3
- Usage: {{#ifeq: | mandatory | Mandatory | Optional}}
- Description: The category3 parameter takes a string denoting a third, auxiliary category to which the category page should belong. This is used to generate the third category of the page. {{#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:Category. }} }} {{#if: | {{{othernotes}}} }}
- Valid Value(s): Any string that corresponds to a valid category on UOex.
category4
- Usage: {{#ifeq: | mandatory | Mandatory | Optional}}
- Description: The category4 parameter takes a string denoting a fourth, auxiliary category to which the category page should belong. This is used to generate the fourth category of the page. {{#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:Category. }} }} {{#if: | {{{othernotes}}} }}
- Valid Value(s): Any string that corresponds to a valid category on UOex.
category5
- Usage: {{#ifeq: | mandatory | Mandatory | Optional}}
- Description: The category5 parameter takes a string denoting a fifth, auxiliary category to which the category page should belong. This is used to generate the fifth category of the page. {{#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:Category. }} }} {{#if: | {{{othernotes}}} }}
- Valid Value(s): Any string that corresponds to a valid category on UOex.
category6
- Usage: {{#ifeq: | mandatory | Mandatory | Optional}}
- Description: The category6 parameter takes a string denoting a sixth, auxiliary category to which the category page should belong. This is used to generate the sixth category of the page. {{#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:Category. }} }} {{#if: | {{{othernotes}}} }}
- Valid Value(s): Any string that corresponds to a valid category on UOex.
category7
- Usage: {{#ifeq: | mandatory | Mandatory | Optional}}
- Description: The category7 parameter takes a string denoting a seventh, auxiliary category to which the category page should belong. This is used to generate the seventh category of the page. {{#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:Category. }} }} {{#if: | {{{othernotes}}} }}
- Valid Value(s): Any string that corresponds to a valid category on UOex.
category8
- Usage: {{#ifeq: | mandatory | Mandatory | Optional}}
- Description: The category8 parameter takes a string denoting a eighth, auxiliary category to which the category page should belong. This is used to generate the eighth category of the page. {{#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:Category. }} }} {{#if: | {{{othernotes}}} }}
- Valid Value(s): Any string that corresponds to a valid category on UOex.
category9
- Usage: {{#ifeq: | mandatory | Mandatory | Optional}}
- Description: The category9 parameter takes a string denoting a ninth, auxiliary category to which the category page should belong. This is used to generate the ninth category of the page. {{#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:Category. }} }} {{#if: | {{{othernotes}}} }}
- Valid Value(s): Any string that corresponds to a valid category on UOex.
category10
- Usage: {{#ifeq: | mandatory | Mandatory | Optional}}
- Description: The category10 parameter takes a string denoting a tenth, auxiliary category to which the category page should belong. This is used to generate the tenth category of the page. {{#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:Category. }} }} {{#if: | {{{othernotes}}} }}
- Valid Value(s): Any string that corresponds to a valid category on UOex.