Template:Category main article/doc
Sarna News
- Bad 'Mechs - Thresher Mk II
- HEXTECH Wave 9 Review - Winding Rivers, Tall Walls, and Underground Tunnels
- Hired Steel and Making MechWarrior 5: Clans Cinematics with Constantin & Bernhard of TMC
- Your BattleTech News Round-Up For December, 2024
- Community Outreach - Caterwauling On CamoSpecs With Matt "00Dawg" Frederiksen
- Read more →
This is a documentation subpage for Template:Category main article. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
Usage[edit]
This template is for use on Category pages, to refer to the primary article associated with this category, which most of the time, describes the entire set containing the category.
This template is not a replacement for adding a category to the main article. The main article of a category should always have the category set. Furthermore, the main article should always have a space as sort key so that it appears on top of a category.
Normal usage (uses category name for wiki link):
{{Category main article}}
results in
If the name of the main article is different than the name of the category — for example: if the main article for Category:Draconis Combine Commands is DCMS — then you will need to use one parameter to specify the article:
{{Category main article|DCMS}}
results in
Multiple articles[edit]
Simply append more articles as additional arguments (up to five):
{{Category main article|3151}}
results in{{Category main article|3151|3152}}
results in{{Category main article|3148|3149|3150|3151|3152}}
results in
Pages which aren't articles[edit]
The template should automatically detect titles being outside the article namespace, but this may also be set manually:
{{Category main article|BTW:WikiProject|article=no}}
results in
TemplateData[edit]
TemplateData for Category main article
Specifies the primary article(s) associated with this category
Parameter | Description | Type | Status | |
---|---|---|---|---|
Article 1 | 1 | Name of primary article, if different from category name | Page | optional |
Article 2 | 2 | Name of second main article | Page | optional |
Article 3 | 3 | Name of third main article | Page | optional |
Article 4 | 4 | Name of fourth main article | Page | optional |
Article 5 | 5 | Name of fifth main article | Page | optional |
Redirects[edit]
{{Cat main}}
{{Category main}}