« Modèle:Localized link » : différence entre les versions

De wikarphy
add uselang for special templates
m Undid revision 3306084 by Shirayuki (talk)
Ligne 1 : Ligne 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/{{{uselang|{{pagelang}}}}}<!--if the source page, pagelang returns empty-->
}}[[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|}}}
   |{{#if:{{{nsp|}}}
     |{{PAGENAME:{{ {{TNTN|1=Translations:{{#if:{{NAMESPACE:{{{1}}}}}|2={{NAMESPACE:{{{1}}}}}:}}{{PAGENAME:{{{1}}}}}/Page_display_title|uselang={{{uselang|{{pagelang}}}}}}} }} }}
     |{{PAGENAME:{{ {{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}}}}}}} }}
     |{{ {{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 the translation page does not exist (or called from the source page), output as is-->
Ligne 14 : Ligne 14 :
   |</b>
   |</b>
}}<span style="display:none">[[:{{{1}}}| ]]</span><!-- T63547 --><noinclude>
}}<span style="display:none">[[:{{{1}}}| ]]</span><!-- T63547 --><noinclude>
{{documentation}}
{{ {{TNTN|documentation}} }}
</noinclude>
</noinclude>

Version du 8 juillet 2019 à 12:22

{{#ifeq:|

 |

}}[[Special:MyLanguage/{{{1}}}|{{#ifexist:Translations:{{#if:|:}}/Page display title/{{#ifeq:|en |{{#ifeq:{{#titleparts:Localized link||-1}}|en

 |
 }}

| }}

 |{{#if:
   |
   |{{ Modèle:TNTN }}
 }}
 |{{#if:
   |
   |{{{1}}}
 }}

}}]]{{#ifeq:|

 |

}}[[:{{{1}}}| ]] {{ Modèle:TNTN }}