Difference between revisions of "Template:distinguish"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
(added second option)
 
(22 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<onlyinclude>''Not to be confused with [[{{{1}}}]]{{#if:{{{2|}}}| or {{{2}}}|}}.''</onlyinclude>
+
<includeonly>:<i>Not to be confused with {{nowrap|[[{{{1}}}]]}}{{#if:{{{2|}}}|{{#if:{{{3|}}}|,|&#32;or}} {{nowrap|[[{{{2}}}]]}}}}{{#if:{{{3|}}}|{{#if:{{{4|}}}|,|&#32;or}} {{nowrap|[[{{{3}}}]]}}}}{{#if:{{{4|}}}|{{#if:{{{5|}}}|,|&#32;or}} {{nowrap|[[{{{4}}}]]}}}}{{#if:{{{5|}}}|&#32;or {{nowrap|[[{{{5}}}]]}}}}.</i><includeonly>{{#if:{{{common|}}}|[[Category:Comics sharing name|{{{common|}}}]]|{{#if:{{{common|a}}}||[[Category:Comics sharing name]]}}}}</includeonly><noinclude>
 +
Use this template to distinguish two similarly-named pages, usually comics.
  
To use this template to distinguish two similarly-named pages, place <code><nowiki>{{distinguish|page}}</nowiki></code> at the top of a page.
+
Place <code>'''<nowiki>{{distinguish|PAGENAME}}</nowiki>'''</code> at the top of a page. For example:
  
For example, <code><nowiki>{{distinguish|Template:disambig))</nowiki></code> creates
+
<nowiki>{{distinguish|518: Flow Charts}}</nowiki>
  
{{distinguish|Template:disambig}}
+
{{distinguish|518: Flow Charts}}
 +
 
 +
----
 +
 
 +
You can also specify up to 4 more parameters<!-- can be extended by copying {{#if:{{{x|}}}|{{#if:{{{x+1|}}}|,|&#32;or}} {{nowrap|[[{{{x}}}]]}}}} more times. last if block can be just {{#if:{{{x|}}}|&#32;or {{nowrap|[[{{{x}}}]]}}}}, but not shortening has the same effect--> to link to multiple other pages:
 +
 
 +
<nowiki>{{distinguish|518: Flow Charts|1488: Flowcharts}}</nowiki>
 +
 
 +
{{distinguish|518: Flow Charts|1488: Flowcharts}}
 +
 
 +
----
 +
 
 +
To change the display text of the pages given, add <code>'''<nowiki>{{!}}</nowiki>'''</code> between the display text and the page title, as simply adding '''<code>|</code>''' would parse the display text as another page.
 +
 
 +
<nowiki>{{distinguish|1195: Flowchart{{!}}a flowchart}} <!-- GOOD --></nowiki>
 +
 
 +
{{distinguish|1195: Flowchart{{!}}a flowchart}}
 +
 
 +
<nowiki>{{distinguish|1195: Flowchart|a flowchart}} <!-- BAD --></nowiki>
 +
 
 +
{{distinguish|1195: Flowchart|a flowchart}}
 +
 
 +
----
 +
 
 +
You can specify a '''<code>common</code>''' parameter to add the comic to [[:Category:Comics sharing name]] with the value of the parameter given included after a bar. If '''<code>common</code>''' is defined to a blank value (by using '''<code>|common=</code>'''), the bar and the parameter will be omitted from the link. If '''<code>common</code>''' is not specified, the comic is not added to the category:
 +
 
 +
<nowiki>{{distinguish|518: Flow Charts|common=Flowcharts}}</nowiki>[[Category:Templates]]

Latest revision as of 01:55, 24 August 2025

Use this template to distinguish two similarly-named pages, usually comics.

Place {{distinguish|PAGENAME}} at the top of a page. For example:

{{distinguish|518: Flow Charts}}
Not to be confused with 518: Flow Charts.

You can also specify up to 4 more parameters to link to multiple other pages:

{{distinguish|518: Flow Charts|1488: Flowcharts}}
Not to be confused with 518: Flow Charts or 1488: Flowcharts.

To change the display text of the pages given, add {{!}} between the display text and the page title, as simply adding | would parse the display text as another page.

{{distinguish|1195: Flowchart{{!}}a flowchart}} <!-- GOOD -->
Not to be confused with a flowchart.
{{distinguish|1195: Flowchart|a flowchart}} <!-- BAD -->
Not to be confused with 1195: Flowchart or a flowchart.

You can specify a common parameter to add the comic to Category:Comics sharing name with the value of the parameter given included after a bar. If common is defined to a blank value (by using |common=), the bar and the parameter will be omitted from the link. If common is not specified, the comic is not added to the category:

{{distinguish|518: Flow Charts|common=Flowcharts}}