Difference between revisions of "Template:Category see also"
imported>Ral315 (Fix.) |
imported>Fabartus (iterwiki-ize cats) |
||
| Line 1: | Line 1: | ||
| − | <div class="boilerplate catseealso">''See also {{#if:{{{1|}}}|{{#if:{{{2|}}}|Categories: {{I|5}}[[:Category:{{{1}}}|{{{1}}}]] |Categories: [[:Category: {{{1}}}|{{{1}}}]]}} |Editing error: '''No argument given''''' in template ''{{tl|cat see also}} | + | <div class="boilerplate catseealso">''See also {{#if:{{{1|}}}|{{#if:{{{2|}}}|Categories: {{I|5}}[[{{{SISTER}}}:Category:{{{1}}}|{{{1}}}]] |Categories: [[{{{SISTER}}}:Category: {{{1}}}|{{{1}}}]]}} |Editing error: '''No argument given''''' in template ''{{tl|cat see also}} |
| − | }}{{#if:{{{2|}}}|{{#if:{{{3|}}}|, | and }} [[:Category: {{{2}}}|{{{ 2 }}}]] | + | }}{{#if:{{{2|}}}|{{#if:{{{3|}}}|, | and }} [[{{{SISTER}}}:Category: {{{2}}}|{{{ 2 }}}]] |
| − | }}{{#if:{{{3|}}}|{{#if:{{{4|}}}|, |, and }} [[:Category: {{{3}}}|{{{ 3 }}}]] | + | }}{{#if:{{{3|}}}|{{#if:{{{4|}}}|, |, and }} [[{{{SISTER}}}:Category: {{{3}}}|{{{ 3 }}}]] |
| − | }}{{#if:{{{4|}}}|{{#if:{{{5|}}}|, |, and }} [[:Category: {{{4}}}|{{{ 4 }}}]] | + | }}{{#if:{{{4|}}}|{{#if:{{{5|}}}|, |, and }} [[{{{SISTER}}}:Category: {{{4}}}|{{{ 4 }}}]] |
| − | }}{{#if:{{{5|}}}|{{#if:{{{6|}}}|, |, and }} [[:Category: {{{5}}}|{{{ 5 }}}]] | + | }}{{#if:{{{5|}}}|{{#if:{{{6|}}}|, |, and }} [[{{{SISTER}}}:Category: {{{5}}}|{{{ 5 }}}]] |
| − | }}{{#if:{{{6|}}}|{{#if:{{{7|}}}|, |, and }} [[:Category: {{{6}}}|{{{ 6 }}}]] | + | }}{{#if:{{{6|}}}|{{#if:{{{7|}}}|, |, and }} [[{{{SISTER}}}:Category: {{{6}}}|{{{ 6 }}}]] |
| − | }}{{#if:{{{7|}}}|{{#if:{{{8|}}}|, |, and }} [[:Category: {{{7}}}|{{{ 7 }}}]] | + | }}{{#if:{{{7|}}}|{{#if:{{{8|}}}|, |, and }} [[{{{SISTER}}}:Category: {{{7}}}|{{{ 7 }}}]] |
| − | }}{{#if:{{{8|}}}|{{#if:{{{9|}}}|, |, and }} [[:Category: {{{8}}}|{{{ 8 }}}]] | + | }}{{#if:{{{8|}}}|{{#if:{{{9|}}}|, |, and }} [[{{{SISTER}}}:Category: {{{8}}}|{{{ 8 }}}]] |
| − | }}{{#if:{{{9|}}}|{{#if:{{{10|}}}|, |, and }} [[:Category: {{{9}}}|{{{ 9 }}}]] | + | }}{{#if:{{{9|}}}|{{#if:{{{10|}}}|, |, and }} [[{{{SISTER}}}:Category: {{{9}}}|{{{ 9 }}}]] |
| − | }}{{#if:{{{10|}}}|{{#if:{{{11|}}}|, |, and }} [[:Category: {{{10}}}|{{{ 10 }}}]] | + | }}{{#if:{{{10|}}}|{{#if:{{{11|}}}|, |, and }} [[{{{SISTER}}}:Category: {{{10}}}|{{{ 10 }}}]] |
| − | }}{{#if:{{{11|}}}|{{#if:{{{12|}}}|, |, and }} [[:Category: {{{11}}}|{{{ 11 }}}]] | + | }}{{#if:{{{11|}}}|{{#if:{{{12|}}}|, |, and }} [[{{{SISTER}}}:Category: {{{11}}}|{{{ 11 }}}]] |
| − | }}{{#if:{{{12|}}}|{{#if:{{{13|}}}|, |, and }} [[:Category: {{{12}}}|{{{ 12 }}}]] | + | }}{{#if:{{{12|}}}|{{#if:{{{13|}}}|, |, and }} [[{{{SISTER}}}:Category: {{{12}}}|{{{ 12 }}}]] |
| − | }}{{#if:{{{13|}}}|{{#if:{{{14|}}}|, |, and }} [[:Category: {{{13}}}|{{{ 13 }}}]] | + | }}{{#if:{{{13|}}}|{{#if:{{{14|}}}|, |, and }} [[{{{SISTER}}}:Category: {{{13}}}|{{{ 13 }}}]] |
| − | }}{{#if:{{{14|}}}|{{#if:{{{15|}}}|, |, and }} [[:Category: {{{14}}}|{{{ 14 }}}]] | + | }}{{#if:{{{14|}}}|{{#if:{{{15|}}}|, |, and }} [[{{{SISTER}}}:Category: {{{14}}}|{{{ 14 }}}]] |
| − | }}{{#if:{{{15|}}}|, and [[:Category: {{{15}}}|{{{ X }}}]] | + | }}{{#if:{{{15|}}}|, and [[{{{SISTER}}}:Category: {{{15}}}|{{{ X }}}]] |
}}{{#if:{{{16|}}}|…'''Error: [[Template:Cat see also]] maximum 15 articles allowed''' | }}{{#if:{{{16|}}}|…'''Error: [[Template:Cat see also]] maximum 15 articles allowed''' | ||
}}''</div><br clear=all><noinclude>{{-}} | }}''</div><br clear=all><noinclude>{{-}} | ||
| + | |||
{{TOCright}} | {{TOCright}} | ||
==Use example== | ==Use 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 {{Cat|Winter sports}} page such as: | *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: | ||
| − | {{cat see also|Luge|Bobsleigh|Skeleton}} 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. | + | {{cat see also|SISTER=W:|Luge|Bobsleigh|Skeleton}} 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= | =Purpose= | ||
{{[[Template:Cat see also|Cat see also]]}} 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. | {{[[Template:Cat see also|Cat see also]]}} 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]] '''' | + | #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'''' | ##By default, that creates an automatic prefix that is solely the string ''''Category'''' | ||
| − | ##and when the ' | + | ##and when the 'SISTER=' perameter is given, an automatic '''':''''will be added between that and the defined value of 'SISTER='. |
| − | #Thus the [[Wd|concatation]] with a ' | + | #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.''' | #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. | #The template will take up to forty category names. | ||
| − | {{Interwikitmp- | + | {{Interwikitmp-grp|V=6|cat=typing-aid templates}} |
== Usage == | == Usage == | ||
| − | + | :'''<nowiki>{{</nowiki>'''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. | :* Up to 15 parameters are permitted: only the first is mandatory. | ||
| Line 40: | Line 41: | ||
:* If more than 15 entries are supplied, a message will be displayed pointing out the run-over problem. | :* 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. | + | ; NB : no newlines are permitted else the article links will be broken.{{i2}} |
| − | {{ | ||
| − | |||
== See also == | == 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>|</tt>A}}{{#if:B|<tt>|</tt>B}}{{#if:C|<tt>|</tt>C}}{{#if:{{{5|}}}|<tt>|</tt><i>etc.</i>}}}} --> {{Details|A|B|C}} |
| − | {{ | + | {{tlw|Further}} {{I}}-- e.g. - {{[[{{ns:Template}}:Further|Further]]{{#if:A|<tt>|</tt>A}}{{#if:B|<tt>|</tt>B}}{{#if:C|<tt>|</tt>C}}{{#if:{{{5|}}}|<tt>|</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>|</tt>A}}{{#if:B|<tt>|</tt>B}}{{#if:C|<tt>|</tt>C}}{{#if:{{{5|}}}|<tt>|</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>|</tt>A}}{{#if:B|<tt>|</tt>B}}{{#if:C|<tt>|</tt>C}}{{#if:{{{5|}}}|<tt>|</tt><i>etc.</i>}}}} --> | ||
:''Further information: [[A]]{{#if: C|, }}{{#if: {{{2C|}}}|and}}{{#if: B| [[B]]}}{{#if: C|, }}{{#if: {{{3{{{4|}}}|}}}|and}}{{#if: C| [[C]]}}{{#if: {{{4|}}}|, }}{{#if: {{{4{{{5|}}}|}}}|and}}{{#if: {{{4|}}}| [[{{{4|}}}]]}}{{#if: {{{5|}}}|, }}{{#if: {{{5{{{6|}}}|}}}|and}}{{#if: {{{5|}}}| [[{{{5|}}}]]}}{{#if: {{{6|}}}|, }}{{#if: {{{6{{{7|}}}|}}}|and}}{{#if: {{{6|}}}| [[{{{6|}}}]]}}{{#if: {{{7|}}}|, }}{{#if: {{{7{{{8|}}}|}}}|and}}{{#if: {{{7|}}}| [[{{{7|}}}]]}}{{#if: {{{8|}}}|, }}{{#if: {{{8{{{9|}}}|}}}|and}}{{#if: {{{8|}}}| [[{{{8|}}}]]}}{{#if: {{{9|}}}|, and [[{{{9|}}}]]}}'' | :''Further information: [[A]]{{#if: C|, }}{{#if: {{{2C|}}}|and}}{{#if: B| [[B]]}}{{#if: C|, }}{{#if: {{{3{{{4|}}}|}}}|and}}{{#if: C| [[C]]}}{{#if: {{{4|}}}|, }}{{#if: {{{4{{{5|}}}|}}}|and}}{{#if: {{{4|}}}| [[{{{4|}}}]]}}{{#if: {{{5|}}}|, }}{{#if: {{{5{{{6|}}}|}}}|and}}{{#if: {{{5|}}}| [[{{{5|}}}]]}}{{#if: {{{6|}}}|, }}{{#if: {{{6{{{7|}}}|}}}|and}}{{#if: {{{6|}}}| [[{{{6|}}}]]}}{{#if: {{{7|}}}|, }}{{#if: {{{7{{{8|}}}|}}}|and}}{{#if: {{{7|}}}| [[{{{7|}}}]]}}{{#if: {{{8|}}}|, }}{{#if: {{{8{{{9|}}}|}}}|and}}{{#if: {{{8|}}}| [[{{{8|}}}]]}}{{#if: {{{9|}}}|, and [[{{{9|}}}]]}}'' | ||
| − | {{ | + | {{tlw|See also}} — 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}}]]<!--- | |
| − | [[Category:Internal link templates|{{PAGENAME}}]] | + | ---- |
| − | [[Category:Navigational templates|{{PAGENAME}}]] | + | ---->{{#ifeq:{{SITENAME}}|Wikipedia}}|<!--- |
| − | [[Category:Section templates|{{PAGENAME}}]] | + | ---- |
| − | [[Category:Templates using ParserFunctions|{{PAGENAME}}]] | + | ----> {{#ifexist:[[Category:Navigational templates]]| [[Category:Navigational templates|{{PAGENAME}}]]}}<!--- |
| − | [[Category:Templates used in categories|{{PAGENAME}}]] | + | ---- |
| + | ----> {{#ifexist:[[Category:Section templates]] | [[Category:Section templates|{{PAGENAME}}]]}} | ||
| + | }}<!--- | ||
| + | ---- | ||
| + | ---->{{#ifexist:[[Category:Templates using ParserFunctions]] | [[Category:Templates using ParserFunctions|{{PAGENAME}}]] }}<!--- | ||
| + | ---- | ||
| + | ---->[[Category:Templates used in categories|{{PAGENAME}}]]<!--- | ||
| + | ---- | ||
| + | ----> | ||
[[zh:Template:参看]] | [[zh:Template:参看]] | ||
</noinclude> | </noinclude> | ||
Revision as of 23:02, 25 February 2007
Contents
Use 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. 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 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
{{Cat see also}} is used for small sets of see also (list of other categories) for information in the end of text on category pages or talk pages, etc.
- The parameters may be preceded by any 'correct' optional 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=' perameter is given, an automatic ':'will be added between that and the defined value of 'SISTER='.
- Thus the 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.
Usage
- {{See also:|Category Name_1|optionalCategory Name_2|optionalCategory Name_nn|...|optionalCategory Name_ 15}}
- Up to 15 parameters are permitted: only the first is mandatory.
- The list is dynamically generated so that a "
&" 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.Template:I2
See also
Template:Tlw -- 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
Template:Tlw
-- e.g. - {{Details|A|B|C}} -->
Template:Tlw
-- e.g. - {{Further|A|B|C}} -->
Template:Tlw, to use when you have more than one main article.
- e.g. - {{main|A|B|C}} -->
Template:Tlw, to use when you have more than one main article, primarily for use in category text, not Wikipedia Template:NAMCON compliant inside articles.
-- e.g. - {{mainBold|A|B|C}} --> Template:MainBold
Template:Tlw)
-- e.g. - {{See|A|B|C}} -->
Template:Tlw — 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!| }} zh:Template:参看