Difference between revisions of "Template:Localized link"
From skaldsong companion
m |
m (1 revision imported) |
||
| (One intermediate revision by one other user not shown) | |||
| 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> | ||
Latest revision as of 01:26, 5 November 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 }}