Template:Distinguish/en: Difference between revisions
Updating to match new version of source page |
(No difference)
|
Revision as of 23:54, 22 August 2025
<languages/>
<templatestyles src="Hatnote/styles.css"/>
#if: |Template:Int[[:{{{2}}}{{#if:||{{{l2}}}}}]]Template:Int {{ #if: | [[:{{{3}}}{{#if:||{{{l3}}}}}]]Template:Int orTemplate:Int[[:{{{4}}}{{#if:||{{{l4}}}}}]] | orTemplate:Int[[:{{{3}}}{{#if:||{{{l3}}}}}]] }} | {{ #if: | orTemplate:Int[[:{{{2}}}{{#if:||{{{l2}}}}}]] }}}}.
Lua error: Module:TNT:172: '''Missing JsonConfig extension, or not properly configured; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab. See https://www.mediawiki.org/wiki/Extension:JsonConfig#Supporting_Wikimedia_templates'''.{{#if:Template:Hatnote templates
Usage
<templatestyles src="Template:Mono/styles.css"></templatestyles>{{[[Template:{{safesubst:#if:|{{{SISTER}}}:Template:Distinguish|Distinguish}}|{{safesubst:#if:|{{{SISTER}}}:Template:Distinguish|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.
<templatestyles src="Template:Mono/styles.css"></templatestyles>{{[[Template:{{safesubst:#if:|{{{SISTER}}}:Template:Distinguish|Distinguish}}|{{safesubst:#if:|{{{SISTER}}}:Template:Distinguish|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
- <templatestyles src="Template:Mono/styles.css"></templatestyles>{{[[Template:{{safesubst:#if:|{{{SISTER}}}:Template:Distinguish|Distinguish}}|{{safesubst:#if:|{{{SISTER}}}:Template:Distinguish|Distinguish}}]]|article1}}
<templatestyles src="Hatnote/styles.css"/>
#if: |Template:Int[[:{{{2}}}{{#if:||{{{l2}}}}}]]Template:Int {{ #if: | [[:{{{3}}}{{#if:||{{{l3}}}}}]]Template:Int<translate> or</translate>Template:Int[[:{{{4}}}{{#if:||{{{l4}}}}}]] |<translate> or</translate>Template:Int[[:{{{3}}}{{#if:||{{{l3}}}}}]] }} | {{ #if: |<translate> or</translate>Template:Int[[:{{{2}}}{{#if:||{{{l2}}}}}]] }}}}.
- <templatestyles src="Template:Mono/styles.css"></templatestyles>{{[[Template:{{safesubst:#if:|{{{SISTER}}}:Template:Distinguish|Distinguish}}|{{safesubst:#if:|{{{SISTER}}}:Template:Distinguish|Distinguish}}]]|article1|article2}}
<templatestyles src="Hatnote/styles.css"/>
#if: |Template:Int[[:article2{{#if:||{{{l2}}}}}]]Template:Int {{ #if: | [[:{{{3}}}{{#if:||{{{l3}}}}}]]Template:Int<translate> or</translate>Template:Int[[:{{{4}}}{{#if:||{{{l4}}}}}]] |<translate> or</translate>Template:Int[[:{{{3}}}{{#if:||{{{l3}}}}}]] }} | {{ #if: article2 |<translate> or</translate>Template:Int[[:article2{{#if:||{{{l2}}}}}]] }}}}.
- <templatestyles src="Template:Mono/styles.css"></templatestyles>{{[[Template:{{safesubst:#if:|{{{SISTER}}}:Template:Distinguish|Distinguish}}|{{safesubst:#if:|{{{SISTER}}}:Template:Distinguish|Distinguish}}]]|article1|article2|article3}}
<templatestyles src="Hatnote/styles.css"/>
#if: article3 |Template:Int[[:article2{{#if:||{{{l2}}}}}]]Template:Int {{ #if: | [[:article3{{#if:||{{{l3}}}}}]]Template:Int<translate> or</translate>Template:Int[[:{{{4}}}{{#if:||{{{l4}}}}}]] |<translate> or</translate>Template:Int[[:article3{{#if:||{{{l3}}}}}]] }} | {{ #if: article2 |<translate> or</translate>Template:Int[[:article2{{#if:||{{{l2}}}}}]] }}}}.
- <templatestyles src="Template:Mono/styles.css"></templatestyles>{{[[Template:{{safesubst:#if:|{{{SISTER}}}:Template:Distinguish|Distinguish}}|{{safesubst:#if:|{{{SISTER}}}:Template:Distinguish|Distinguish}}]]|article1|article2|article3|article4}}
<templatestyles src="Hatnote/styles.css"/>
#if: article3article4 |Template:Int[[:article2{{#if:||{{{l2}}}}}]]Template:Int {{ #if: article4 | [[:article3{{#if:||{{{l3}}}}}]]Template:Int<translate> or</translate>Template:Int[[:article4{{#if:||{{{l4}}}}}]] |<translate> or</translate>Template:Int[[:article3{{#if:||{{{l3}}}}}]] }} | {{ #if: article2 |<translate> or</translate>Template:Int[[:article2{{#if:||{{{l2}}}}}]] }}}}.
- <templatestyles src="Template:Mono/styles.css"></templatestyles>{{[[Template:{{safesubst:#if:|{{{SISTER}}}:Template:Distinguish|Distinguish}}|{{safesubst:#if:|{{{SISTER}}}:Template:Distinguish|Distinguish}}]]|article1|label 1=label1}}
<templatestyles src="Hatnote/styles.css"/>
#if: |Template:Int[[:{{{2}}}{{#if:||{{{l2}}}}}]]Template:Int {{ #if: | [[:{{{3}}}{{#if:||{{{l3}}}}}]]Template:Int<translate> or</translate>Template:Int[[:{{{4}}}{{#if:||{{{l4}}}}}]] |<translate> or</translate>Template:Int[[:{{{3}}}{{#if:||{{{l3}}}}}]] }} | {{ #if: |<translate> or</translate>Template:Int[[:{{{2}}}{{#if:||{{{l2}}}}}]] }}}}.
- <templatestyles src="Template:Mono/styles.css"></templatestyles>{{[[Template:{{safesubst:#if:|{{{SISTER}}}:Template:Distinguish|Distinguish}}|{{safesubst:#if:|{{{SISTER}}}:Template:Distinguish|Distinguish}}]]|article1|article2|label 1=label1|label 2=label2}}
<templatestyles src="Hatnote/styles.css"/>
#if: |Template:Int[[:article2{{#if:label2||label2}}]]Template:Int {{ #if: | [[:{{{3}}}{{#if:||{{{l3}}}}}]]Template:Int<translate> or</translate>Template:Int[[:{{{4}}}{{#if:||{{{l4}}}}}]] |<translate> or</translate>Template:Int[[:{{{3}}}{{#if:||{{{l3}}}}}]] }} | {{ #if: article2 |<translate> or</translate>Template:Int[[:article2{{#if:label2||label2}}]] }}}}.
TemplateData
Template:Distinguish/doc| [[Category:Template documentation pages{{#translation:}}]] }}