Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:See also: Difference between revisions

Template page
Created page with "<languages/> <onlyinclude> {{rellink|extraclasses=mw-tpl-seealso|{{{altphrase|<translate><!--T:1--> See also</translate>}}}{{msgnw:int:colon-separator/{{TRANSLATIONLANGUAGE}}}}{{#invoke:See also|main<noinclude>|1={{{1}}}</noinclude>|msg-empty-array='''<translate><!--T:2--> Error: [[<tvar name=1>Special:MyLanguage/Template:See also</tvar>|Template must be given at least one article name]]</translate>'''}}}} </onlyinclude> {{Documentation|content= {{Lua|Module:See also}}..."
 
m Mnooseman moved page Template:See Also to Template:See also: Misspelled title
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<languages/>
<includeonly>{{#vardefine:params|{{#expr: {{#if: {{{2|}}} | 2 | 0 }} + {{#if: {{{3|}}} | 1 | 0 }} + {{#if: {{{4|}}} | 1 | 0 }} + {{#if: {{{5|}}} | 1 | 0 }} + {{#if: {{{6|}}} | 1 | 0 }} }}
<onlyinclude>
}}{{Hatnote|See also: {{#if: {{{title1|}}} | [[:{{{1}}}|{{{title1}}}]] | [[:{{{1}}}|{{#replace: {{{1}}} | # | &nbsp;§&nbsp; }}]] }}{{
{{rellink|extraclasses=mw-tpl-seealso|{{{altphrase|<translate><!--T:1--> See also</translate>}}}{{msgnw:int:colon-separator/{{TRANSLATIONLANGUAGE}}}}{{#invoke:See also|main<noinclude>|1={{{1}}}</noinclude>|msg-empty-array='''<translate><!--T:2--> Error: [[<tvar name=1>Special:MyLanguage/Template:See also</tvar>|Template must be given at least one article name]]</translate>'''}}}}
#if: {{{2|}}} | {{#ifexpr: {{#var:params}} > 2 | , | &#32;and }} {{#if: {{{title2|}}} | [[:{{{2}}}|{{{title2}}}]] | [[:{{{2}}}|{{#replace: {{{2}}} | # | &nbsp;§&nbsp; }}]] }} }}{{
</onlyinclude>
#if: {{{3|}}} | {{#ifexpr: {{#var:params}} > 3 | , | &#32;and }} {{#if: {{{title3|}}} | [[:{{{3}}}|{{{title3}}}]] | [[:{{{3}}}|{{#replace: {{{3}}} | # | &nbsp;§&nbsp; }}]] }} }}{{
{{Documentation|content=
#if: {{{4|}}} | {{#ifexpr: {{#var:params}} > 4 | , | &#32;and }} {{#if: {{{title4|}}} | [[:{{{4}}}|{{{title4}}}]] | [[:{{{4}}}|{{#replace: {{{4}}} | # | &nbsp;§&nbsp; }}]] }} }}{{
{{Lua|Module:See also}}
#if: {{{5|}}} | {{#ifexpr: {{#var:params}} > 5 | , | &#32;and }} {{#if: {{{title5|}}} | [[:{{{5}}}|{{{title5}}}]] | [[:{{{5}}}|{{#replace: {{{5}}} | # | &nbsp;§&nbsp; }}]] }} }} {{
 
#if: {{{6|}}} | and {{#if: {{{title6|}}} | [[:{{{6}}}|{{{title6}}}]] | [[:{{{6}}}|{{#replace: {{{6}}} | # | &nbsp;§&nbsp; }}]] }} }}
<translate><!--T:5--> <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]].</translate>
}}</includeonly><noinclude>
<translate><!--T:6--> It is not for use in the "See also" ''section'' at the bottom of an article.</translate>
{{documentation}}
 
<!-- Put categories/interwiki on the documentation page -->
{{Tlx|See also|2=<translate><!--T:7--> Article 1</translate>|3=''label 1{{=}}<translate><!--T:22--> label1</translate>''|4=<translate><!--T:24--> Article 2</translate>|5=''label 2{{=}}<translate><!--T:25--> label2</translate>''|6=...}}
</noinclude>
 
<translate>
<!--T:26-->
* Any number of articles can be listed (at least one should be provided).</translate>
<translate>
<!--T:10-->
* The word "and" is always placed between the final two entries.</translate>
<translate>
<!--T:12-->
* You can use parameters label 1, label 2 and so on to specify alternative labels for the links.</translate>
<translate>
<!--T:27-->
* 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).
</translate>
:<translate><!--T:13--> adding newline characters will break article links</translate> <!-- presumably because of the leading ":" -->
 
<translate>
==Example== <!--T:14-->
</translate>
{{(}}{{!}} class="wikitable" cellspacing="0" cellpadding="0"
! <translate><!--T:15--> Code</translate>
! <translate><!--T:16--> Result</translate>
{{!}}-
{{!}} valign="top" {{!}} {{Tlx|See also|Article}} {{!}}{{!}} {{See also|Article}}
{{!}}-
{{!}} valign="top" {{!}} {{Tlx|See also|Article|3=label 1=<translate><!--T:17--> Alternative title for Article</translate>}} {{!}}{{!}} {{See also|Article|label 1=<translate><!--T:18--> Alternative title for Article</translate>}}
{{!}}-
{{!}} valign="top" {{!}} {{Tlx|See also|Article|Article 2}} {{!}}{{!}} {{See also|Article|Article 2}}
{{!}}-
{{!}} valign="top" {{!}} {{Tlx|See also|Article|Article 2|Article 3}} {{!}}{{!}} {{See also|Article|Article 2|Article 3}}
{{!}}-
{{!}} 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=<translate><!--T:19--> Alternative title for Article 2</translate>}} {{!}}{{!}} {{See also|Article|Article 2|l2=<translate><!--T:20--> Alternative title for Article 2</translate>}}
{{!}}{{)}}
 
{{See also/doc}}
 
}}
[[Category:Templates{{#translation:}}]]

Latest revision as of 07:02, 28 June 2025

Documentation[view] [edit] [history] [purge]


This template should be put at the beginning of a section that has relating article(s). Do not use this template on top of a page, where hatnotes are for disambiguation and not for related topics.

The template is sometimes accompanied by a very brief summary of the article it is linking to.

A maximum of 6 articles can be linked to at once.

Usage

{{See also|link1|title1=optional title}}

Examples

== Storage Minecart ==
{{See also|Storage Minecart}}

Storage Minecarts can be used to store items and easily transport them.
results in

Storage Minecart

See also: Storage Minecart
Storage Minecarts can be used to store items and easily transport them.


== Water Ladder ==
{{See also|Tutorials/Water ladder|title1=Water Ladder|Tutorials/Water elevator|title2=Water Elevator|Tutorials/Water tram|title3=Water Tram}}
results in

Water Ladder

[view] [edit] [history] [purge]The above documentation is transcluded from Template:See also/doc.