Please note that some information on this wiki is still based on the demo version.
If you notice any errors, feel free to correct them.

Template:Distinguish: Difference between revisions

From Super Fantasy Kingdom Official Wiki
wgg>Cadaei
removed unintended linking to page itself
m 4 revisions imported
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly><div style="padding-bottom:5px;padding-left:25px">
<includeonly><!--
[[Image:Disambig.png|18px|link=]] ''This article is about '''{{#if:{{{this|}}}|{{{this}}}|{{PAGENAME}}}}'''{{#if:{{{1|}}}|, not to be confused with {{trim| [[{{{1}}}]]}}{{
-->{{#vardefine:text|<!-- start vd
    #if: {{{3|}}}{{{4|}}}
  -->{{#if:{{{text|}}} | {{{text}}} |<!-- start top if
    | , {{trim| [[{{{2}}}]]}}, {{
     
      #if: {{{4|}}}
  -->{{#if:{{{2|}}}<!-- if more than one page
      | {{trim| [[{{{3}}}]]}}, or {{trim| [[{{{4}}}]]}}
     
      | or {{trim| [[{{{3}}}]]}}
      -->|[[{{{1}}}]]{{#if:{{{3|}}}<!-- start concat if
       }}
       
    | {{
        -->|, [[{{{2}}}]] or [[{{{3}}}]]<!-- concat two
       #if: {{{2|}}}
           
      | &nbsp;or {{trim| [[{{{2}}}]]}}
        -->|<nowiki> </nowiki>or [[{{{2}}}]]<!-- else; concat one
       }}
           
    }}
       -->}}<!-- end concat if
}}{{#if:{{{text|}}}|, {{{text|}}}}}''</div></includeonly><noinclude>
       
{{Doc}}[[Category:Notice templates]]</noinclude>
       -->|[[{{{1}}}]]<!-- else; one page only
       
  -->}}<!-- end custom disambig if
        
  -->}}<!-- end if
-->}}<!-- end vd
 
-->{{Hatnote|<!--
 
  -->Not to be confused with {{#var:text}}.<!--
 
-->}}<!--
 
--></includeonly><!--
 
--><noinclude>{{doc}}[[Category:Hatnote templates]]</noinclude>

Latest revision as of 23:46, 21 October 2025

File:Template-info.svg Documentation Edit this documentation at Template:Distinguish/doc.
(edit • history • purge)

Examples

Code Result
{{Distinguish|Special:Uncategorizedpages}}
Not to be confused with Special:Uncategorizedpages.
{{Distinguish|Special:Uncategorizedpages|Special:Uncategorizedfiles}}
{{Distinguish|Special:Uncategorizedpages|Special:Uncategorizedfiles|Special:Uncategorizedcategories}}
{{Distinguish|Special:Uncategorizedpages{{!}}Page 1}} (Custom link label)
Not to be confused with Page 1.
{{Distinguish|text = Page 1, another name for [[Special:Uncategorizedpages]]}}
Not to be confused with Page 1, another name for Special:Uncategorizedpages.

Dependencies

For this template to work properly, you need the following:

Source

Roughly based on Wikipedia's Distinguish Template.