Difference between revisions of "Template:Localized link"

From WPRDC Wiki
Jump to navigation Jump to search
>Shirayuki
(simplify)
>Shirayuki
(add uselang for special templates)
Line 1: Line 1:
{{#ifeq:{{FULLPAGENAME:{{{1}}}}}|{{FULLPAGENAME:{{translatable}}}}<!--self link (including translation pages)-->
{{#ifeq:{{FULLPAGENAME:{{{1}}}}}|{{FULLPAGENAME:{{translatable}}}}<!--self link (including translation pages)-->
   |<b>
   |<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-->
}}[[Special:MyLanguage/{{{1}}}|{{{2|{{#ifexist:Translations:{{#if:{{NAMESPACE:{{{1}}}}}|{{NAMESPACE:{{{1}}}}}:}}{{PAGENAME:{{{1}}}}}/Page display title/{{{uselang|{{pagelang}}}}}<!--if the source page, pagelang returns empty-->
   |{{#if:{{{nsp|}}}
   |{{#if:{{{nsp|}}}
     |{{PAGENAME:{{ {{TNTN|Translations:{{#if:{{NAMESPACE:{{{1}}}}}|{{NAMESPACE:{{{1}}}}}:}}{{PAGENAME:{{{1}}}}}/Page_display_title}} }} }}
     |{{PAGENAME:{{ {{TNTN|1=Translations:{{#if:{{NAMESPACE:{{{1}}}}}|2={{NAMESPACE:{{{1}}}}}:}}{{PAGENAME:{{{1}}}}}/Page_display_title|uselang={{{uselang|{{pagelang}}}}}}} }} }}
     |{{ {{TNTN|Translations:{{#if:{{NAMESPACE:{{{1}}}}}|{{NAMESPACE:{{{1}}}}}:}}{{PAGENAME:{{{1}}}}}/Page_display_title}} }}
     |{{ {{TNTN|1=Translations:{{#if:{{NAMESPACE:{{{1}}}}}|2={{NAMESPACE:{{{1}}}}}:}}{{PAGENAME:{{{1}}}}}/Page_display_title|uselang={{{uselang|{{pagelang}}}}}}} }}
   }}
   }}
   <!--if the translation page does not exist (or called from the source page), output as is-->
   <!--if the translation page does not exist (or called from the source page), output as is-->
Line 14: Line 14:
   |</b>
   |</b>
}}<span style="display:none">[[:{{{1}}}| ]]</span><!-- T63547 --><noinclude>
}}<span style="display:none">[[:{{{1}}}| ]]</span><!-- T63547 --><noinclude>
{{ {{TNTN|documentation}} }}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 12:04, 8 July 2019

[[Special:MyLanguage/{{{1}}}|{{{1}}}]][[:{{{1}}}| ]] Lua error in Module:TNT at line 158: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab.