Difference between revisions of "Template:Category"

m
m
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
|description=
 
|description=
 
|see=
 
|see=
|see2=
 
|see3=
 
 
|category=
 
|category=
 
|category2=
 
|category2=
Line 30: Line 28:
 
|name=see
 
|name=see
 
|takes=a string
 
|takes=a string
|denotes=the main article to which the category directly relates
+
|denotes=the article or articles to which the category directly relates
|generates=a "See: PAGENAME" line underneath the description
+
|generates=a line underneath the description reading "'''See:'''" followed by an internal link to a directly associated article
|validvalues=Any string that corresponds to the name of a valid article on UOGuide.
+
|validvalues=Any string or strings that correspond to the name of a valid article or articles on UOGuide.
}}
+
{{Template Parameter
+
|name=see2
+
|takes=a string
+
|denotes=an additional article to which the category directly relates
+
|generates=a comma-separated addition to the "See: PAGENAME" line underneath the description
+
|validvalues=Any string that corresponds to the name of a valid article on UOGuide.
+
}}
+
{{Template Parameter
+
|name=see3
+
|takes=a string
+
|denotes=a third article to which the category directly relates
+
|generates=a comma-separated addition to the "See: PAGENAME" line underneath the description
+
|validvalues=Any string that corresponds to the name of a valid article on UOGuide.
+
 
}}
 
}}
 
{{Template Parameter
 
{{Template Parameter
Line 122: Line 106:
 
}}</noinclude><includeonly>{{#if: {{{description|}}} | {{{description}}}
 
}}</noinclude><includeonly>{{#if: {{{description|}}} | {{{description}}}
  
{{#if: {{{see|}}} | '''See:''' [[{{{see}}}]]{{#if: {{{see2|}}} | , [[{{{see2}}}]]{{#if: {{{see3|}}} | , [[{{{see3}}}]] }} }} }} | {{#if: {{{see|}}} | '''See:''' [[{{{see}}}]]{{#if: {{{see2|}}} | , [[{{{see2}}}]]{{#if: {{{see3|}}} | , [[{{{see3}}}]] }} }} }} }}
+
{{#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 14:28, 19 December 2011

Template:Category is designed for use on category pages to standardize their look and feel and to make them easier to create and manage.

Template

{{Category
|description=
|see=
|category=
|category2=
|category3=
|category4=
|category5=
|category6=
|category7=
|category8=
|category9=
|category10=
}}

Parameters

description

  • Usage: 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.
  • Valid Value(s): Any string or strings.

see

  • Usage: 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.
  • Valid Value(s): Any string or strings that correspond to the name of a valid article or articles on UOGuide.

category

  • Usage: Mandatory
  • 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. 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 UOGuide.

category2

  • Usage: 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.
  • Valid Value(s): Any string that corresponds to a valid category on UOGuide.

category3

  • Usage: 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.
  • Valid Value(s): Any string that corresponds to a valid category on UOGuide.

category4

  • Usage: 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.
  • Valid Value(s): Any string that corresponds to a valid category on UOGuide.

category5

  • Usage: 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.
  • Valid Value(s): Any string that corresponds to a valid category on UOGuide.

category6

  • Usage: 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.
  • Valid Value(s): Any string that corresponds to a valid category on UOGuide.

category7

  • Usage: 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.
  • Valid Value(s): Any string that corresponds to a valid category on UOGuide.

category8

  • Usage: 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.
  • Valid Value(s): Any string that corresponds to a valid category on UOGuide.

category9

  • Usage: 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.
  • Valid Value(s): Any string that corresponds to a valid category on UOGuide.

category10

  • Usage: 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.
  • Valid Value(s): Any string that corresponds to a valid category on UOGuide.