Template:Localized link: Difference between revisions

From Campaigns
Jump to navigation Jump to search
m 1 revision imported
mNo edit summary
Line 1: Line 1:
<onlyinclude>{{#if:{{{iw|}}}||<!--
<onlyinclude>{{#if:{{{iw|}}}||<!--
-->{{#ifeq:{{FULLPAGENAME:{{{1}}}}}|{{FULLPAGENAME:{{translatable}}}}<!--self link (including translation pages)-->
-->{{#ifeq:{{FULLPAGENAME:{{{1}}}}}|{{FULLPAGENAME}}
   |<b>
   |<b>
}}}}[[:{{#if:{{{iw|}}}|{{{iw}}}:}}Special:MyLanguage/{{{1}}}|{{#if:{{{2|}}}|{{{2}}}|{{#if:{{{iw|}}}
}}}}[[:{{#if:{{{iw|}}}|{{{iw}}}:}}{{{1}}}|{{#if:{{{2|}}}|{{{2}}}|{{#if:{{{iw|}}}
   <!--interwiki link, output as is-->
   <!--interwiki link, output as is-->
   |{{#if:{{yesno|{{{nsp|1}}}}}
   |{{#if:{{yesno|{{{nsp|1}}}}}
Line 8: Line 8:
     |{{PAGENAME:{{{1}}}}}
     |{{PAGENAME:{{{1}}}}}
   }}
   }}
|{{#ifexist:Translations:{{#if:{{NAMESPACE:{{{1}}}}}|{{NAMESPACE:{{{1}}}}}:}}{{PAGENAME:{{{1}}}}}/Page display title/{{pagelang2}}<!--if the source page, pagelang2 returns en-->
|{{#if:{{{nsp|}}}
  |{{#if:{{{nsp|}}}
    |{{PAGENAME:{{ {{TNTN|Translations:{{#if:{{NAMESPACE:{{{1}}}}}|{{NAMESPACE:{{{1}}}}}:}}{{PAGENAME:{{{1}}}}}/Page_display_title}} }} }}
    |{{ {{TNTN|Translations:{{#if:{{NAMESPACE:{{{1}}}}}|{{NAMESPACE:{{{1}}}}}:}}{{PAGENAME:{{{1}}}}}/Page_display_title}} }}
  }}
  <!--if the translation page does not exist (or called from the source page), output as is-->
  |{{#if:{{{nsp|}}}
     |{{PAGENAME:{{{1}}}}}
     |{{PAGENAME:{{{1}}}}}
     |{{{1}}}
     |{{{1}}}
  }}
}}}}}}]]{{#if:{{{iw|}}}|
}}}}}}]]{{#if:{{{iw|}}}|
|{{#ifeq:{{FULLPAGENAME:{{{1}}}}}|{{FULLPAGENAME:{{translatable}}}}<!--self link (including translation pages)-->
|{{#ifeq:{{FULLPAGENAME:{{{1}}}}}|{{FULLPAGENAME}}
   |</b>
   |</b>
}}}}<includeonly>{{#if:{{{iw|}}}||<span style="display:none">[[:{{{1}}}| ]]</span><!-- T63547 -->}}</includeonly></onlyinclude>
}}}}<includeonly>{{#if:{{{iw|}}}||<span style="display:none">[[:{{{1}}}| ]]</span>}}</includeonly></onlyinclude>
{{Documentation|{{Sandbox other|Template:Localized link/sandbox/doc}}}}
{{Documentation|{{Sandbox other|Template:Localized link/sandbox/doc}}}}
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! -->
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! -->

Revision as of 12:03, 10 December 2021

[[:{{{1}}}|{{{1}}}]]

Template documentation