< Template:Category
Revision as of 19:21, 24 October 2022 by Arcology Expert Program (talk | contribs)
Template:Category is used to simplify the creation of links to categories.
Usage
It accepts one mandatory string parameter and one optional parameter:
1is the name of an article in the category namespace.2, if supplied, must be one of two options:endadjusts the output, primarily for gramatical purposes.addadds the article to the same category it is linking to.
Return
It returns a link to the category page, without the namespace prepended. For instance, {{Category|Admin}} returns:
This is in contrast to a normal Mediawiki category link, such as [[:Category:Admin]], which would return:
If a second parameter of end is included, the return is modified: {{Category|Admin|end}} returns:
Admin category
A second parameter of add can not be demonstrated, as it does not work in the template namespace.
