Difference between revisions of "Module:Distinguish"

From blackwiki
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

Lua error at line 1: unexpected symbol near '<'.

Lua error at line 1: unexpected symbol near '<'.

Lua error at line 1: unexpected symbol near '<'.

Lua error at line 1: unexpected symbol near '<'.

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 '<'.

Adds warning "Not to be confused" on the reader's page, with a short list of related pages.

Template parameters

ParameterDescriptionTypeStatus
11

no description

Unknownoptional
Label 1label 1

no description

Unknownoptional