Difference between revisions of "Template:Category see also"

From LIMSWiki
Jump to navigationJump to search
(Created template to help with Categories.)
 
m (Added cat.)
Line 43: Line 43:


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

Revision as of 02:20, 5 June 2011

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

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

  1. {{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