Difference between revisions of "Template:See also/doc"

From blackwiki
Jump to navigation Jump to search
test>Götz
(+cat See also templates; rm duplicate interwikis)
test>Nnemo
(Notably — Accessibility. No citation here.)
Line 1: Line 1:
 
{{documentation subpage}}
 
{{documentation subpage}}
  
==Usage==
+
== Usage ==
{{tlx|See also}} is used to create [[WP:Hatnotes|hatnotes]] to point to a small number of other, related, titles at the '''top''' of [[Help:Section|article sections]] according to [[Wikipedia:Layout]]. It is not for use in the "See also" ''section'' at the bottom of an article.
 
  
 +
{{tlx|See also}} is used to create [[WP:Hatnotes|hatnotes]] to point to a small number of other, related, titles at the '''top''' of [[Help:Section|article sections]] according to [[Wikipedia:Layout]]. It is not for use in the "See also" ''section'' at the end of an article.
  
 
  {{Tlx|See also|Article 1|...|''Article 15''}}
 
  {{Tlx|See also|Article 1|...|''Article 15''}}
  
* One to fifteen articles can be listed.
+
* One to fifteen articles can be listed.  
* The word "and" is always placed between the final two entries.
+
* The word "and" is always placed between the final two entries.  
* If more than 15 entries are supplied, a message will be displayed pointing out the problem.<!-- this is relatively ungraceful failure -->
+
* If more than 15 entries are supplied, a message will be displayed pointing out the problem. <!-- This is relatively ungraceful failure -->
* You can use parameters label 1 to label 15 to specify alternative labels for the links.
+
* You can use parameters label 1 to label 15 to specify alternative labels for the links. Adding newline characters will break article links. <!-- Presumably because of the leading ":" -->
:adding newline characters will break article links <1-- presumably because of the leading ":" -->
+
 
 +
== Examples ==
  
==Example==
 
 
{| class="wikitable" cellspacing="0" cellpadding="0"
 
{| class="wikitable" cellspacing="0" cellpadding="0"
 
! Code!! Result
 
! Code!! Result
Line 27: Line 27:
 
| valign="top"|{{Tlx|See also|Article|Article 2|4=label 2=Alternative title for Article 2}}||{{See also|Article|Article 2|label 2=Alternative title for Article 2}}
 
| valign="top"|{{Tlx|See also|Article|Article 2|4=label 2=Alternative title for Article 2}}||{{See also|Article|Article 2|label 2=Alternative title for Article 2}}
 
|}
 
|}
''And so on up to 15 parameters.''
+
''And so on up to 15 parameters.''
 +
 
 +
== See also: Link to section ==
  
==See also: Link to section==
 
 
It is possible to direct this template to link a particular section within another article.  
 
It is possible to direct this template to link a particular section within another article.  
  
Line 38: Line 39:
 
{{Section_template_list}}
 
{{Section_template_list}}
  
*{{tl|Other uses}} List other uses for a word or term.
+
* {{tl|Other uses}} List other uses for a word or term.
*More hatnotes: [[Template:Otheruses templates]]
+
* More hatnotes: [[Template:Otheruses templates]].
 +
 
 
{{DEFAULTSORT:{{PAGENAME}}}}
 
{{DEFAULTSORT:{{PAGENAME}}}}
  
 
<includeonly>
 
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
+
 
 +
<!-- ADD CATEGORIES AFTER THIS LINE -->
 +
 
 
[[Category:Wikipedia page-section templates]]
 
[[Category:Wikipedia page-section templates]]
 
[[Category:List templates]]
 
[[Category:List templates]]
Line 50: Line 54:
 
[[Category:See also templates]]
 
[[Category:See also templates]]
  
<!-- ADD INTERWIKIS BELOW THIS LINE -->
+
<!-- ADD INTERWIKIS LINKS AFTER THIS LINE -->
 
[[ar:قالب:طالع أيضا]]
 
[[ar:قالب:طالع أيضا]]
 
[[ast:Plantía:VT]]
 
[[ast:Plantía:VT]]
Line 81: Line 85:
 
[[zh-yue:Template:See also]]
 
[[zh-yue:Template:See also]]
 
[[zh:Template:See also]]
 
[[zh:Template:See also]]
 +
 
</includeonly>
 
</includeonly>

Revision as of 13:43, 27 December 2012

Usage

{{See also}} is used to create hatnotes to point to a small number of other, related, titles at the top of article sections according to Wikipedia:Layout. It is not for use in the "See also" section at the end of an article.

{{See also|Article 1|...|Article 15}}
  • One to fifteen articles can be listed.
  • The word "and" is always placed between the final two entries.
  • If more than 15 entries are supplied, a message will be displayed pointing out the problem.
  • You can use parameters label 1 to label 15 to specify alternative labels for the links. Adding newline characters will break article links.

Examples

Code Result
{{See also|Article}}
{{See also|Article|label 1=Alternative title for Article}}
{{See also|Article|Article 2}}
{{See also|Article|Article 2|Article 3}}
{{See also|Article|Article 2|label 2=Alternative title for Article 2}}

And so on up to 15 parameters.

See also: Link to section

It is possible to direct this template to link a particular section within another article.

{{See also|Michael Tritter#storyline|l1=Storyline}} gives

Note that the parameter name is a lower case 'L' followed by the number '1', not the number eleven. Template:Section template list