Template:Distinguish: Difference between revisions
m new tvar syntax |
m 1 revision imported: Initial setup |
||
(No difference)
|
Latest revision as of 15:34, 22 December 2024
Usage
{{Distinguish}} 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=label1|...|label 4=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=label1}}
- {{Distinguish|article1|article2|label 1=label1|label 2=label2}}
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools.
Distinguish
Adds warning "Not to be confused" on the reader's page, with a short list of related pages.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Page 1 | 1 | Full name of related page | Page name | required |
Label 1 | l1 label 1 | Custom label for the link, instead of the page name.
| Line | optional |
Page 2 | 2 | Full name of related page | Page name | optional |
Label 2 | l2 label 2 | Custom label for the link, instead of the page name.
| Line | optional |
Page 3 | 3 | Full name of related page | Page name | optional |
Label 3 | l3 label 3 | Custom label for the link, instead of the page name.
| Line | optional |
Page 4 | 4 | Full name of related page | Page name | optional |
Label 4 | l4 label 4 | Custom label for the link, instead of the page name.
| Line | optional |