Template:category/documentation

From Wiktionary, the free dictionary
Jump to navigation Jump to search
Documentation for Template:category. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

This template imitates the format of a wikilink to a category.

It is formatted using [[double-brackets]], with the text Category: appended to the front. e.g. [[Category:Wiktionary]]. If the link is invalid, then the clickable link will be disabled.

Usage

[edit]

This template may be added anywhere outside of content namespaces to display a category link.

Parameters

[edit]

This template uses one or two unnamed (positional) parameters:

  • |1= (required) The category to be linked to, without the Category: prefix.
  • |2= (optional) The sortkey to be displayed in the category link.

Examples

[edit]
{{category|Some<invalid>category name}}
Result: [[Category:Some<invalid>category name]]

See also

[edit]
  • {{temp}} / {{tl}} — templates for a template link