Template:Linkcat
{{linkcat|singular name}} links to an article of that name and categorizes the current page under the plural form of that name.
For example, an elf subject can easily link to the elf page while being categorized among Category:Elves. The category is only added when used on article pages, i.e. in the main namespace.
This is primarily used as a component template for {{Infobox character}}, {{Infobox artifact}} and {{Infobox affiliation}}. For this reason, it's important this template returns no/blank text if no parameter is provided: this causes the infobox to simply ignore the line entirely without the use of additional if statements.
This template relies on {{plural}} to work correctly. Its list of subtypes should be updated if this template does not produce the correct category.
Parameters
Both additional parameters are optional.
|plural=1
causes the template to pluralize the link display name and the category name.|asis=1
causes the template to use the input "as-is" for the category rather than pluralizing it.