Difference between revisions of "Template:distinguish"
(lets see) |
|||
| Line 1: | Line 1: | ||
| − | <includeonly> | + | <includeonly>{{#ifeq:{{FULLPAGENAME}}|{{PAGENAME}} -- level 0 |
| + | | <!-- on own page --> | ||
| + | <i>Not to be confused with </i> | ||
| + | [[Category:Comics sharing name|{{{common|}}}]] | ||
| + | | <!-- transclusion --> | ||
| + | {{#ifeq:{{{depth|}}}| | -- level 1 | ||
| + | | <!-- depth==empty → first–level transclusion --> | ||
| + | <i>Not to be confused with …</i> | ||
| + | [[Category:Comics sharing name|{{{common|}}}]] | ||
| + | | <!-- depth is non-empty (i.e. level ≥ 2) → hide --> | ||
| + | }}}}</includeonly><noinclude> | ||
Use this template to distinguish two similarly-named pages, usually comics. | Use this template to distinguish two similarly-named pages, usually comics. | ||
Revision as of 16:37, 10 May 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.
