Difference between revisions of "Module:Distinguish"
Jump to navigation
Jump to search
test>Wladek92 (add a 'usage' section) |
test>Wladek92 (add a template data section) |
||
| Line 58: | Line 58: | ||
}} | }} | ||
| − | </noinclude> | + | <templatedata> |
| + | { | ||
| + | "params": { | ||
| + | "1": {}, | ||
| + | "label 1": {} | ||
| + | }, | ||
| + | "description": { | ||
| + | "en": "Adds warning \"Not to be confused\" on the reader's page, with a short list of related pages.", | ||
| + | "fr": "Ajoute un avertissement \"A ne pas confondre avec\" sur la page du lecteur, avec une liste courte de pages associées." | ||
| + | } | ||
| + | } | ||
| + | </templatedata></noinclude> | ||
Revision as of 09:58, 5 April 2020
50px Module documentation
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}}
Lua error at line 1: unexpected symbol near '<'.
{{Distinguish|article1|article2}}
Lua error at line 1: unexpected symbol near '<'.
{{Distinguish|article1|article2|article3}}
Lua error at line 1: unexpected symbol near '<'.
{{Distinguish|article1|article2|article3|article4}}
Lua error at line 1: unexpected symbol near '<'.
{{Distinguish|article1|label 1=label1}}
Lua error at line 1: unexpected symbol near '<'.
{{Distinguish|article1|article2|label 1=label1|label 2=label2}}
Lua error at line 1: unexpected symbol near '<'.
| The above documentation is transcluded from Module:Distinguish/doc. (edit | history) Editors can experiment in this module's sandbox (edit | diff) and testcases (create) pages. Subpages of this module. |
Adds warning "Not to be confused" on the reader's page, with a short list of related pages.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | no description | Unknown | optional |
| Label 1 | label 1 | no description | Unknown | optional |