Template:Cat see also
Appearance
Similar templates at English sister projects [edit] | |||
---|---|---|---|
wpd | Wikipedia | Cat see also | |
cms | Commons | Cat see also | |
wbk | Wikibooks | Cat see also | |
wsp | Wikispecies | Cat see also | |
wvy | Wikiversity | Cat see also |
(Note: The template displays an error message if given no inputs, so is hidden above)
Version-at-a-glance:
- 3) source: Wikiversity -- Expand usage to cover SISTER and LABEL parameters (lost in /doc file? Or just never updated?) // FrankB 06:48, 17 August 2008 (UTC)
- 2) source: Wikispecies/wikipedia -- Reconcile categories (Iterim) and code across sister projects // FrankB 05:53, 17 August 2008 (UTC)
- 1) source: Commons -- Move forced italics from before LABEL to default only when undefined, and matching logic for stopping italics... gives user better formatting control, by specifying LABEL. No effect when not defined, so minimal impact. // FrankB 04:51, 17 August 2008 (UTC)
Usage
[edit source]- Usual syntax
{{ Cat see also | List of category names (one or more) }}
Parameters:
- Most are pipe character separated category page names; up to 40 pages
- LABEL=Some other phrase... → replaces defaults: "See also Category:" or "See also categories:" (prefix messages).
- That phrase is normally italicized. When defining LABEL any wikimarkup or HTML text will be accepted.
- You may assume a space before the first category link.
- The template is written in an HTML <span>...</span> block, so can be used in-line as part of a sentence. Conversely, an editor must ensure a blank line or HTML "<br/>" follows it, or the text may be run the next line into it.
- SISTER=Any valid interwiki or interproject prefix from de:, fr:, es: access to other wikipedia's to cross sister wiki's using sister projects abbreviations such as B:, Q:, S:, v: etc. and where applicable, both interlingual and cross project links can be made like
SISTER=de:V:
for linking categories on the Template:Wpd Template:Wpd, orSISTER=fr:B:
for linking categories on the Template:Wpd Template:Wpd.
- Simple examples
- {{Cat see also|A}} → See also category: A
- {{Cat see also|A|B}} → See also categories: A and B
- {{Cat see also|A|B|C}} → See also categories: A, B, and C
- example w/default message
- {{Cat see also|aaa|bbb|ccc|ddd|eee|fff}}
- would give (display as)
See also Categories: aaa, bbb, ccc, ddd, and eee
- example w/LABEL parameter option
- {{Cat see also|LABEL=See this list to evaluate whether one would be a better choice of |aaa | bbb | ccc | ddd | eee | fff }}
- would give (display as)
See this list to evaluate whether one would be a better choice of categories: aaa, bbb, ccc, ddd, eee, and fff
- Pragmatic Example
Bobsledding, luge, and skeleton are Olympic sports properly subcategorized under 'sledding', so shouldn't appear (strictly speaking categorically so to speak) as sub-categories of 'winter sports', but which a lay reader using categories might expect to find them.
So to show their presence and guide proper selections for editors choosing categories amongst the three layers of categories, one can include the sub-sub-categories as a see also annotation on the Template:Wpd page.
{{cat see also|SISTER=W:|Luge|Bobsleigh|Skeleton}}