Anonymous
×
Create a new article
Write your page title here:
We currently have 205 articles on Shadowrun Seattle Shutdown. Type your article name above or click on one of the titles below and start writing!



Shadowrun Seattle Shutdown

Template:Category: Difference between revisions

(Created page with "{{Documentation}} <includeonly><onlyinclude>[[:Category:{{{1}}}]]</onlyinclude></includeonly>")
 
No edit summary
Line 1: Line 1:
{{Documentation}}
{{Documentation}}
<includeonly><onlyinclude>[[:Category:{{{1}}}]]</onlyinclude></includeonly>
<includeonly><onlyinclude>[[:Category:{{#ucfirst|{{{1}}}}}]]</onlyinclude></includeonly>

Revision as of 13:58, 22 October 2022

Icon-documentation.svg

Template:Category is used to simplify the creation of links to categories.

Usage

It accepts one mandatory string parameter and one optional parameter:

  • 1 is the name of an article in the category namespace.
  • 2, can be arbitrary text, which will change the text presented by the link, or on eof three special options:
    • add adds the article to the same category it is linking to.
    • end adjusts the output, primarily for grammatical purposes.
    • lc returns the first parameter, but in all lower case.

Return

A normal Mediawiki category link, such as [[:Category:Admin]], returns: With no optional parameters, it returns a link to the category page, without the namespace prepended. For instance, {{Category|Admin}} returns:
[[:Category:{{#ucfirst|Admin}}]]
If the second parameter is an arbitrary string, such as administrative, it returns:
[[:Category:{{#ucfirst|Admin}}]]
If the second parameter is lc, it returns:
[[:Category:{{#ucfirst|Admin}}]]
If a second parameter is end, the return is modified: {{Category|Admin|end}} returns:
[[:Category:{{#ucfirst|Admin}}]]
A second parameter of add cannot be demonstrated, as it does not work in the template namespace.

The documentation above was transcluded from Template:Category/Documentation.