Template:See also: Difference between revisions
Appearance
m 1 revision imported |
No edit summary |
||
| Line 1: | Line 1: | ||
<onlyinclude> | <onlyinclude> | ||
{{rellink|extraclasses=mw-tpl-seealso|{{{altphrase| | {{rellink|extraclasses=mw-tpl-seealso|{{{altphrase| See also}}}{{msgnw:int:colon-separator/{{TRANSLATIONLANGUAGE}}}}{{#invoke:See also|main<noinclude>|1={{{1}}}</noinclude>|msg-empty-array=''' Error: [[Special:MyLanguage/Template:See also|Template must be given at least one article name]]'''}}}} | ||
</onlyinclude> | </onlyinclude> | ||
{{Documentation|content= | {{Documentation|content= | ||
{{Lua|Module:See also}} | {{Lua|Module:See also}} | ||
<tvar name=1>{{tlx|See also}}</tvar> 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. | |||
{{Tlx|See also|2= | {{Tlx|See also|2= Article 1|3=''label 1{{=}} label1''|4= Article 2|5=''label 2{{=}} label2''|6=...}} | ||
* Any number of articles can be listed (at least one should be provided). | |||
* The word "and" is always placed between the final two entries. | |||
* Any number of articles can be listed (at least one should be provided). | * You can use parameters label 1, label 2 and so on to specify alternative labels for the links. | ||
* 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. | |||
* Parameter <tvar name=1><code>ll</code></tvar> makes this template use <tvar name=2>{{tl|ll}}</tvar>, which provides automatic linking to translation in user language, as well as using a translated default link text (overriding with <tvar name=3><code>label <var>n</var></code></tvar> still applies). | * Parameter <tvar name=1><code>ll</code></tvar> makes this template use <tvar name=2>{{tl|ll}}</tvar>, which provides automatic linking to translation in user language, as well as using a translated default link text (overriding with <tvar name=3><code>label <var>n</var></code></tvar> still applies). | ||
: adding newline characters will break article links | |||
: | |||
==Example== | |||
==Example== | |||
{{(}}{{!}} class="wikitable" cellspacing="0" cellpadding="0" | {{(}}{{!}} class="wikitable" cellspacing="0" cellpadding="0" | ||
! | ! Code | ||
! | ! Result | ||
{{!}}- | {{!}}- | ||
{{!}} valign="top" {{!}} {{Tlx|See also|Article}} {{!}}{{!}} {{See also|Article}} | {{!}} valign="top" {{!}} {{Tlx|See also|Article}} {{!}}{{!}} {{See also|Article}} | ||
{{!}}- | {{!}}- | ||
{{!}} valign="top" {{!}} {{Tlx|See also|Article|3=label 1= | {{!}} valign="top" {{!}} {{Tlx|See also|Article|3=label 1= Alternative title for Article}} {{!}}{{!}} {{See also|Article|label 1= Alternative title for Article}} | ||
{{!}}- | {{!}}- | ||
{{!}} valign="top" {{!}} {{Tlx|See also|Article|Article 2}} {{!}}{{!}} {{See also|Article|Article 2}} | {{!}} valign="top" {{!}} {{Tlx|See also|Article|Article 2}} {{!}}{{!}} {{See also|Article|Article 2}} | ||
| Line 43: | Line 31: | ||
{{!}} valign="top" {{!}} {{Tlx|See also|Article|Article 2|<nowiki>ll=TRUE</nowiki>}} {{!}}{{!}} {{See also|Article|Article 2|ll=TRUE|l1=Article translated|l2=Article 2 translated}} | {{!}} valign="top" {{!}} {{Tlx|See also|Article|Article 2|<nowiki>ll=TRUE</nowiki>}} {{!}}{{!}} {{See also|Article|Article 2|ll=TRUE|l1=Article translated|l2=Article 2 translated}} | ||
{{!}}- | {{!}}- | ||
{{!}} valign="top" {{!}} {{Tlx|See also|Article|Article 2|4=l2= | {{!}} valign="top" {{!}} {{Tlx|See also|Article|Article 2|4=l2= Alternative title for Article 2}} {{!}}{{!}} {{See also|Article|Article 2|l2= Alternative title for Article 2}} | ||
{{!}}{{)}} | {{!}}{{)}} | ||
| Line 49: | Line 37: | ||
}} | }} | ||
[[Category:Templates | [[Category:Templates]] | ||
Latest revision as of 12:05, 18 August 2024
See also: [[:{{{1}}}]]
File:Template-info.svg Template documentation
<tvar name=1>{{See also}}</tvar> 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|label 1= label1|Article 2|label 2= label2|...}}
- 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.
- Parameter <tvar name=1>
ll</tvar> makes this template use <tvar name=2>{{ll}}</tvar>, which provides automatic linking to translation in user language, as well as using a translated default link text (overriding with <tvar name=3>label n</tvar> still applies).
- adding newline characters will break article links
Example
Template:(| class="wikitable" cellspacing="0" cellpadding="0"
! Code
! Result
|-
| valign="top" | {{See also|Article}} ||
See also: Article
|-
| valign="top" | {{See also|Article|label 1= Alternative title for Article}} ||
See also: Alternative title for Article
|-
| valign="top" | {{See also|Article|Article 2}} ||
|-
| valign="top" | {{See also|Article|Article 2|Article 3}} ||
|-
| valign="top" | {{See also|Article|Article 2|ll=TRUE}} ||
See also: Article translated and Article 2 translated
|-
| valign="top" | {{See also|Article|Article 2|l2= Alternative title for Article 2}} ||
See also: Article and Alternative title for Article 2
| Editors can experiment in this template's sandbox (create) and testcases (create) pages. Subpages of this template. |