Template:category

From Wiktionary, the free dictionary
Jump to navigation Jump to search

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

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

Parameters

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

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

See also

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