Difference between revisions of "Template:Category see also"

From blackwiki
Jump to navigation Jump to search
imported>RussBot
m (Robot: moving pages out of redirected category)
imported>BrownHairedGirl
 
(80 intermediate revisions by 50 users not shown)
Line 1: Line 1:
<includeonly><div class="boilerplate catseealso">''See also {{#if:{{{1|}}}|{{#if:{{{2|}}}|Categories: {{I5}}[[{{{SISTER|}}}:Category:{{{1}}}|{{{1}}}]] |Categories: [[{{{SISTER|}}}:Category: {{{1}}}|{{{1}}}]]}} |Editing error: '''No argument given''''' in template ''{{tl|cat see also}}
+
<includeonly>{{#invoke:Category see also|main}}{{Category see also/Category pair check|{{{1|}}}}}</includeonly><noinclude>
}}{{#if:{{{2|}}}|{{#if:{{{3|}}}|, |&nbsp;and }} [[{{{SISTER|}}}:Category: {{{2}}}|{{{ 2 }}}]]
+
{{Documentation}}
}}{{#if:{{{3|}}}|{{#if:{{{4|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category: {{{3}}}|{{{ 3 }}}]]
 
}}{{#if:{{{4|}}}|{{#if:{{{5|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category: {{{4}}}|{{{ 4 }}}]]
 
}}{{#if:{{{5|}}}|{{#if:{{{6|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category: {{{5}}}|{{{ 5 }}}]]
 
}}{{#if:{{{6|}}}|{{#if:{{{7|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category: {{{6}}}|{{{ 6 }}}]]
 
}}{{#if:{{{7|}}}|{{#if:{{{8|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category: {{{7}}}|{{{ 7 }}}]]
 
}}{{#if:{{{8|}}}|{{#if:{{{9|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category: {{{8}}}|{{{ 8 }}}]]
 
}}{{#if:{{{9|}}}|{{#if:{{{10|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category: {{{9}}}|{{{ 9 }}}]]
 
}}{{#if:{{{10|}}}|{{#if:{{{11|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category: {{{10}}}|{{{ 10 }}}]]
 
}}{{#if:{{{11|}}}|{{#if:{{{12|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category: {{{11}}}|{{{ 11 }}}]]
 
}}{{#if:{{{12|}}}|{{#if:{{{13|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category: {{{12}}}|{{{ 12 }}}]]
 
}}{{#if:{{{13|}}}|{{#if:{{{14|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category: {{{13}}}|{{{ 13 }}}]]
 
}}{{#if:{{{14|}}}|{{#if:{{{15|}}}|, |,&nbsp;and }} [[{{{SISTER|}}}:Category: {{{14}}}|{{{ 14 }}}]]
 
}}{{#if:{{{15|}}}|,&nbsp;and [[{{{SISTER|}}}:Category: {{{15}}}|{{{ X }}}]]
 
}}{{#if:{{{16|}}}|…'''Error: [[Template:Cat see also]] maximum 15 articles allowed'''
 
}}''</div><br clear=all></includeonly><noinclude>{{-}}Note:Hidden content when viewing directly--template generates an error message when given no parameters.
 
{{TOCright}}
 
==Use example==
 
{{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 such as:
 
 
 
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.
 
 
 
=Purpose=
 
&#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.
 
#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}}
 
 
 
== Usage ==
 
:'''<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''}}'''
 
 
 
:* Up to 15 parameters are permitted: only the first is mandatory.
 
:* The list is dynamically generated so that a "<code>&amp;</code>" is always placed between the final two entries.
 
:* If more than 15 entries are supplied, a message will be displayed pointing out the run-over problem.
 
 
 
; NB : no newlines are permitted else the article links will be broken.{{i2}}
 
 
 
== See also ==
 
{{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
 
{{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}}
 
{{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}}
 
{{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>}}}} -->
 
:''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|}}}]]}}''
 
{{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!<!---
 
----
 
---->[[Category:Internal link templates|{{PAGENAME}}]]<!---
 
----
 
---->{{#ifeq:{{SITENAME}}|Wikipedia}}|<!---
 
----
 
---->  {{#ifexist:[[Category:Navigational templates]]| [[Category:Navigational templates|{{PAGENAME}}]]}}<!---
 
----
 
---->  {{#ifexist:[[Category:Section templates]] | [[Category:Section templates|{{PAGENAME}}]]}}
 
}}<!---
 
----
 
---->  {{#ifexist:[[Category:List templates]] | [[Category:List templates|{{PAGENAME}}]]}}
 
}}<!---
 
----
 
---->{{#ifexist:[[Category:Templates using ParserFunctions]] | [[Category:Templates using ParserFunctions|{{PAGENAME}}]] }}<!---
 
----
 
---->[[Category:Category namespace templates|{{PAGENAME}}]]<!---
 
----
 
---->
 
[[Category:See also templates]]
 
 
 
[[zh:Template:参看]]
 
[[ja:Template:Cat see also]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 17:31, 28 April 2018

Template documentation[view] [edit] [history] [purge]

Usage

Usual syntax

{{Category see also|List of one or more category names}}

Parameters

  • Most are pipe character-separated category page names; up to 40 pages can be included.
  • LABEL=Some other phrase... → replaces the default message prefix: "See also".
    The phrase is normally italicized. When defining LABEL any wikimarkup or HTML text will be accepted. The template will add a colon at the end of the phrase.
  • |project=: Any valid interwiki or interproject prefix from de:, fr:, es: access to other language Wikipedias to cross-sister wikis using sister projects abbreviations such as B:, Q:, S:, V: etc. Where applicable, both interlingual and cross-project links can be rendered as follows:
    • |project=es for linking categories on es.wikipedia.org, the Spanish-language Wikipedia, or
    • |project=de:V for linking categories on de.wikiversity.org, the German-language Wikiversity, or
    • |project=fr:B for linking categories on fr.wikibooks.org, the French-language Wikibooks.
  • The template creates a block-level element in the HTML, effectively forming its own paragraph; it may not be used inline in text.

Simple examples

  1. {{Category see also|A}}
  2. {{Category see also|A|B}}
  3. {{Category see also|A|B|C}}

Example with default message

{{Category see also|aaa|bbb|ccc|ddd|eee}}

Example with LABEL parameter option

{{Category see also|LABEL=See this list to evaluate whether one of them would be a better choice|aaa|bbb|ccc|ddd|eee}}

Practical example

Bobsledding and luge are Olympic sports properly subcategorized under "sledding", so should not appear (strictly speaking categorically) as sub-categories of "winter sports". However, a lay reader using categories might expect to find them there. So to show their presence and guide proper selections for editors choosing categories, one can include the sub-sub-categories as a see also annotation on the Category:Winter sports page.

{{Category see also|Luge|Bobsleigh}}

TemplateData

TemplateData documentation used by VisualEditor and other tools
See the monthly parameter usage report for this template.

TemplateData for Category see also

No description.

Template parameters

ParameterDescriptionTypeStatus
11

no description

Unknownrequired
22

no description

Unknownoptional
33

no description

Unknownoptional
44

no description

Unknownoptional
55

no description

Unknownoptional
66

no description

Unknownoptional
77

no description

Unknownoptional
88

no description

Unknownoptional
99

no description

Unknownoptional
1010

no description

Unknownoptional
1111

no description

Unknownoptional
1212

no description

Unknownoptional
1313

no description

Unknownoptional
1414

no description

Unknownoptional
1515

no description

Unknownoptional
1616

no description

Unknownoptional
1717

no description

Unknownoptional
1818

no description

Unknownoptional
1919

no description

Unknownoptional
2020

no description

Unknownoptional
2121

no description

Unknownoptional
2222

no description

Unknownoptional
2323

no description

Unknownoptional
2424

no description

Unknownoptional
2525

no description

Unknownoptional
2626

no description

Unknownoptional
2727

no description

Unknownoptional
2828

no description

Unknownoptional
2929

no description

Unknownoptional
3030

no description

Unknownoptional
3131

no description

Unknownoptional
3232

no description

Unknownoptional
3333

no description

Unknownoptional
3434

no description

Unknownoptional
3535

no description

Unknownoptional
3636

no description

Unknownoptional
3737

no description

Unknownoptional
3838

no description

Unknownoptional
3939

no description

Unknownoptional
4040

no description

Unknownoptional
4141

no description

Unknownoptional
LABELLABEL

no description

Unknownoptional
Projectproject

no description

Default
en
Example
es, de:V, fr:B
Stringoptional

See also