Template:Distinguish: Difference between revisions
m (1 revision imported) |
No edit summary |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
</noinclude><!-- | </noinclude><!-- | ||
-->{{Hatnote|1= | -->{{Hatnote|1=<!--T:1--> Not to be confused with [[:{{{1}}}{{#if:{{{label 1|{{{l1|}}}}}}|{{!}}{{{label 1|{{{l1}}}}}}}}]]{{ | ||
#if: {{{3|}}}{{{4|}}} | #if: {{{3|}}}{{{4|}}} | ||
|{{int|comma-separator}}[[:{{{2}}}{{#if:{{{label 2|{{{l2|}}}}}}|{{!}}{{{label 2|{{{l2}}}}}}}}]]{{int|comma-separator}} {{ | |{{int|comma-separator}}[[:{{{2}}}{{#if:{{{label 2|{{{l2|}}}}}}|{{!}}{{{label 2|{{{l2}}}}}}}}]]{{int|comma-separator}} {{ | ||
#if: {{{4|}}} | #if: {{{4|}}} | ||
| [[:{{{3}}}{{#if:{{{label 3|{{{l3|}}}}}}|{{!}}{{{label 3|{{{l3}}}}}}}}]]{{int|comma-separator}} | | [[:{{{3}}}{{#if:{{{label 3|{{{l3|}}}}}}|{{!}}{{{label 3|{{{l3}}}}}}}}]]{{int|comma-separator}}<!--T:2--> or{{int|word-separator}}[[:{{{4}}}{{#if:{{{label 4|{{{l4|}}}}}}|{{!}}{{{label 4|{{{l4}}}}}}}}]] | ||
| | |<!--T:3--> or{{int|word-separator}}[[:{{{3}}}{{#if:{{{label 3|{{{l3|}}}}}}|{{!}}{{{label 3|{{{l3}}}}}}}}]] | ||
}} | }} | ||
| {{ | | {{ | ||
#if: {{{2|}}} | #if: {{{2|}}} | ||
| | |<!--T:4--> or{{int|word-separator}}[[:{{{2}}}{{#if:{{{label 2|{{{l2|}}}}}}|{{!}}{{{label 2|{{{l2}}}}}}}}]] | ||
}} | }} | ||
}}.}}<!-- | }}.}}<!-- | ||
Line 17: | Line 17: | ||
{{Documentation|content= | {{Documentation|content= | ||
== Usage == <!--T:6--> | == Usage == <!--T:6--> | ||
Line 25: | Line 24: | ||
<!--T:8--> | <!--T:8--> | ||
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 | {{Tlx | ||
|1=Distinguish | |1=Distinguish | ||
|2= | |2=<!--T:9--> Article 1 | ||
|3=... | |3=... | ||
|4='' | |4=''<!--T:10--> Article 4'' | ||
|5=''label 1{{=}} | |5=''label 1{{=}}<!--T:18--> label1'' | ||
|6=... | |6=... | ||
|7=''label 4{{=}} | |7=''label 4{{=}}<!--T:19--> label4'' | ||
}} | }} | ||
<!--T:13--> | <!--T:13--> | ||
* One to four articles can be listed. | * One to four articles can be listed. | ||
<!--T:14--> | <!--T:14--> | ||
* The word "or" is always placed between the final two entries when displayed. | * The word "or" is always placed between the final two entries when displayed. | ||
<!--T:15--> | <!--T:15--> | ||
* If more than 4 entries are supplied, a message will be displayed pointing out the problem. | * If more than 4 entries are supplied, a message will be displayed pointing out the problem.<!-- this is relatively ungraceful failure --> | ||
<!--T:16--> | <!--T:16--> | ||
* You can use parameters label 1 to label 4 to specify alternative labels for the links. | * You can use parameters label 1 to label 4 to specify alternative labels for the links. | ||
< | :<!--T:17--> Adding newline characters will break article links. <!-- presumably because of the leading ":" --> | ||
== Examples == <!--T:5--> | == Examples == <!--T:5--> | ||
* {{tlx|Distinguish|article1}} | * {{tlx|Distinguish|article1}} | ||
{{Distinguish|article1}} | {{Distinguish|article1}} |
Revision as of 09:17, 25 August 2022
Usage
<tvar name=1>{{Distinguish}}</tvar> is used to create hatnotes to warn about possible confusion with 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.
{{Distinguish|Article 1|...| Article 4|label 1=
Error: The retired template {{Template:Distinguish}} has been transcluded; see mw:Help:Magic words#Other for details. To fix this, use only the code {{=}} to generate the = character. label1|...|label 4= Error: The retired template {{Template:Distinguish}} has been transcluded; see mw:Help:Magic words#Other for details. To fix this, use only the code {{=}} to generate the = character. label4}}
- One to four articles can be listed.
- The word "or" is always placed between the final two entries when displayed.
- If more than 4 entries are supplied, a message will be displayed pointing out the problem.
- You can use parameters label 1 to label 4 to specify alternative labels for the links.
- Adding newline characters will break article links.
Examples
- {{Distinguish|article1}}
- {{Distinguish|article1|article2}}
- {{Distinguish|article1|article2|article3}}
- {{Distinguish|article1|article2|article3|article4}}
- {{Distinguish|article1|label 1=
Error: The retired template {{Template:Distinguish}} has been transcluded; see mw:Help:Magic words#Other for details. To fix this, use only the code {{=}} to generate the = character.label1}}
- {{Distinguish|article1|article2|label 1=
Error: The retired template {{Template:Distinguish}} has been transcluded; see mw:Help:Magic words#Other for details. To fix this, use only the code {{=}} to generate the = character.label1|label 2= Error: The retired template {{Template:Distinguish}} has been transcluded; see mw:Help:Magic words#Other for details. To fix this, use only the code {{=}} to generate the = character.label2}}
TemplateData
TemplateData for Distinguish
Adds warning "Not to be confused" on the reader's page, with a short list of related pages.
Parameter | Description | Type | Status | |||
---|---|---|---|---|---|---|
No parameters specified |