Template:Category see also: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Ludwigs2
grammar tweak
meta>Fabartus
Reconcile categories (Iterim) and code across sister projects
Line 1: Line 1:
<includeonly><div class="boilerplate catseealso">''See also (related {{#if:{{{1|}}}|{{#if:{{{2|}}}|categories): {{I5}}[[{{{SISTER|}}}:Category:{{{1}}}|{{{1}}}]] |category): [[{{{SISTER|}}}:Category: {{{1}}}|{{{1}}}]]}} |Editing error: '''No argument given''''' in template ''{{tl|cat see also}}
<noinclude>
}}{{#if:{{{2|}}}|{{#if:{{{3|}}}|, |&nbsp;and }} [[{{{SISTER|}}}:Category: {{{2}}}|{{{ 2 }}}]]
<!-- If you want "See also (related category):" write your own front end template like wpd-catlist-up, etc. or just use the LABEL=... that's why it was put there! - This version is interwiki, and there is no "related" albums on other sister projects! User:Fabartus aka FrankB 05:51, 17 August 2008 -->
}}{{#if:{{{3|}}}|{{#if:{{{4|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category: {{{3}}}|{{{ 3 }}}]]
</noinclude><includeonly><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}}}]]
}}{{#if:{{{4|}}}|{{#if:{{{5|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category: {{{4}}}|{{{ 4 }}}]]
}} |'''Error: [[Template:Cat see also]]←→Template must be given at least one category name.'''}}{{#if:{{{2|}}}|{{#if:{{{3|}}}|, |&nbsp;and }} [[{{{SISTER|}}}:Category:{{{2}}}|{{{ 2 }}}]]
}}{{#if:{{{5|}}}|{{#if:{{{6|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category: {{{5}}}|{{{ 5 }}}]]
}}{{#if:{{{3|}}}|{{#if:{{{4|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{3}}}|{{{ 3 }}}]]
}}{{#if:{{{6|}}}|{{#if:{{{7|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category: {{{6}}}|{{{ 6 }}}]]
}}{{#if:{{{4|}}}|{{#if:{{{5|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{4}}}|{{{ 4 }}}]]
}}{{#if:{{{7|}}}|{{#if:{{{8|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category: {{{7}}}|{{{ 7 }}}]]
}}{{#if:{{{5|}}}|{{#if:{{{6|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{5}}}|{{{ 5 }}}]]
}}{{#if:{{{8|}}}|{{#if:{{{9|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category: {{{8}}}|{{{ 8 }}}]]
}}{{#if:{{{6|}}}|{{#if:{{{7|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{6}}}|{{{ 6 }}}]]
}}{{#if:{{{9|}}}|{{#if:{{{10|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category: {{{9}}}|{{{ 9 }}}]]
}}{{#if:{{{7|}}}|{{#if:{{{8|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{7}}}|{{{ 7 }}}]]
}}{{#if:{{{10|}}}|{{#if:{{{11|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category: {{{10}}}|{{{ 10 }}}]]
}}{{#if:{{{8|}}}|{{#if:{{{9|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{8}}}|{{{ 8 }}}]]
}}{{#if:{{{11|}}}|{{#if:{{{12|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category: {{{11}}}|{{{ 11 }}}]]
}}{{#if:{{{9|}}}|{{#if:{{{10|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{9}}}|{{{ 9 }}}]]
}}{{#if:{{{12|}}}|{{#if:{{{13|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category: {{{12}}}|{{{ 12 }}}]]
}}{{#if:{{{10|}}}|{{#if:{{{11|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{10}}}|{{{ 10 }}}]]
}}{{#if:{{{13|}}}|{{#if:{{{14|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category: {{{13}}}|{{{ 13 }}}]]
}}{{#if:{{{11|}}}|{{#if:{{{12|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{11}}}|{{{ 11 }}}]]
}}{{#if:{{{14|}}}|{{#if:{{{15|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category: {{{14}}}|{{{ 14 }}}]]
}}{{#if:{{{12|}}}|{{#if:{{{13|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{12}}}|{{{ 12 }}}]]
}}{{#if:{{{15|}}}|,&nbsp;and [[{{{SISTER|}}}:Category: {{{15}}}|{{{ X }}}]]
}}{{#if:{{{13|}}}|{{#if:{{{14|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{13}}}|{{{ 13 }}}]]
}}{{#if:{{{16|}}}|…'''Error: [[Template:Cat see also]] maximum 15 articles allowed'''
}}{{#if:{{{14|}}}|{{#if:{{{15|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{14}}}|{{{ 14 }}}]]
}}''</div></includeonly><noinclude>{{-}}Note:Hidden content when viewing directly--template generates an error message when given no parameters.
}}{{#if:{{{15|}}}|{{#if:{{{16|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{15}}}|{{{ 15 }}}]]
{{TOCright}}
}}{{#if:{{{16|}}}|{{#if:{{{17|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{16}}}|{{{ 16 }}}]]
==Use example==
}}{{#if:{{{17|}}}|{{#if:{{{18|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{17}}}|{{{ 17 }}}]]
{{cat see also|SISTER=W:|Luge|Bobsleigh|Skeleton}}
}}{{#if:{{{18|}}}|{{#if:{{{19|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{18}}}|{{{ 18 }}}]]
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 {{Cat|Winter sports}} page such as:
}}{{#if:{{{19|}}}|{{#if:{{{20|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{19}}}|{{{ 19 }}}]]
}}{{#if:{{{20|}}}|{{#if:{{{21|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{20}}}|{{{ 20 }}}]]
}}{{#if:{{{21|}}}|{{#if:{{{22|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{21}}}|{{{ 21 }}}]]
}}{{#if:{{{22|}}}|{{#if:{{{23|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{22}}}|{{{ 22 }}}]]
}}{{#if:{{{23|}}}|{{#if:{{{24|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{23}}}|{{{ 23 }}}]]
}}{{#if:{{{24|}}}|{{#if:{{{25|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{24}}}|{{{ 24 }}}]]
}}{{#if:{{{25|}}}|{{#if:{{{26|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{25}}}|{{{ 25 }}}]]
}}{{#if:{{{26|}}}|{{#if:{{{27|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{26}}}|{{{ 26 }}}]]
}}{{#if:{{{27|}}}|{{#if:{{{28|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{27}}}|{{{ 27 }}}]]
}}{{#if:{{{28|}}}|{{#if:{{{29|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{28}}}|{{{ 28 }}}]]
}}{{#if:{{{29|}}}|{{#if:{{{30|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{29}}}|{{{ 29 }}}]]
}}{{#if:{{{30|}}}|{{#if:{{{31|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{30}}}|{{{ 30 }}}]]
}}{{#if:{{{31|}}}|{{#if:{{{32|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{31}}}|{{{ 31 }}}]]
}}{{#if:{{{32|}}}|{{#if:{{{33|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{32}}}|{{{ 32 }}}]]
}}{{#if:{{{33|}}}|{{#if:{{{34|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{33}}}|{{{ 33 }}}]]
}}{{#if:{{{34|}}}|{{#if:{{{35|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{34}}}|{{{ 34 }}}]]
}}{{#if:{{{35|}}}|{{#if:{{{36|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{35}}}|{{{ 35 }}}]]
}}{{#if:{{{36|}}}|{{#if:{{{37|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{36}}}|{{{ 36 }}}]]
}}{{#if:{{{37|}}}|{{#if:{{{38|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{37}}}|{{{ 37 }}}]]
}}{{#if:{{{38|}}}|{{#if:{{{39|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{38}}}|{{{ 38 }}}]]
}}{{#if:{{{39|}}}|{{#if:{{{40|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category:{{{39}}}|{{{ 39 }}}]]
}}{{#if:{{{40|}}}|,&nbsp;and [[{{{SISTER|}}}:Category:{{{40}}}|{{{ 40}}}]]
}}{{#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}}
<center>(Note: The template displays an error message if given no inputs, so is hidden above)</center>
{{usage div}}
'''Version-at-a-glance:'''
:2) source: Wikispecies/wikipedia -- Reconcile categories (Iterim) and code across sister projects // <b>[[User:Fabartus|Fra]]</b><font color="green">[[User talk:Fabartus|nkB]]</font> 05:53, 17 August 2008 (UTC)<br/>
: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. // <B>[[User:Fabartus|Fra]]</B><font color="green">[[User talk:Fabartus|nkB]]</font> 04:51, 17 August 2008 (UTC)
</div>
==Usage==
;Usual syntax
:<code> '''<nowiki>{{</nowiki> Cat see also | List of category names (one or more) }}'''</code>


This method efficiently provides a look one level lower for decisions on categorization, is neat, and provides the same link as if the sub-sub-cats were direct daughter  sub-cats or parents or cross-links to sisters at that level of the categorization scheme.
'''Parameters are category page names, Etc., up to 40 parameters .
# <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/>


=Purpose=
;example w/default message:
&#123;&#123;[[Template:Cat see also|Cat see also]]&#125;&#125; is used for small sets of '''see also''' (list of other categories) for information ''in the end of text <u>on category pages</u> or talk pages, etc.
: <tt><nowiki>{{Cat see also|aaa|bbb|ccc|ddd|eee|fff}}</nowiki></tt>
#The parameters may be preceded by any 'correct' optional [[Wikipedia:Sister projects|sister projects]] ''''SISTER=' parameter''' which is first applied to all the default prefixes by template logic.
##By default, that creates an automatic prefix that is solely the string ''''Category''''
##and when the 'SISTER=' parameter is given, an automatic '''':''''will be added between that and the defined value of 'SISTER='.
#Thus the [[Wd|concatation]] with a 'SISTER=Wikt' results in creating an applied prefix ''''Wikt:Category:'''' which is prefixed to all terms in the list.
#Hence the template has a very powerful 'Interwiki scope' thereby '''allowing one to list Categories on other sister projects.'''
#The template will take up to forty category names.


{{Interwikitmp-grp|V=6|cat=typing-aid templates}}
;would give (display as):
:<code> ''See also Categories:'' aaa, bbb, ccc, ddd, and eee </code>


== Usage ==
;example w/LABEL parameter option
:'''<nowiki>{{</nowiki>'''Cat see also'''|Category Name_1|''<small>optional</small>Category Name_2''|''<small>optional</small>Category Name_nn''|...|''<small>optional</small>Category Name_ 15''}}'''
: <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>


:* Up to 15 parameters are permitted: only the first is mandatory.
;would give (display as):
:* The list is dynamically generated so that a "<code>&amp;</code>" is always placed between the final two entries.
:<code> ''See this list to evaluate whether one would be a better choice of categories: aaa, bbb, ccc, ddd, eee, and fff'' </code>
:* If more than 15 entries are supplied, a message will be displayed pointing out the run-over problem.
;Example:
 
<pre>{{cat see also|SISTER=W:|Luge|Bobsleigh|Skeleton}}</pre>
; NB : no newlines are permitted else the article links will be broken.{{i2}}
{{cat see also|SISTER=W:|Luge|Bobsleigh|Skeleton}}
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 {{Cat|Winter sports}} page.


== See also ==
{{#ifexist:Template:Templates linking contents|
{{tlw|catlst}} -- a larger adaptation with some optional display differences, and the same interwiki capability. Unlike cat see also, it does not force a newline and indentation, which can be duplicated in it's wider bag of tricks. This version is smaller and should be used
{{Templates linking contents}}
{{tlw|Details}} {{I}}-- e.g. - {{[[{{ns:Template}}:Details|Details]]{{#if:A|<tt>&#124;</tt>A}}{{#if:B|<tt>&#124;</tt>B}}{{#if:C|<tt>&#124;</tt>C}}{{#if:{{{5|}}}|<tt>&#124;</tt><i>etc.</i>}}}} --> {{Details|A|B|C}}
}}
{{tlw|Further}} {{I}}-- e.g. - {{[[{{ns:Template}}:Further|Further]]{{#if:A|<tt>&#124;</tt>A}}{{#if:B|<tt>&#124;</tt>B}}{{#if:C|<tt>&#124;</tt>C}}{{#if:{{{5|}}}|<tt>&#124;</tt><i>etc.</i>}}}} --> {{further|A|B|C}}
{{#ifexist:Category:Internal link templates|  
{{tlw|Main}}, to use when you have more than one main article. {{I}}- e.g. - {{[[{{ns:Template}}:main|main]]{{#if:A|<tt>&#124;</tt>A}}{{#if:B|<tt>&#124;</tt>B}}{{#if:C|<tt>&#124;</tt>C}}{{#if:{{{5|}}}|<tt>&#124;</tt><i>etc.</i>}}}} --> {{main|A|B|C}}
[[Category:Internal link templates|{{PAGENAME}}]]  
{{tlw|MainBold}}, to use when you have more than one main article, primarily for use in category text, not Wikipedia {{NAMCON}} compliant inside articles. {{I}}-- e.g. - {{Tlx|mainBold|A|B|C}} --> {{mainBold|A|B|C}}
}}
{{tlw|Further}}){{I}}-- e.g. - {{[[{{ns:Template}}:See|See]]{{#if:A|<tt>&#124;</tt>A}}{{#if:B|<tt>&#124;</tt>B}}{{#if:C|<tt>&#124;</tt>C}}{{#if:{{{5|}}}|<tt>&#124;</tt><i>etc.</i>}}}} -->
{{#ifexist:Category:Category navigational templates|
:''Further information: [[A]]{{#if: C|,&nbsp;}}{{#if: {{{2C|}}}|and}}{{#if: B|&nbsp;[[B]]}}{{#if: C|,&nbsp;}}{{#if: {{{3{{{4|}}}|}}}|and}}{{#if: C|&nbsp;[[C]]}}{{#if: {{{4|}}}|,&nbsp;}}{{#if: {{{4{{{5|}}}|}}}|and}}{{#if: {{{4|}}}|&nbsp;[[{{{4|}}}]]}}{{#if: {{{5|}}}|,&nbsp;}}{{#if: {{{5{{{6|}}}|}}}|and}}{{#if: {{{5|}}}|&nbsp;[[{{{5|}}}]]}}{{#if: {{{6|}}}|,&nbsp;}}{{#if: {{{6{{{7|}}}|}}}|and}}{{#if: {{{6|}}}|&nbsp;[[{{{6|}}}]]}}{{#if: {{{7|}}}|,&nbsp;}}{{#if: {{{7{{{8|}}}|}}}|and}}{{#if: {{{7|}}}|&nbsp;[[{{{7|}}}]]}}{{#if: {{{8|}}}|,&nbsp;}}{{#if: {{{8{{{9|}}}|}}}|and}}{{#if: {{{8|}}}|&nbsp;[[{{{8|}}}]]}}{{#if: {{{9|}}}|,&nbsp;and&nbsp;[[{{{9|}}}]]}}''
[[Category:Category navigational templates|{{PAGENAME}}]]
{{tlw|See also}} &mdash; Article version of this template (Has technical problem with specifying ':Category' spelt out, and this is far more convenient, as you need never spell it out at all!<!---
}}
----
{{#ifeq:{{Silence}}|NO|
---->[[Category:Internal link templates|{{PAGENAME}}]]<!---
{{#ifexist:Category:Templates using ParserFunctions|  
----
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]  
---->{{#ifeq:{{SITENAME}}|Wikipedia}}|<!---
}}
----
|}}
---->  {{#ifexist:[[Category:Navigational templates]]| [[Category:Navigational templates|{{PAGENAME}}]]}}<!---
{{#ifexist:Category:Internal link templates|
----
[[Category:Internal link templates|{{PAGENAME}}]]
---->  {{#ifexist:[[Category:Section templates]] | [[Category:Section templates|{{PAGENAME}}]]}}
}}
}}<!---
{{#ifexist:Category:Navigational templates|  
----
[[Category:Navigational templates|{{PAGENAME}}]]
---->  {{#ifexist:[[Category:List templates]] | [[Category:List templates|{{PAGENAME}}]]}}
}}
}}<!---
{{#ifexist:Category:Section templates |
----
[[Category:Section templates|{{PAGENAME}}]]
---->{{#ifexist:[[Category:Templates using ParserFunctions]] | [[Category:Templates using ParserFunctions|{{PAGENAME}}]] }}<!---
}}
----
{{#ifexist:Category:List templates|  
---->[[Category:Category namespace templates|{{PAGENAME}}]]<!---
[[Category:List templates|{{PAGENAME}}]]
----
}}
---->
{{#ifexist:Category:Category namespace templates|
[[Category:Category namespace templates|{{PAGENAME}}]]
}}
[[Category:See also templates]]
[[Category:See also templates]]


[[en:Template:Cat see also]]
[[zh:Template:参看]]
[[zh:Template:参看]]
</noinclude>
</noinclude>

Revision as of 05:53, 17 August 2008

Template:Interwikitmp-grp
(Note: The template displays an error message if given no inputs, so is hidden above)

Template:Usage div Version-at-a-glance:

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

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

Parameters are category page names, Etc., up to 40 parameters .

  1. {{Cat see also|A}} → Template:Cat see also

  2. {{Cat see also|A|B}} → Template:Cat see also

  3. {{Cat see also|A|B|C}} → Template:Cat see also
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
Example
{{cat see also|SISTER=W:|Luge|Bobsleigh|Skeleton}}

Template:Cat see also 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. Template:I2So 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.

en:Template:Cat see also zh:Template:参看