Template:Category

From SoftMC-Wiki
Jump to: navigation, search

This template is used on common categories to provide a similarly looking short description and a link to the front page for the category.

Template

{{Category
|description=
|frontpage=
}}

Parameters

description
Text added after the category name
frontpage (optional)
Link to the front page for the category, if exists.

Operation

  • If frontpage is empty and a page with the name of the category exists (page name after Category:), it is automatically linked as front page.

Examples

The following is used in the Category:Help page:

{{Category
|description=
contains help pages that describe how to use MediaWiki.
Only pages in "Help:" namespace should be in this category.
|frontpage=[[Help:Contents]]
}}

For more examples refer to pages, which use this template: What links here.

Help:Templates describes general usage of templates, including treatment of special characters.