Difference between revisions of "Template:distinguish"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
m (I love this!)
Line 1: Line 1:
 
<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>
 
<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>
  
To use this template to distinguish two similarly-named pages, usually comics.
+
Use this template to distinguish two similarly-named pages, usually comics.
  
 
Place <code><nowiki>{{distinguish|PAGENAME}}</nowiki></code> at the top of a page. For example:
 
Place <code><nowiki>{{distinguish|PAGENAME}}</nowiki></code> at the top of a page. For example:
Line 19: Line 19:
 
----
 
----
  
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.
+
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>
 
  <nowiki>{{distinguish|1195: Flowchart|a flowchart}} <!-- BAD --></nowiki>
  
 
{{distinguish|1195: Flowchart|a flowchart}}
 
{{distinguish|1195: Flowchart|a flowchart}}
 
<nowiki>{{distinguish|1195: Flowchart{{!}}a flowchart}} <!-- GOOD --></nowiki>
 
 
{{distinguish|1195: Flowchart{{!}}a flowchart}}
 
  
 
----
 
----
  
You can specify a <code>common</code> parameter to add the comic to the [[:Category:Comics sharing name|comics sharing name category]] with the value of the parameter given included after a bar. If <code>common</code> is defined to a blank value (by doing <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.
+
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.
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 14:25, 15 February 2025

Not to be confused with [[{{{1}}}]].

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.