Difference between revisions of "Template:Localized link"
en>Ciencia Al Poder (A smarter way to track the link without using {{#ifexist:}}, which is totally unnecessary. Just put the link always, inside a template argument that never produces output. It was causing the expensive pf count on Manual:Configuration settings to be...) |
m (21 revisions imported) |
||
| (5 intermediate revisions by 3 users not shown) | |||
| 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:{{{1}}}/Page display title/ | + | }}[[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|}}} | |{{#if:{{{nsp|}}} | ||
| − | |||
| − | |||
| − | |||
|{{PAGENAME:{{{1}}}}} | |{{PAGENAME:{{{1}}}}} | ||
|{{{1}}} | |{{{1}}} | ||
| Line 11: | Line 13: | ||
}}}}}]]{{#ifeq:{{FULLPAGENAME:{{{1}}}}}|{{FULLPAGENAME:{{translatable}}}}<!--self link (including translation pages)--> | }}}}}]]{{#ifeq:{{FULLPAGENAME:{{{1}}}}}|{{FULLPAGENAME:{{translatable}}}}<!--self link (including translation pages)--> | ||
|</b> | |</b> | ||
| − | }} | + | }}<span style="display:none">[[:{{{1}}}| ]]</span><!-- T63547 --><noinclude> |
{{ {{TNTN|documentation}} }} | {{ {{TNTN|documentation}} }} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 07:55, 18 April 2019
[[Special:MyLanguage/{{{1}}}|{{{1}}}]] {{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template=documentation|noshift=}} }}