模板:Cat main/doc:修订间差异
外观
wiki>Samwilson Categories templates → Category namespace templates |
小 导入1个版本 |
(没有差异)
| |
2025年12月16日 (二) 16:40的最新版本
| 文件:Codex icon book color-base.svg | This is a documentation subpage for 模板:Cat main. It contains usage information, categories and other content that is not part of the original 模板 page. |
Usage
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.
Normal usage (uses category name for wiki link):
- {{Cat main|Template:Cat main}} → The main article for this category is Template:Cat main.
If the name of the main article is different than the name of the category.
Multiple articles
Simply append more articles as additional arguments (up to five):
- {{Cat main|Main Page}} results in
- {{Cat main|Main Page|MediaWiki}} results in
- {{Cat main|Main Page|MediaWiki|MediaWiki|MediaWiki|MediaWiki}} results in
Pages which aren't articles
- {{Cat main|w:WP:WikiProject|article=no}} → The main page for this category is w:WP:WikiProject.