Template:Distinguish: Difference between revisions

From Bonkipedia
[[mw:]]>Baris6161TURK
m (new tvar syntax)
 
m (1 revision imported: Workaround and Utility Templates)
 
(No difference)

Latest revision as of 17:49, 12 November 2022


Not to be confused with [[:{{{1}}}]].
Template 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

<translate> Not to be confused with</translate> article1.
<translate> Not to be confused with</translate> article1<translate>  or</translate> article2.
<translate> Not to be confused with</translate> article1, article2, <translate>  or</translate> article3.
<translate> Not to be confused with</translate> article1, article2, article3, <translate>  or</translate> article4.
<translate> Not to be confused with</translate> label1.
  • {{Distinguish|article1|article2|label 1=label1|label 2=label2}}
<translate> Not to be confused with</translate> label1<translate>  or</translate> label2.

TemplateData

[<span style="" title="<translate nowrap> View this template</translate>"><translate> view</translate> · <span style="" title="<translate nowrap> Discuss this template</translate>"><translate> talk</translate> · <span style="" title="<translate nowrap> Edit this template</translate>"><translate> edit</translate>]

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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Page 11

Full name of related page

Page namerequired
Label 1l1 label 1

Custom label for the link, instead of the page name.

Default
Page name
Lineoptional
Page 22

Full name of related page

Page nameoptional
Label 2l2 label 2

Custom label for the link, instead of the page name.

Default
Page name
Lineoptional
Page 33

Full name of related page

Page nameoptional
Label 3l3 label 3

Custom label for the link, instead of the page name.

Default
Page name
Lineoptional
Page 44

Full name of related page

Page nameoptional
Label 4l4 label 4

Custom label for the link, instead of the page name.

Default
Page name
Lineoptional