Template:Category see also: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Fabartus
+{{Wikitionarytmp}} + {{Wikisourcetmp}} + {{Metatmp}} and export to same. Add some cats too.
meta>Fabartus
+<B>+<br clear=all> +Stub in text for fancy change using 'space=' perameter optional interwiki perameter. (Specification text)
Line 1: Line 1:
<div class="boilerplate catseealso">
<div class="boilerplate catseealso">
: ''See also {{#if:{{{1|}}}|{{#if:{{{2|}}}|Categories: {{indent|5}}[[:Category:{{{1}}}|{{{1}}}]] |Categories: [[:Category: {{{1}}}|{{{1}}}]]}} |Editing error: '''No arguement given''''' in template ''{{tl|cat see also}}  
:'''''See also {{#if:{{{1|}}}|{{#if:{{{2|}}}|Categories: {{indent|5}}[[:Category:{{{1}}}|{{{1}}}]] |Categories: [[:Category: {{{1}}}|{{{1}}}]]}} |Editing error: '''No arguement given''''' in template ''{{tl|cat see also}}  
}}{{#if:{{{2|}}}|{{#if:{{{3|}}}|, |&nbsp;and }} [[:Category: {{{2}}}|{{{ 2 }}}]]
}}{{#if:{{{2|}}}|{{#if:{{{3|}}}|, |&nbsp;and }} [[:Category: {{{2}}}|{{{ 2 }}}]]
}}{{#if:{{{3|}}}|{{#if:{{{4|}}}|, |,&nbsp;and }} [[:Category: {{{3}}}|{{{ 3 }}}]]
}}{{#if:{{{3|}}}|{{#if:{{{4|}}}|, |,&nbsp;and }} [[:Category: {{{3}}}|{{{ 3 }}}]]
Line 16: Line 16:
}}{{#if:{{{15|}}}|,&nbsp;and [[:Category: {{{15}}}|{{{ X }}}]]
}}{{#if:{{{15|}}}|,&nbsp;and [[: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><noinclude>
}}'''''</div>
<br clear=all><noinclude>
{{-}}
{{-}}
----
----
Line 31: Line 32:
=Purpose=
=Purpose=


&#123;&#123;[[Template:Cat see also|Cat see also]]&#125;&#125; is used for small sets of '''see also''' information ''at the end of text <u>on category pages</u>.
&#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 perameters may be preceded by any 'correct' optional {{w2|Sister projects}} ''''space=' perameter''' 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 'space=' perameter is given, an automatic '''':''''will be added between that and the defined value of 'space='.
#Thus the [[Wd|concatation]] with a 'Space=XYZ' results in creating an applied prefix ''''XYZ: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 fifteen category names.


== Usage ==
== Usage ==
Line 41: Line 48:


; NB : no newlines are permitted else the article links will be broken.
; NB : no newlines are permitted else the article links will be broken.
 
{{lts|indent}}
{{lts|i}}
== See also ==
== See also ==
 
{{lts|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}}
* {{tl|Main}}, to use when you have more than one main article.
{{lts|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}}
* {{tl|Details}}
{{lts|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}}
* {{tl|Further}}
{{lts|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}}
* <s>{{tl|See}}</s> (deprecated - use {{tl|Further}})
<s>{{tl|See}}</s> (deprecated - use {{tl|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>}}}} -->
* {{tl|See also}} &msdash; Article version of this template (Has technical problem with specifying ':Category' spelt out, and this is far more convienient, as you need never spell it out at all!
:''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|}}}]]}}''
{{lts|See also}} &mdash; Article version of this template (Has technical problem with specifying ':Category' spelt out, and this is far more convienient, as you need never spell it out at all!


[[Category:Miscellaneous templates]]
[[Category:Miscellaneous templates]]

Revision as of 19:08, 27 August 2006

See also Editing error: No arguement given in template {{cat see also}}



Template:Commonstmp Template:Wiktionarytmp Template:Metatmp
Template:Wikisourcetmp

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.

  1. The perameters may be preceded by any 'correct' optional Template:W2 'space=' perameter which is first applied to all the default prefixes by template logic.
    1. By default, that creates an automatic prefix that is solely the string 'Category'
    2. and when the 'space=' perameter is given, an automatic ':'will be added between that and the defined value of 'space='.
  2. Thus the concatation with a 'Space=XYZ' results in creating an applied prefix 'XYZ:Category:' which is prefixed to all terms in the list.
  3. Hence the template has a very powerful 'Interwiki scope' thereby allowing one to list Categories on other sister projects.
  4. The template will take up to fifteen category names.

Usage

Template:Indent{{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:Indent(edit talk links history) Template:I(edit talk links history)

See also

Template:Details(edit talk links history) Template:I-- e.g. - {{Details|A|B|C}} -->

Template:Further(edit talk links history) Template:I-- e.g. - {{Further|A|B|C}} -->

Template:Main(edit talk links history), to use when you have more than one main article. Template:I- e.g. - {{main|A|B|C}} -->

Template:MainBold(edit talk links history), to use when you have more than one main article, primarily for use in category text, not Wikipedia NAMCON compliant inside articles. Template:I-- e.g. - {{mainBold|A|B|C}} --> Template:MainBold {{See}} (deprecated - use {{Further}})Template:I-- e.g. - {{See|A|B|C}} -->

Further information: A,  B,  C

Template:See also(edit talk links history) — Article version of this template (Has technical problem with specifying ':Category' spelt out, and this is far more convienient, as you need never spell it out at all! zh:Template:参看