Difference between revisions of "Template:See also"

From RobotX
Jump to navigation Jump to search
m (Text replacement - "<tvar|1>" to "")
m (Text replacement - "</>" to "")
Line 2: Line 2:
 
<onlyinclude>{{#switch:<translate></translate>
 
<onlyinclude>{{#switch:<translate></translate>
 
| =
 
| =
{{rellink|extraclasses=mw-tpl-seealso|{{{altphrase|<translate><!--T:1--> See also</translate>}}}: {{#if:{{{1<includeonly>|</includeonly>}}} |<!--then:-->[[:{{{1}}}{{#if:{{{label 1|{{{l1|}}}}}}|{{!}}{{{label 1|{{{l1}}}}}}}}]] |<!--else:-->'''<translate><!--T:2--> Error: [[Special:MyLanguage/Template:See also</>|Template must be given at least one article name]]</translate>'''
+
{{rellink|extraclasses=mw-tpl-seealso|{{{altphrase|<translate><!--T:1--> See also</translate>}}}: {{#if:{{{1<includeonly>|</includeonly>}}} |<!--then:-->[[:{{{1}}}{{#if:{{{label 1|{{{l1|}}}}}}|{{!}}{{{label 1|{{{l1}}}}}}}}]] |<!--else:-->'''<translate><!--T:2--> Error: [[Special:MyLanguage/Template:See also|Template must be given at least one article name]]</translate>'''
 
}}{{#if:{{{2|}}}|{{#if:{{{3|}}}|{{int|comma-separator}}|<nowiki/>{{int|and}}{{int|word-separator}}}} [[:{{{2}}}{{#if:{{{label 2|{{{l2|}}}}}}|{{!}}{{{label 2|{{{l2}}}}}}}}]]
 
}}{{#if:{{{2|}}}|{{#if:{{{3|}}}|{{int|comma-separator}}|<nowiki/>{{int|and}}{{int|word-separator}}}} [[:{{{2}}}{{#if:{{{label 2|{{{l2|}}}}}}|{{!}}{{{label 2|{{{l2}}}}}}}}]]
 
}}{{#if:{{{3|}}}|{{#if:{{{4|}}}|{{int|comma-separator}}|<nowiki/>{{int|and}}{{int|word-separator}}}} [[:{{{3}}}{{#if:{{{label 3|{{{l3|}}}}}}|{{!}}{{{label 3|{{{l3}}}}}}}}]]
 
}}{{#if:{{{3|}}}|{{#if:{{{4|}}}|{{int|comma-separator}}|<nowiki/>{{int|and}}{{int|word-separator}}}} [[:{{{3}}}{{#if:{{{label 3|{{{l3|}}}}}}|{{!}}{{{label 3|{{{l3}}}}}}}}]]
Line 17: Line 17:
 
}}{{#if:{{{14|}}}|{{#if:{{{15|}}}|{{int|comma-separator}}|<nowiki/>{{int|and}}{{int|word-separator}}}} [[:{{{14}}}{{#if:{{{label 14|{{{l14|}}}}}}|{{!}}{{{label 14|{{{l14}}}}}}}}]]
 
}}{{#if:{{{14|}}}|{{#if:{{{15|}}}|{{int|comma-separator}}|<nowiki/>{{int|and}}{{int|word-separator}}}} [[:{{{14}}}{{#if:{{{label 14|{{{l14|}}}}}}|{{!}}{{{label 14|{{{l14}}}}}}}}]]
 
}}{{#if:{{{15|}}}|{{int|and}}{{int|word-separator}}[[:{{{15}}}{{#if:{{{label 15|{{{l15|}}} }}}|{{!}}{{{label 15|{{{l15|}}} }}} }}]]
 
}}{{#if:{{{15|}}}|{{int|and}}{{int|word-separator}}[[:{{{15}}}{{#if:{{{label 15|{{{l15|}}} }}}|{{!}}{{{label 15|{{{l15|}}} }}} }}]]
}}{{#if:{{{16|}}}| &mdash; '''<br/><translate><!--T:3--> Error: [[Special:MyLanguage/Template:See also</>|Too many links specified (maximum is 15)]]</translate>'''
+
}}{{#if:{{{16|}}}| &mdash; '''<br/><translate><!--T:3--> Error: [[Special:MyLanguage/Template:See also|Too many links specified (maximum is 15)]]</translate>'''
 
}}}}
 
}}}}
 
| #default=
 
| #default=
Line 28: Line 28:
  
 
<!--T:5-->
 
<!--T:5-->
{{tlx|See also}}</> is used to create [[w:Wikipedia:Hatnote|hatnotes]] to point to a small number of other, related, titles at the '''top''' of [[w:Help:Section|article sections]] according to [[w:Wikipedia:Layout|Wikipedia:Layout]].</translate>
+
{{tlx|See also}} is used to create [[w:Wikipedia:Hatnote|hatnotes]] to point to a small number of other, related, titles at the '''top''' of [[w:Help:Section|article sections]] according to [[w:Wikipedia:Layout|Wikipedia:Layout]].</translate>
 
<translate>
 
<translate>
 
<!--T:6-->
 
<!--T:6-->

Revision as of 19:43, 21 December 2019

Template documentation

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 bottom 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

Example

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.

Display a note about a related page.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Page name1

Full name of related page

Pagerequired