Changes
Jump to navigation
Jump to search
m
Template:Category see also/doc (view source)
Revision as of 13:32, 27 December 2021
, 13:32, 27 December 2021Reverted 1 edit by 70.235.81.219 (talk) to last revision by Matthiaspaul
{{Lua|Module:Category see also}}
{{Documentation subpage}}
{{High-use|32898}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
==Usage==
===Usual syntax===
{{block indent |'''<code><nowiki>{{Category see also|List of one or more category names}}</nowiki></code>'''}}
===Parameters===
* Most are pipe character-separated category page names; up to 40 pages can be included.
* LABEL=''Some other phrase''... → replaces the default message prefix: "{{italics correction|''See also''}}".{{block indent |em=2 |The phrase is normally italicized. When defining LABEL any wikimarkup or HTML text will be accepted. The template will add a colon at the end of the phrase.}}
* {{para|project}}: Any valid interwiki or interproject prefix from de:, fr:, es: access to other language Wikipedias to cross-sister wikis using sister projects abbreviations such as B:, Q:, S:, V: etc. Where applicable, both interlingual and cross-project links can be rendered as follows:
** {{para|project|''es''}} for linking categories on es.wikipedia.org, the Spanish-language Wikipedia, or
** {{para|project|''de:V''}} for linking categories on de.wikiversity.org, the German-language [[Wikiversity]], or
** {{para|project|''fr:B''}} for linking categories on fr.wikibooks.org, the French-language [[Wikibooks]].
* The template creates a block-level element in the HTML, effectively forming its own paragraph; it may not be used inline in text.
===Simple examples===
# <code><nowiki>{{Category see also|A}}</nowiki></code> → {{Category see also|A}}
# <code><nowiki>{{Category see also|A|B}}</nowiki></code> → {{Category see also|A|B}}
# <code><nowiki>{{Category see also|A|B|C}}</nowiki></code> → {{Category see also|A|B|C}}
===Example with default message===
{{block indent |<code><nowiki>{{Category see also|aaa|bbb|ccc|ddd|eee}}</nowiki></code> → {{Category see also|aaa|bbb|ccc|ddd|eee}}}}
===Example with LABEL parameter option===
{{block indent |<code><nowiki>{{Category see also|LABEL=See this list to evaluate whether one of them would be a better choice|aaa|bbb|ccc|ddd|eee}}</nowiki></code> → {{Category see also|LABEL=See this list to evaluate whether one of them would be a better choice|aaa|bbb|ccc|ddd|eee}}}}
===Practical example===
Bobsledding and luge are Olympic sports properly subcategorized under "sledding", so should not appear (strictly speaking categorically) as sub-categories of "winter sports". However, a lay reader using categories might expect to find them there. So to show their presence and guide proper selections for editors choosing categories, one can include the sub-sub-categories as a see also annotation on the [[:Category:Winter sports]] page.
{{block indent |<code><nowiki>{{Category see also|Luge|Bobsleigh}}</nowiki></code> → {{Category see also|Luge|Bobsleigh}}}}
== TemplateData ==
{{Collapse top|[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}}
{{TemplateData header|noheader=1}}
<templatedata>
{
"params": {
"1": {
"required": true
},
"2": {},
"3": {},
"4": {},
"5": {},
"6": {},
"7": {},
"8": {},
"9": {},
"10": {},
"11": {},
"12": {},
"13": {},
"14": {},
"15": {},
"16": {},
"17": {},
"18": {},
"19": {},
"20": {},
"21": {},
"22": {},
"23": {},
"24": {},
"25": {},
"26": {},
"27": {},
"28": {},
"29": {},
"30": {},
"31": {},
"32": {},
"33": {},
"34": {},
"35": {},
"36": {},
"37": {},
"38": {},
"39": {},
"40": {},
"41": {},
"LABEL": {},
"project": {
"example": "es, de:V, fr:B",
"type": "string",
"default": "en"
}
}
}
</templatedata>
{{Collapse bottom}}
==See also==
* {{tl|Category see also if exists}}
* {{tl|Navseasoncats}} – for navigation between categories with years, decades, ordinals, or seasons in their name
* {{tl|Category link}}
{{Category hatnote templates}}
{{Hatnote templates}}
<includeonly>{{sandbox other||
[[Category:Exclude in print]]
[[Category:Hatnote templates for category pages]]
[[Category:Internal category-link templates]]
[[Category:Interwiki link templates]]
[[Category:Wikipedia see also]]
}}</includeonly>
{{Documentation subpage}}
{{High-use|32898}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
==Usage==
===Usual syntax===
{{block indent |'''<code><nowiki>{{Category see also|List of one or more category names}}</nowiki></code>'''}}
===Parameters===
* Most are pipe character-separated category page names; up to 40 pages can be included.
* LABEL=''Some other phrase''... → replaces the default message prefix: "{{italics correction|''See also''}}".{{block indent |em=2 |The phrase is normally italicized. When defining LABEL any wikimarkup or HTML text will be accepted. The template will add a colon at the end of the phrase.}}
* {{para|project}}: Any valid interwiki or interproject prefix from de:, fr:, es: access to other language Wikipedias to cross-sister wikis using sister projects abbreviations such as B:, Q:, S:, V: etc. Where applicable, both interlingual and cross-project links can be rendered as follows:
** {{para|project|''es''}} for linking categories on es.wikipedia.org, the Spanish-language Wikipedia, or
** {{para|project|''de:V''}} for linking categories on de.wikiversity.org, the German-language [[Wikiversity]], or
** {{para|project|''fr:B''}} for linking categories on fr.wikibooks.org, the French-language [[Wikibooks]].
* The template creates a block-level element in the HTML, effectively forming its own paragraph; it may not be used inline in text.
===Simple examples===
# <code><nowiki>{{Category see also|A}}</nowiki></code> → {{Category see also|A}}
# <code><nowiki>{{Category see also|A|B}}</nowiki></code> → {{Category see also|A|B}}
# <code><nowiki>{{Category see also|A|B|C}}</nowiki></code> → {{Category see also|A|B|C}}
===Example with default message===
{{block indent |<code><nowiki>{{Category see also|aaa|bbb|ccc|ddd|eee}}</nowiki></code> → {{Category see also|aaa|bbb|ccc|ddd|eee}}}}
===Example with LABEL parameter option===
{{block indent |<code><nowiki>{{Category see also|LABEL=See this list to evaluate whether one of them would be a better choice|aaa|bbb|ccc|ddd|eee}}</nowiki></code> → {{Category see also|LABEL=See this list to evaluate whether one of them would be a better choice|aaa|bbb|ccc|ddd|eee}}}}
===Practical example===
Bobsledding and luge are Olympic sports properly subcategorized under "sledding", so should not appear (strictly speaking categorically) as sub-categories of "winter sports". However, a lay reader using categories might expect to find them there. So to show their presence and guide proper selections for editors choosing categories, one can include the sub-sub-categories as a see also annotation on the [[:Category:Winter sports]] page.
{{block indent |<code><nowiki>{{Category see also|Luge|Bobsleigh}}</nowiki></code> → {{Category see also|Luge|Bobsleigh}}}}
== TemplateData ==
{{Collapse top|[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}}
{{TemplateData header|noheader=1}}
<templatedata>
{
"params": {
"1": {
"required": true
},
"2": {},
"3": {},
"4": {},
"5": {},
"6": {},
"7": {},
"8": {},
"9": {},
"10": {},
"11": {},
"12": {},
"13": {},
"14": {},
"15": {},
"16": {},
"17": {},
"18": {},
"19": {},
"20": {},
"21": {},
"22": {},
"23": {},
"24": {},
"25": {},
"26": {},
"27": {},
"28": {},
"29": {},
"30": {},
"31": {},
"32": {},
"33": {},
"34": {},
"35": {},
"36": {},
"37": {},
"38": {},
"39": {},
"40": {},
"41": {},
"LABEL": {},
"project": {
"example": "es, de:V, fr:B",
"type": "string",
"default": "en"
}
}
}
</templatedata>
{{Collapse bottom}}
==See also==
* {{tl|Category see also if exists}}
* {{tl|Navseasoncats}} – for navigation between categories with years, decades, ordinals, or seasons in their name
* {{tl|Category link}}
{{Category hatnote templates}}
{{Hatnote templates}}
<includeonly>{{sandbox other||
[[Category:Exclude in print]]
[[Category:Hatnote templates for category pages]]
[[Category:Internal category-link templates]]
[[Category:Interwiki link templates]]
[[Category:Wikipedia see also]]
}}</includeonly>