Difference between revisions of "Template:Category"

From UO Excelsior Wiki - Ultima Online Free Shard
Jump to: navigation, search
(Created page with "<noinclude>{{Template Overview |usedon=category |purpose=standardize their look and feel and to make them easier to create and manage |template=<nowiki>{{Category |description= |...")
 
 
Line 30: Line 30:
 
|denotes=the article or articles to which the category directly relates
 
|denotes=the article or articles to which the category directly relates
 
|generates=a line underneath the description reading "'''See:'''" followed by an internal link to a directly associated article
 
|generates=a line underneath the description reading "'''See:'''" followed by an internal link to a directly associated article
|validvalues=Any string or strings that correspond to the name of a valid article or articles on UOGuide.
+
|validvalues=Any string or strings that correspond to the name of a valid article or articles on uoex.
 
}}
 
}}
 
{{Template Parameter
 
{{Template Parameter
Line 39: Line 39:
 
|generates=the main category of the page
 
|generates=the main category of the page
 
|othernotes=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.
 
|othernotes=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.
|validvalues=Any string that corresponds to a valid category on UOGuide.
+
|validvalues=Any string that corresponds to a valid category on uoex.
 
}}
 
}}
 
{{Template Parameter
 
{{Template Parameter
Line 46: Line 46:
 
|denotes=a second, auxiliary category to which the category page should belong
 
|denotes=a second, auxiliary category to which the category page should belong
 
|generates=the second category of the page
 
|generates=the second category of the page
|validvalues=Any string that corresponds to a valid category on UOGuide.
+
|validvalues=Any string that corresponds to a valid category on uoex.
 
}}
 
}}
  
Line 54: Line 54:
 
|denotes=a third, auxiliary category to which the category page should belong
 
|denotes=a third, auxiliary category to which the category page should belong
 
|generates=the third category of the page
 
|generates=the third category of the page
|validvalues=Any string that corresponds to a valid category on UOGuide.
+
|validvalues=Any string that corresponds to a valid category on UOex.
 
}}
 
}}
 
{{Template Parameter
 
{{Template Parameter
Line 61: Line 61:
 
|denotes=a fourth, auxiliary category to which the category page should belong
 
|denotes=a fourth, auxiliary category to which the category page should belong
 
|generates=the fourth category of the page
 
|generates=the fourth category of the page
|validvalues=Any string that corresponds to a valid category on UOGuide.
+
|validvalues=Any string that corresponds to a valid category on UOex.
 
}}
 
}}
 
{{Template Parameter
 
{{Template Parameter
Line 68: Line 68:
 
|denotes=a fifth, auxiliary category to which the category page should belong
 
|denotes=a fifth, auxiliary category to which the category page should belong
 
|generates=the fifth category of the page
 
|generates=the fifth category of the page
|validvalues=Any string that corresponds to a valid category on UOGuide.
+
|validvalues=Any string that corresponds to a valid category on UOex.
 
}}
 
}}
 
{{Template Parameter
 
{{Template Parameter
Line 75: Line 75:
 
|denotes=a sixth, auxiliary category to which the category page should belong
 
|denotes=a sixth, auxiliary category to which the category page should belong
 
|generates=the sixth category of the page
 
|generates=the sixth category of the page
|validvalues=Any string that corresponds to a valid category on UOGuide.
+
|validvalues=Any string that corresponds to a valid category on UOex.
 
}}
 
}}
 
{{Template Parameter
 
{{Template Parameter
Line 82: Line 82:
 
|denotes=a seventh, auxiliary category to which the category page should belong
 
|denotes=a seventh, auxiliary category to which the category page should belong
 
|generates=the seventh category of the page
 
|generates=the seventh category of the page
|validvalues=Any string that corresponds to a valid category on UOGuide.
+
|validvalues=Any string that corresponds to a valid category on UOex.
 
}}
 
}}
 
{{Template Parameter
 
{{Template Parameter
Line 89: Line 89:
 
|denotes=a eighth, auxiliary category to which the category page should belong
 
|denotes=a eighth, auxiliary category to which the category page should belong
 
|generates=the eighth category of the page
 
|generates=the eighth category of the page
|validvalues=Any string that corresponds to a valid category on UOGuide.
+
|validvalues=Any string that corresponds to a valid category on UOex.
 
}}
 
}}
 
{{Template Parameter
 
{{Template Parameter
Line 96: Line 96:
 
|denotes=a ninth, auxiliary category to which the category page should belong
 
|denotes=a ninth, auxiliary category to which the category page should belong
 
|generates=the ninth category of the page
 
|generates=the ninth category of the page
|validvalues=Any string that corresponds to a valid category on UOGuide.
+
|validvalues=Any string that corresponds to a valid category on UOex.
 
}}
 
}}
 
{{Template Parameter
 
{{Template Parameter
Line 103: Line 103:
 
|denotes=a tenth, auxiliary category to which the category page should belong
 
|denotes=a tenth, auxiliary category to which the category page should belong
 
|generates=the tenth category of the page
 
|generates=the tenth category of the page
|validvalues=Any string that corresponds to a valid category on UOGuide.
+
|validvalues=Any string that corresponds to a valid category on UOex.
 
}}</noinclude><includeonly>{{#if: {{{description|}}} | {{{description}}}
 
}}</noinclude><includeonly>{{#if: {{{description|}}} | {{{description}}}
  
 
{{#if: {{{see|}}} | '''See:''' [[{{{see}}}]] }} | {{#if: {{{see|}}} | '''See:''' [[{{{see}}}]] }} }}
 
{{#if: {{{see|}}} | '''See:''' [[{{{see}}}]] }} | {{#if: {{{see|}}} | '''See:''' [[{{{see}}}]] }} }}
 
{{#ifeq: {{PAGENAME}} | UOGuide | | {{#if: {{{category|}}} | {{Categorize|{{{category}}}}} | {{Categorize|Uncategorized Categories}} }} }}{{#if: {{{category2|}}} | {{Categorize|{{{category2}}}}} }}{{#if: {{{category3|}}} | {{Categorize|{{{category3}}}}} }}{{#if: {{{category4|}}} | {{Categorize|{{{category4}}}}} }}{{#if: {{{category5|}}} | {{Categorize|{{{category5}}}}} }}{{#if: {{{category6|}}} | {{Categorize|{{{category6}}}}} }}{{#if: {{{category7|}}} | {{Categorize|{{{category7}}}}} }}{{#if: {{{category8|}}} | {{Categorize|{{{category8}}}}} }}{{#if: {{{category9|}}} | {{Categorize|{{{category9}}}}} }}{{#if: {{{category10|}}} | {{Categorize|{{{category10}}}}} }}</includeonly>
 
{{#ifeq: {{PAGENAME}} | UOGuide | | {{#if: {{{category|}}} | {{Categorize|{{{category}}}}} | {{Categorize|Uncategorized Categories}} }} }}{{#if: {{{category2|}}} | {{Categorize|{{{category2}}}}} }}{{#if: {{{category3|}}} | {{Categorize|{{{category3}}}}} }}{{#if: {{{category4|}}} | {{Categorize|{{{category4}}}}} }}{{#if: {{{category5|}}} | {{Categorize|{{{category5}}}}} }}{{#if: {{{category6|}}} | {{Categorize|{{{category6}}}}} }}{{#if: {{{category7|}}} | {{Categorize|{{{category7}}}}} }}{{#if: {{{category8|}}} | {{Categorize|{{{category8}}}}} }}{{#if: {{{category9|}}} | {{Categorize|{{{category9}}}}} }}{{#if: {{{category10|}}} | {{Categorize|{{{category10}}}}} }}</includeonly>

Latest revision as of 08:10, 7 April 2013

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.