Template:C

From MozillaWiki
Jump to: navigation, search

[[:Category:{{{1}}}|Category:{{{1}}}]]

Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

This template produces a link to a category. It's meant to be an easier way to link to categories.

The current syntax for creating a link to a category, [[:Category:Category Name]], is confusingly similar to the syntax for adding a page to a category, [[Category:Category Name]] (only a single colon character differs).

Parameters

The syntax for {{c}} is {{c|category name}}, where

  • category name is the name of the category to which you want to link.

NB! The template automatically includes the preceding namespace, "Category:". Hence, if you, as an example, want to link to a category called Mozilla, you just enter "Mozilla".

Examples

If the resulting link is displayed in red, it means that the category you wished to link to doesn't exist yet. Click the link to go to the page for creating that category.

See also

  • {{category}} – same function as this template, but with the option to add a custom link text.