Vorlage:Cat main/doc: Unterschied zwischen den Versionen
(Tweaked to match a recent change) |
K (1 Version von mediawikiwiki:Template:Cat_main/doc importiert) |
||
Zeile 1: | Zeile 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
==Usage== | ===Usage=== | ||
This template is for use on | 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): | Normal usage (uses category name for wiki link): | ||
*{{tlx|Cat main}} → {{Cat main}} | * {{tlx|Cat main|Template:Cat main}} → {{Cat main|Template:Cat main}} | ||
If the name of the main article is different than the name of the category | If the name of the main article is different than the name of the category. | ||
===Multiple articles=== | ===Multiple articles=== | ||
Simply append more articles as additional arguments (up to five): | Simply append more articles as additional arguments (up to five): | ||
*{{tlx|Cat main| | * {{tlx|Cat main|Main Page}} results in {{Cat main|Main Page}} | ||
*{{tlx|Cat main| | * {{tlx|Cat main|Main Page|MediaWiki}} results in {{Cat main|Main Page|MediaWiki}} | ||
*{{tlx|Cat main| | * {{tlx|Cat main|Main Page|MediaWiki|MediaWiki|MediaWiki|MediaWiki}} results in {{Cat main|Main Page|MediaWiki|MediaWiki|MediaWiki|MediaWiki}} | ||
===Pages which aren't articles=== | ===Pages which aren't articles=== | ||
*{{tlx|Cat main|w:WP:WikiProject|article{{=}}no}} → {{Cat main|w:WP:WikiProject|article=no}} | |||
*{{tlx|Cat main|WP:WikiProject|article{{=}}no}} → {{Cat main|WP:WikiProject|article=no | |||
{{ | <includeonly> | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, INSIDE INCLUDEONLY TAGS, THANK YOU. --> | |||
[[Category:Categories templates|{{PAGENAME}}]] | |||
<!--interwiki--> | |||
<!-- | </includeonly> | ||
Version vom 16. Januar 2023, 20:38 Uhr
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}}
→
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}}
→