Template:Category see also: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>W guice
(Undid revision 243626717 by W guice (talk)did it wrong)
meta>Happy-melon
(use {{documentation}})
Line 40: Line 40:
}}{{#if:{{{40|}}}|, and [[{{{SISTER|}}}:Category:{{{40}}}|{{{ 40}}}]]
}}{{#if:{{{40|}}}|, 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></includeonly><noinclude><div style="background:#bbddff; padding:1em;margin:0 2em 0 2em; ">{{interwikitmp-grp|V=1}}
}} </span></includeonly><noinclude>
<center>(Note: The template displays an error message if given no inputs, so is hidden above)</center>
{{documentation}}
{{usage div}}
 
==Usage==
;Usual syntax
:<code> '''<nowiki>{{</nowiki> Cat see also | List of category names (one or more) }}'''</code>
 
'''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 &lt;span>...</span&gt; block, so can be used in-line as part of a sentence. Conversely, an editor must ensure a blank line or HTML "&lt;br/&gt;" 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
## <code>SISTER=de:V:</code> for linking categories on the {{wpd|German language}} {{wpd|Wikiversity}}, or
## <code>SISTER=fr:B:</code> for linking categories on the {{wpd|French language}} {{wpd|Wikibooks}}.
 
;Simple examples
# <nowiki>{{</nowiki>Cat see also|A}} → {{Cat see also|A}}<br/><br/>
# <nowiki>{{</nowiki>Cat see also|A|B}} → {{Cat see also|A|B}}<br/><br/>
# <nowiki>{{</nowiki>Cat see also|A|B|C}} → {{Cat see also|A|B|C}}<br/>
 
;example w/default message:
: <tt><nowiki>{{Cat see also|aaa|bbb|ccc|ddd|eee|fff}}</nowiki></tt>
 
;would give (display as):
:<code> ''See also Categories:'' aaa, bbb, ccc, ddd, and eee </code>
 
;example w/LABEL parameter option
: <tt><nowiki>{{Cat see also|LABEL=See this list to evaluate whether one would be a better choice of |aaa | bbb | ccc | ddd | eee | fff }}</nowiki></tt>
 
;would give (display as):
:<code> ''See this list to evaluate whether one would be a better choice of categories: aaa, bbb, ccc, ddd, eee, and fff'' </code>
;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. {{I2}}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 {{wpd|:Category:Winter sports|Winter sports}} page.
 
:{{cat see also|SISTER=W:|Luge|Bobsleigh|Skeleton}}
;given by...
<pre>{{cat see also|SISTER=W:|Luge|Bobsleigh|Skeleton}}</pre>
 
{{#ifexist:Template:Templates linking contents|
{{Templates linking contents}}
}}
{{#ifexist:Category:Internal link templates|
[[Category:Internal link templates|{{PAGENAME}}]]
}}
{{#ifexist:Category:Category navigational templates|
[[Category:Category navigational templates|{{PAGENAME}}]]
}}
{{#ifeq:{{Silence}}|NO|
{{#ifexist:Category:Templates using ParserFunctions|
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
}}
|}}
{{#ifexist:Category:Internal link templates|
[[Category:Internal link templates|{{PAGENAME}}]]
}}
{{#ifexist:Category:Navigational templates|
[[Category:Navbox (navigational) templates|{{PAGENAME}}]]
}}
{{#ifexist:Category:Section templates |
[[Category:Section templates|{{PAGENAME}}]]
}}
{{#ifexist:Category:List templates|
[[Category:List templates|{{PAGENAME}}]]
}}
{{#ifexist:Category:Category namespace templates|
[[Category:Category namespace templates|{{PAGENAME}}]]
}}
{{#ifexist:Category:See also templates|
[[Category:See also templates]]
}}
 
<!-- interwiki's --->
{{#ifeq:{{SITENAME}}|Wikimedia Commons|
[[en:Template:Cat see also]]
[[b:en:Template:Cat see also]]
[[species:Template:Cat see also]]
[[v:Template:Cat see also]]
}}
[[zh:Template:参看]]
</noinclude>
</noinclude>

Revision as of 22:41, 1 December 2008