Template:Distinguish

From Pixelbar
Jump to navigation Jump to search

<languages/>

<templatestyles src="Hatnote/styles.css"/>

<translate> Not to be confused with</translate> [[:{{{1}}}{{#if:||{{{l1}}}}}]]{{
 #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}}}}}]]
 }}
}}.

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 <translate>

Usage

<tvar name=1><templatestyles src="Template:Mono/styles.css"></templatestyles>{{[[Template:{{safesubst:#if:|{{{SISTER}}}:Template:Distinguish|Distinguish}}|{{safesubst:#if:|{{{SISTER}}}:Template:Distinguish|Distinguish}}]]}}</tvar> 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. </translate>

<templatestyles src="Template:Mono/styles.css"></templatestyles>{{[[Template:{{safesubst:#if:|{{{SISTER}}}:Template:Distinguish|Distinguish}}|{{safesubst:#if:|{{{SISTER}}}:Template:Distinguish|Distinguish}}]]|<translate> Article 1</translate>|...|<translate> Article 4</translate>|label 1=<translate> label1</translate>|...|label 4=<translate> label4</translate>}}

<translate>

  • One to four articles can be listed.</translate>

<translate>

  • The word "or" is always placed between the final two entries when displayed.</translate>

<translate>

  • If more than 4 entries are supplied, a message will be displayed pointing out the problem.</translate>

<translate>

  • You can use parameters label 1 to label 4 to specify alternative labels for the links.

</translate>

<translate> Adding newline characters will break article links.</translate>

<translate>

Examples

</translate>

  • <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"/>

<translate> Not to be confused with</translate> [[:article1{{#if:||{{{l1}}}}}]]{{
 #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"/>

<translate> Not to be confused with</translate> [[:article1{{#if:||{{{l1}}}}}]]{{
 #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"/>

<translate> Not to be confused with</translate> [[:article1{{#if:||{{{l1}}}}}]]{{
 #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"/>

<translate> Not to be confused with</translate> [[:article1{{#if:||{{{l1}}}}}]]{{
 #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"/>

<translate> Not to be confused with</translate> [[:article1{{#if:label1||label1}}]]{{
 #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"/>

<translate> Not to be confused with</translate> [[:article1{{#if:label1||label1}}]]{{
 #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:}}]] }}