Difference between revisions of "Template:distinguish"
Firestar233 (talk | contribs) m |
Firestar233 (talk | contribs) (tweaked the category to add pages to the category automatically with the common name given) |
||
| Line 1: | Line 1: | ||
| − | <i>Not to be confused with {{nowrap|[[{{{1}}}]]}}{{#if:{{{2|}}}|{{#if:{{{3|}}}|,| or}} {{nowrap|[[{{{2}}}]]}}}}{{#if:{{{3|}}}|{{#if:{{{4|}}}|,| or}} {{nowrap|[[{{{3}}}]]}}}}{{#if:{{{4|}}}|{{#if:{{{5|}}}|,| or}} {{nowrap|[[{{{4}}}]]}}}}{{#if:{{{5|}}}| or {{nowrap|[[{{{5}}}]]}}}}.</i><noinclude> | + | <i>Not to be confused with {{nowrap|[[{{{1}}}]]}}{{#if:{{{2|}}}|{{#if:{{{3|}}}|,| or}} {{nowrap|[[{{{2}}}]]}}}}{{#if:{{{3|}}}|{{#if:{{{4|}}}|,| or}} {{nowrap|[[{{{3}}}]]}}}}{{#if:{{{4|}}}|{{#if:{{{5|}}}|,| or}} {{nowrap|[[{{{4}}}]]}}}}{{#if:{{{5|}}}| 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. | To use this template to distinguish two similarly-named pages, usually comics. | ||
| Line 11: | Line 11: | ||
---- | ---- | ||
| − | You can also | + | You can also specify up to 4 more parameters<!-- can be extended by copying {{#if:{{{x|}}}|{{#if:{{{x+1|}}}|,| or}} {{nowrap|[[{{{x}}}]]}}}} more times. last if block can be just {{#if:{{{x|}}}| or {{nowrap|[[{{{x}}}]]}}}}, but not shortening has the same effect--> to link to multiple other pages: |
<nowiki>{{distinguish|518: Flow Charts|1488: Flowcharts}}</nowiki> | <nowiki>{{distinguish|518: Flow Charts|1488: Flowcharts}}</nowiki> | ||
{{distinguish|518: Flow Charts|1488: Flowcharts}} | {{distinguish|518: Flow Charts|1488: Flowcharts}} | ||
| + | |||
| + | ---- | ||
| + | |||
| + | 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. | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> | ||
Revision as of 22:47, 14 February 2025
Not to be confused with [[{{{1}}}]].
To 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.
You can specify a common parameter to add the comic to the comics sharing name category with the value of the parameter given included after a bar. If common is defined to a blank value (by doing |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.
