Difference between revisions of "Template:Category see also"

From LIMSWiki
Jump to navigationJump to search
m (Added cat.)
m (Protected "Template:Category see also" ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
:<span class="boilerplate catseealso">{{{LABEL|''See also}}} {{#if:{{{1|}}}|{{#if:{{{2|}}}|categories:{{#if:{{{LABEL|}}}||''}} [[{{{SISTER|}}}:Category:{{{1}}}|{{{1}}}]]|Category:{{#if:{{{LABEL|}}}||''}} [[{{{SISTER|}}}:Category:{{{1}}}|{{{1}}}]]
<span class="rellink">{{{LABEL|See also}}} {{#if:{{{1|}}}|{{#if:{{{2|}}}|categories: [[{{{SISTER|}}}:Category:{{{1}}}|{{{1}}}]]|Category: [[{{{SISTER|}}}:Category:{{{1}}}|{{{1}}}]]
}} |{{Error|Error using [[Template:Cat see also]]: at least one category name is required}}}}{{#if:{{{2|}}}|{{#if:{{{3|}}}|, |&nbsp;and }} [[{{{SISTER|}}}:Category:{{{2}}}|{{{ 2 }}}]]
}} |{{Error|Error using [[Template:Cat see also]]: at least one category name is required|tag=span}}}}{{#if:{{{2|}}}|{{#if:{{{3|}}}|, |&nbsp;and }} [[{{{SISTER|}}}:Category:{{{2}}}|{{{ 2 }}}]]
}}{{#if:{{{3|}}}|{{#if:{{{4|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{3}}}|{{{ 3 }}}]]
}}{{#if:{{{3|}}}|{{#if:{{{4|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{3}}}|{{{ 3 }}}]]
}}{{#if:{{{4|}}}|{{#if:{{{5|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{4}}}|{{{ 4 }}}]]
}}{{#if:{{{4|}}}|{{#if:{{{5|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{4}}}|{{{ 4 }}}]]
Line 40: Line 40:
}}{{#if:{{{40|}}}|,&nbsp;and [[{{{SISTER|}}}:Category:{{{40}}}|{{{ 40}}}]]
}}{{#if:{{{40|}}}|,&nbsp;and [[{{{SISTER|}}}:Category:{{{40}}}|{{{ 40}}}]]
}}{{#if:{{{41|}}}|…'''Error: [[Template:Cat see also]] maximum 40 list parameters allowed.'''
}}{{#if:{{{41|}}}|…'''Error: [[Template:Cat see also]] maximum 40 list parameters allowed.'''
}} </span><noinclude>
}}.</span><noinclude>


{{documentation}}
{{documentation}}
[[Category:Category namespace templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Latest revision as of 00:11, 31 May 2013

See also Error using Template:Cat see also: at least one category name is required.

[edit] [purge] Template documentation

Usage

Usual syntax
{{Category see also|List of category names (one or more)}}

Parameters:

  1. Most are pipe character separated category page names; up to 40 pages
  2. LABEL=Some other phrase... → replaces defaults: "See also Category:" or "See also categories:" (prefix messages).
    1. That phrase is normally italicized. When defining LABEL any wikimarkup or HTML text will be accepted.
    2. You may assume a space before the first category link.
    3. 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.
  3. 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
    1. SISTER=de:V: for linking categories on the German language Wikiversity, or
    2. SISTER=fr:B: for linking categories on the French language Wikibooks.
Simple examples
  1. {{Category see also|A}} → See also Category: A.

  2. {{Category see also|A|B}} → See also categories: A and B.

  3. {{Category see also|A|B|C}} → See also categories: A, B, and C.
example w/default message
{{Category 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
{{Category 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 and luge 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 Category:Winter sports page.

See also categories: Luge and Bobsleigh.
given by...
{{Category see also|Luge|Bobsleigh}}


See also