Template:CatRel: Difference between revisions
Jump to navigation
Jump to search
Created page with "<includeonly>:''<!-- -->{{#if:{{{1|}}}|<!-- -->{{#if:{{{2|}}}|<!-- -->{{#if:{{{3|}}}|<!-- -->{{#if:{{{4|}}}|<!-- -->{{#if:{{{5|}}}|<!-- -->Warning: too many category names. See {{tl|CatRel}} for the documentation.<!-- -->|<!-- =4 -->See also categories [[:Category:{{{1}}}|{{{1}}}]], [[:Category:{{{2}}}|{{{2}}}]], [[:Category:{{{3}}}|{{{3}}}]] and [[:Category:{{{4}}}|{{{4}}}]]}}<!-- -->|<!-- =3 -->See also categories [[:Category:{{{1}}}|{{{1}}}]], :Category:{{{2}}}|{{{2..." |
simplify via subtemplate |
||
| Line 6: | Line 6: | ||
-->{{#if:{{{5|}}}|<!-- | -->{{#if:{{{5|}}}|<!-- | ||
-->Warning: too many category names. See {{tl|CatRel}} for the documentation.<!-- | -->Warning: too many category names. See {{tl|CatRel}} for the documentation.<!-- | ||
-->|<!-- =4 -->See also categories | -->|<!-- =4 -->See also categories {{c|{{{1}}}}}, {{c|{{{2}}}}}, {{c|{{{3}}}}} and {{c|{{{4}}}}}}}<!-- | ||
-->|<!-- =3 -->See also categories | -->|<!-- =3 -->See also categories {{c|{{{1}}}}}, {{c|{{{2}}}}} and {{c|{{{3}}}}}}}<!-- | ||
-->|<!-- =2 -->See also categories | -->|<!-- =2 -->See also categories {{c|{{{1}}}}} and {{c|{{{2}}}}}}}<!-- | ||
-->|<!-- =1 -->See also category | -->|<!-- =1 -->See also category {{c|{{{1}}}}}}}<!-- | ||
-->|<!-- =0 -->Warning: missing category name. See {{tl|CatRel}} for the documentation.}}''</includeonly><noinclude>This is a small template to link to one or more related categories. | -->|<!-- =0 -->Warning: missing category name. See {{tl|CatRel}} for the documentation.}}''</includeonly><noinclude>This is a small template to link to one or more related categories. | ||
| Line 24: | Line 24: | ||
* <tt><nowiki>{{CatRel|Templates}}</nowiki></tt> | * <tt><nowiki>{{CatRel|Templates}}</nowiki></tt> | ||
: {{CatRel|Templates}} | : {{CatRel|Templates}} | ||
* <tt><nowiki>{{CatRel|Category:Templates}}</nowiki></tt> | |||
: {{CatRel|Category:Templates}} | |||
* <tt><nowiki>{{CatRel}}</nowiki></tt> | * <tt><nowiki>{{CatRel}}</nowiki></tt> | ||
: {{CatRel}} | : {{CatRel}} | ||
Revision as of 15:21, 30 March 2023
This is a small template to link to one or more related categories.
This template should be transcluded on a separate line. It is designed to be used either at the beginning of a section other than the lead section of the article, or on a category page in the description of the category. Up to four links are currently supported.
Examples
- {{CatRel|Spaceships|Oscillators|Still lifes|Sawtooths}}
- See also categories Spaceships, Oscillators, Still lifes and Sawtooths
- {{CatRel|Spaceships|Oscillators|Still lifes}}
- See also categories Spaceships, Oscillators and Still lifes
- {{CatRel|Spaceships|Oscillators}}
- See also categories Spaceships and Oscillators
- {{CatRel|Templates}}
- See also category Templates
- {{CatRel|Category:Templates}}
- See also category Templates
- {{CatRel}}
- Warning: missing category name. See {{CatRel}} for the documentation.
- {{CatRel|A|B|C|D|E}}
- Warning: too many category names. See {{CatRel}} for the documentation.
Other templates
- {{related}} -- a template for linking to related pages in the main namespace
- {{CategoryLink}} -- another category-linking template, used in "See also" sections of articles and for formatted inline links