Difference between revisions of "Template:Localized link"
From skaldsong companion
m |
m (Changed protection level for "Template:Localized link": Fully protected via cascading protection, autoconfirmed protection is misleading ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
||
Line 1: | Line 1: | ||
− | + | {{#ifeq:{{FULLPAGENAME:{{{1}}}}}|{{FULLPAGENAME:{{translatable}}}}<!--self link (including translation pages)--> | |
+ | |<b> | ||
+ | }}[[Special:MyLanguage/{{{1}}}|{{{2|{{#ifexist:Translations:{{#if:{{NAMESPACE:{{{1}}}}}|{{NAMESPACE:{{{1}}}}}:}}{{PAGENAME:{{{1}}}}}/Page display title/{{pagelang}}<!--if the source page, pagelang returns empty--> | ||
+ | |{{#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}}}}} | ||
+ | |{{{1}}} | ||
+ | }} | ||
+ | }}}}}]]{{#ifeq:{{FULLPAGENAME:{{{1}}}}}|{{FULLPAGENAME:{{translatable}}}}<!--self link (including translation pages)--> | ||
+ | |</b> | ||
+ | }}<span style="display:none">[[:{{{1}}}| ]]</span><!-- T63547 --><noinclude> | ||
+ | {{ {{TNTN|documentation}} }} | ||
+ | </noinclude> |
Revision as of 17:12, 5 October 2019
{{#ifeq:|
|
}}[[Special:MyLanguage/{{{1}}}|{{#ifexist:Translations:{{#if:|:}}/Page display title/Script error: No such module "Template translation".
|{{#if: | |{{ Template:TNTN }} }} |{{#if: | |{{{1}}} }}
}}]]{{#ifeq:|
|
}}Template:TNTN }}
{{