Difference between revisions of "Template:See also"
Jump to navigation
Jump to search
Template documentation
Joelmartin (talk | contribs) m (Text replacement - "</translate>" to "") |
Joelmartin (talk | contribs) m (Text replacement - "<translate>" to "") |
||
Line 1: | Line 1: | ||
<languages/> | <languages/> | ||
− | <onlyinclude>{{#switch: | + | <onlyinclude>{{#switch: |
| = | | = | ||
− | {{rellink|extraclasses=mw-tpl-seealso|{{{altphrase| | + | {{rellink|extraclasses=mw-tpl-seealso|{{{altphrase|<!--T:1--> See also}}}: {{#if:{{{1<includeonly>|</includeonly>}}} |<!--then:-->[[:{{{1}}}{{#if:{{{label 1|{{{l1|}}}}}}|{{!}}{{{label 1|{{{l1}}}}}}}}]] |<!--else:-->'''<!--T:2--> Error: [[Special:MyLanguage/Template:See also|Template must be given at least one article name]]''' |
}}{{#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|}}}| — '''<br/ | + | }}{{#if:{{{16|}}}| — '''<br/><!--T:3--> Error: [[Special:MyLanguage/Template:See also|Too many links specified (maximum is 15)]]''' |
}}}} | }}}} | ||
| #default= | | #default= | ||
Line 24: | Line 24: | ||
{{Documentation|content= | {{Documentation|content= | ||
− | + | ||
==Usage== <!--T:4--> | ==Usage== <!--T:4--> | ||
<!--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]]. | {{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]]. | ||
− | + | ||
<!--T:6--> | <!--T:6--> | ||
It is not for use in the "See also" ''section'' at the bottom of an article. | It is not for use in the "See also" ''section'' at the bottom of an article. | ||
− | {{Tlx|See also| | + | {{Tlx|See also|<!--T:7--> Article 1|...|''<!--T:8--> Article 15''}} |
+ | |||
− | |||
<!--T:9--> | <!--T:9--> | ||
* One to fifteen articles can be listed. | * One to fifteen articles can be listed. | ||
− | + | ||
<!--T:10--> | <!--T:10--> | ||
* The word "and" is always placed between the final two entries. | * The word "and" is always placed between the final two entries. | ||
− | + | ||
<!--T:11--> | <!--T:11--> | ||
* 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 --> | ||
− | + | ||
<!--T:12--> | <!--T:12--> | ||
* 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. | ||
− | : | + | :<!--T:13--> adding newline characters will break article links <!-- presumably because of the leading ":" --> |
+ | |||
− | |||
==Example== <!--T:14--> | ==Example== <!--T:14--> | ||
<table class="wikitable" cellspacing="0" cellpadding="0"> | <table class="wikitable" cellspacing="0" cellpadding="0"> | ||
<tr> | <tr> | ||
− | <th | + | <th><!--T:15--> Code</th> |
− | <th | + | <th><!--T:16--> Result</th> |
</tr><tr> | </tr><tr> | ||
<td valign="top">{{Tlx|See also|Article}}</td><td>{{See also|Article}}</td> | <td valign="top">{{Tlx|See also|Article}}</td><td>{{See also|Article}}</td> | ||
</tr><tr> | </tr><tr> | ||
− | <td valign="top">{{Tlx|See also|Article|3=label 1= | + | <td valign="top">{{Tlx|See also|Article|3=label 1=<!--T:17--> Alternative title for Article}}</td><td>{{See also|Article|label 1=<!--T:18--> Alternative title for Article}}</td> |
</tr><tr> | </tr><tr> | ||
<td valign="top">{{Tlx|See also|Article|Article 2}}</td><td>{{See also|Article|Article 2}}</td> | <td valign="top">{{Tlx|See also|Article|Article 2}}</td><td>{{See also|Article|Article 2}}</td> | ||
Line 67: | Line 67: | ||
<td valign="top">{{Tlx|See also|Article|Article 2|Article 3}}</td><td>{{See also|Article|Article 2|Article 3}}</td> | <td valign="top">{{Tlx|See also|Article|Article 2|Article 3}}</td><td>{{See also|Article|Article 2|Article 3}}</td> | ||
</tr><tr> | </tr><tr> | ||
− | <td valign="top">{{Tlx|See also|Article|Article 2|4=label 2= | + | <td valign="top">{{Tlx|See also|Article|Article 2|4=label 2=<!--T:19--> Alternative title for Article 2}}</td><td>{{See also|Article|Article 2|label 2=<!--T:20--> Alternative title for Article 2}} |
</tr> | </tr> | ||
</table> | </table> | ||
− | '' | + | ''<!--T:21--> And so on up to 15 parameters.'' |
{{See also/doc}} | {{See also/doc}} |
Latest revision as of 20:58, 21 December 2019
See also: [[:{{{1}}}]]

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 |
{{See also|Article|label 1= Alternative title for Article}} | See also: 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}} | See also: Article and Alternative title for Article 2
|
And so on up to 15 parameters.
Display a note about a related page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Page name | 1 | Full name of related page | Page | required |