Template:See also: Difference between revisions
m 1 revision imported |
mNo edit summary |
||
Line 1: | Line 1: | ||
<onlyinclude> | <onlyinclude> | ||
{{rellink|extraclasses=mw-tpl-seealso|{{{altphrase| | {{rellink|extraclasses=mw-tpl-seealso|{{{altphrase|See also}}}: {{#invoke:See also|main<noinclude>|1={{{1}}}</noinclude>|msg-empty-array='''Error: [[Template:See also|Template must be given at least one article name]]'''}}}} | ||
</onlyinclude> | </onlyinclude> | ||
{{Documentation|content= | {{Documentation|content= | ||
{{ | {{(}}{{(}}'''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]]. It is not for use in the "See also" ''section'' at the bottom of an article. | ||
* Any number of articles can be listed (at least one should be provided). | |||
* The word "and" is always placed between the final two entries. | |||
* You can use parameters label 1, label 2 and so on to specify alternative labels for the links. | |||
==Example== | |||
==Example== | |||
{{(}}{{!}} class="wikitable" cellspacing="0" cellpadding="0" | {{(}}{{!}} class="wikitable" cellspacing="0" cellpadding="0" | ||
! | !Code | ||
! | !Result | ||
{{!}}- | {{!}}- | ||
{{!}} valign="top" {{!}} {{ | {{!}} valign="top" {{!}} <code><nowiki>{{see also|Article}}</nowiki></code> {{!}}{{!}} {{see also|Article}} | ||
{{!}}- | {{!}}- | ||
{{!}} valign="top" {{!}} {{ | {{!}} valign="top" {{!}} <code><nowiki>{{see also|Article|label 1=Alternative title for Article}}</nowiki></code> {{!}}{{!}} {{see also|Article|label 1=Alternative title for Article}} | ||
{{!}}- | {{!}}- | ||
{{!}} valign="top" {{!}} {{ | {{!}} valign="top" {{!}} <code><nowiki>{{see also|Article|Article 2}}</nowiki></code> {{!}}{{!}} {{see also|Article|Article 2}} | ||
{{!}}- | {{!}}- | ||
{{!}} valign="top" {{!}} {{ | {{!}} valign="top" {{!}} <code><nowiki>{{see also|Article|Article 2|Article 3}}</nowiki></code> {{!}}{{!}} {{see also|Article|Article 2|Article 3}} | ||
{{!}}- | {{!}}- | ||
{{!}} valign="top" {{!}} {{ | {{!}} valign="top" {{!}} <code><nowiki>{{see also|Article|Article 2|l2=Alternative title for Article 2}}</nowiki></code> {{!}}{{!}} {{see also|Article|Article 2|l2=Alternative title for Article 2}} | ||
{{!}}{{)}} | {{!}}{{)}} | ||
Line 49: | Line 28: | ||
}} | }} | ||
[[Category:Templates | [[Category:Templates]] |
Latest revision as of 17:36, 20 May 2022
{{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.
- Any number of articles can be listed (at least one should be provided).
- The word "and" is always placed between the final two entries.
- You can use parameters label 1, label 2 and so on to specify alternative labels for the 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|l2=Alternative title for Article 2}} |
See also: Article and Alternative title for Article 2
|
Display a note about a related page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Page name | 1 | Full name of related page | Page name | required |
Link label | label 1 l1 | Custom label for the link, instead of the page name.
| String | optional |
Page 2 | 2 | no description | Page name | optional |
Label 2 | label 2 l2 | no description | Template | optional |
Page 3 | 3 | no description | Page name | optional |
Label 3 | label 3 l3 | no description | String | optional |
use {{ll}} | ll | If this parameter has any non-blank value, links are generated using {{ll}}, which provides automatic linking to translation in user language, as well as using a translated default link text (overriding link texts still applies). | Line | optional |
[[Category:Hatnote templates{{#translation:}}]]