模板:Distinguish/en
<languages/> {{#switch: | =
#if: |{{#invoke:Int|renderIntMessage|comma-separator|lang=}}[[:{{{2}}}{{#if:||{{{l2}}}}}]]{{#invoke:Int|renderIntMessage|comma-separator|lang=}} {{ #if: | [[:{{{3}}}{{#if:||{{{l3}}}}}]]{{#invoke:Int|renderIntMessage|comma-separator|lang=}} or{{#invoke:Int|renderIntMessage|word-separator|lang=}}[[:{{{4}}}{{#if:||{{{l4}}}}}]] | or{{#invoke:Int|renderIntMessage|word-separator|lang=}}[[:{{{3}}}{{#if:||{{{l3}}}}}]] }} | {{ #if: | or{{#invoke:Int|renderIntMessage|word-separator|lang=}}[[:{{{2}}}{{#if:||{{{l2}}}}}]] }}}}.
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Distinguish|noshift=1}}
}} {{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}{{#if:== Usage ==
{{-{}-{{#if: |subst:}}Distinguish{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||{{{12}}}}}{{#if: ||{{{13}}}}}{{#if: ||{{{14}}}}}{{#if: ||{{{15}}}}}{{#if: ||{{{16}}}}}{{#if: ||{{{17}}}}}{{#if: ||{{{18}}}}}{{#if: ||{{{19}}}}}{{#if: ||{{{20}}}}}{{#if: ||...}}}}
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.
{{-{}-{{#if: |subst:}}Distinguish{{#if:Article 1 ||Article 1}}{{#if:... ||...}}{{#if:Article 4 ||Article 4}}{{#if:label 1=label1 ||label 1=label1}}{{#if:... ||...}}{{#if:label 4=label4 ||label 4=label4}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||{{{12}}}}}{{#if: ||{{{13}}}}}{{#if: ||{{{14}}}}}{{#if: ||{{{15}}}}}{{#if: ||{{{16}}}}}{{#if: ||{{{17}}}}}{{#if: ||{{{18}}}}}{{#if: ||{{{19}}}}}{{#if: ||{{{20}}}}}{{#if: ||...}}}}
- 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
{{-{}-{{#if: |subst:}}Distinguish{{#if:article1 ||article1}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||{{{12}}}}}{{#if: ||{{{13}}}}}{{#if: ||{{{14}}}}}{{#if: ||{{{15}}}}}{{#if: ||{{{16}}}}}{{#if: ||{{{17}}}}}{{#if: ||{{{18}}}}}{{#if: ||{{{19}}}}}{{#if: ||{{{20}}}}}{{#if: ||...}}}}
{{#switch:<translate></translate> | =
#if: |{{#invoke:Int|renderIntMessage|comma-separator|lang=}}[[:{{{2}}}{{#if:||{{{l2}}}}}]]{{#invoke:Int|renderIntMessage|comma-separator|lang=}} {{ #if: | [[:{{{3}}}{{#if:||{{{l3}}}}}]]{{#invoke:Int|renderIntMessage|comma-separator|lang=}}<translate> or</translate>{{#invoke:Int|renderIntMessage|word-separator|lang=}}[[:{{{4}}}{{#if:||{{{l4}}}}}]] |<translate> or</translate>{{#invoke:Int|renderIntMessage|word-separator|lang=}}[[:{{{3}}}{{#if:||{{{l3}}}}}]] }} | {{ #if: |<translate> or</translate>{{#invoke:Int|renderIntMessage|word-separator|lang=}}[[:{{{2}}}{{#if:||{{{l2}}}}}]] }}}}.
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Distinguish|noshift=1}}
}}
{{-{}-{{#if: |subst:}}Distinguish{{#if:article1 ||article1}}{{#if:article2 ||article2}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||{{{12}}}}}{{#if: ||{{{13}}}}}{{#if: ||{{{14}}}}}{{#if: ||{{{15}}}}}{{#if: ||{{{16}}}}}{{#if: ||{{{17}}}}}{{#if: ||{{{18}}}}}{{#if: ||{{{19}}}}}{{#if: ||{{{20}}}}}{{#if: ||...}}}}
{{#switch:<translate></translate> | =
#if: |{{#invoke:Int|renderIntMessage|comma-separator|lang=}}[[:article2{{#if:||{{{l2}}}}}]]{{#invoke:Int|renderIntMessage|comma-separator|lang=}} {{ #if: | [[:{{{3}}}{{#if:||{{{l3}}}}}]]{{#invoke:Int|renderIntMessage|comma-separator|lang=}}<translate> or</translate>{{#invoke:Int|renderIntMessage|word-separator|lang=}}[[:{{{4}}}{{#if:||{{{l4}}}}}]] |<translate> or</translate>{{#invoke:Int|renderIntMessage|word-separator|lang=}}[[:{{{3}}}{{#if:||{{{l3}}}}}]] }} | {{ #if: article2 |<translate> or</translate>{{#invoke:Int|renderIntMessage|word-separator|lang=}}[[:article2{{#if:||{{{l2}}}}}]] }}}}.
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Distinguish|noshift=1}}
}}
{{-{}-{{#if: |subst:}}Distinguish{{#if:article1 ||article1}}{{#if:article2 ||article2}}{{#if:article3 ||article3}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||{{{12}}}}}{{#if: ||{{{13}}}}}{{#if: ||{{{14}}}}}{{#if: ||{{{15}}}}}{{#if: ||{{{16}}}}}{{#if: ||{{{17}}}}}{{#if: ||{{{18}}}}}{{#if: ||{{{19}}}}}{{#if: ||{{{20}}}}}{{#if: ||...}}}}
{{#switch:<translate></translate> | =
#if: article3 |{{#invoke:Int|renderIntMessage|comma-separator|lang=}}[[:article2{{#if:||{{{l2}}}}}]]{{#invoke:Int|renderIntMessage|comma-separator|lang=}} {{ #if: | [[:article3{{#if:||{{{l3}}}}}]]{{#invoke:Int|renderIntMessage|comma-separator|lang=}}<translate> or</translate>{{#invoke:Int|renderIntMessage|word-separator|lang=}}[[:{{{4}}}{{#if:||{{{l4}}}}}]] |<translate> or</translate>{{#invoke:Int|renderIntMessage|word-separator|lang=}}[[:article3{{#if:||{{{l3}}}}}]] }} | {{ #if: article2 |<translate> or</translate>{{#invoke:Int|renderIntMessage|word-separator|lang=}}[[:article2{{#if:||{{{l2}}}}}]] }}}}.
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Distinguish|noshift=1}}
}}
{{-{}-{{#if: |subst:}}Distinguish{{#if:article1 ||article1}}{{#if:article2 ||article2}}{{#if:article3 ||article3}}{{#if:article4 ||article4}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||{{{12}}}}}{{#if: ||{{{13}}}}}{{#if: ||{{{14}}}}}{{#if: ||{{{15}}}}}{{#if: ||{{{16}}}}}{{#if: ||{{{17}}}}}{{#if: ||{{{18}}}}}{{#if: ||{{{19}}}}}{{#if: ||{{{20}}}}}{{#if: ||...}}}}
{{#switch:<translate></translate> | =
#if: article3article4 |{{#invoke:Int|renderIntMessage|comma-separator|lang=}}[[:article2{{#if:||{{{l2}}}}}]]{{#invoke:Int|renderIntMessage|comma-separator|lang=}} {{ #if: article4 | [[:article3{{#if:||{{{l3}}}}}]]{{#invoke:Int|renderIntMessage|comma-separator|lang=}}<translate> or</translate>{{#invoke:Int|renderIntMessage|word-separator|lang=}}[[:article4{{#if:||{{{l4}}}}}]] |<translate> or</translate>{{#invoke:Int|renderIntMessage|word-separator|lang=}}[[:article3{{#if:||{{{l3}}}}}]] }} | {{ #if: article2 |<translate> or</translate>{{#invoke:Int|renderIntMessage|word-separator|lang=}}[[:article2{{#if:||{{{l2}}}}}]] }}}}.
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Distinguish|noshift=1}}
}}
{{-{}-{{#if: |subst:}}Distinguish{{#if:article1 ||article1}}{{#if:label 1=label1 ||label 1=label1}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||{{{12}}}}}{{#if: ||{{{13}}}}}{{#if: ||{{{14}}}}}{{#if: ||{{{15}}}}}{{#if: ||{{{16}}}}}{{#if: ||{{{17}}}}}{{#if: ||{{{18}}}}}{{#if: ||{{{19}}}}}{{#if: ||{{{20}}}}}{{#if: ||...}}}}
{{#switch:<translate></translate> | =
#if: |{{#invoke:Int|renderIntMessage|comma-separator|lang=}}[[:{{{2}}}{{#if:||{{{l2}}}}}]]{{#invoke:Int|renderIntMessage|comma-separator|lang=}} {{ #if: | [[:{{{3}}}{{#if:||{{{l3}}}}}]]{{#invoke:Int|renderIntMessage|comma-separator|lang=}}<translate> or</translate>{{#invoke:Int|renderIntMessage|word-separator|lang=}}[[:{{{4}}}{{#if:||{{{l4}}}}}]] |<translate> or</translate>{{#invoke:Int|renderIntMessage|word-separator|lang=}}[[:{{{3}}}{{#if:||{{{l3}}}}}]] }} | {{ #if: |<translate> or</translate>{{#invoke:Int|renderIntMessage|word-separator|lang=}}[[:{{{2}}}{{#if:||{{{l2}}}}}]] }}}}.
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Distinguish|noshift=1}}
}}
{{-{}-{{#if: |subst:}}Distinguish{{#if:article1 ||article1}}{{#if:article2 ||article2}}{{#if:label 1=label1 ||label 1=label1}}{{#if: ||}}{{#if:label 2=label2 ||label 2=label2}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||{{{12}}}}}{{#if: ||{{{13}}}}}{{#if: ||{{{14}}}}}{{#if: ||{{{15}}}}}{{#if: ||{{{16}}}}}{{#if: ||{{{17}}}}}{{#if: ||{{{18}}}}}{{#if: ||{{{19}}}}}{{#if: ||{{{20}}}}}{{#if: ||...}}}}
{{#switch:<translate></translate> | =
#if: |{{#invoke:Int|renderIntMessage|comma-separator|lang=}}[[:article2{{#if:label2||label2}}]]{{#invoke:Int|renderIntMessage|comma-separator|lang=}} {{ #if: | [[:{{{3}}}{{#if:||{{{l3}}}}}]]{{#invoke:Int|renderIntMessage|comma-separator|lang=}}<translate> or</translate>{{#invoke:Int|renderIntMessage|word-separator|lang=}}[[:{{{4}}}{{#if:||{{{l4}}}}}]] |<translate> or</translate>{{#invoke:Int|renderIntMessage|word-separator|lang=}}[[:{{{3}}}{{#if:||{{{l3}}}}}]] }} | {{ #if: article2 |<translate> or</translate>{{#invoke:Int|renderIntMessage|word-separator|lang=}}[[:article2{{#if:label2||label2}}]] }}}}.
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Distinguish|noshift=1}}
}}| [[Category:Template documentation pages{{#translation:}}]] }}