Difference between revisions of "Template:Translatable template name"

convert to LUA
>Kaganer
>Kaganer
(convert to LUA)
Line 1: Line 1:
{{#ifeq:{{#titleparts:{{FULLPAGENAME}}|1|-1}}|{{#language:{{#titleparts:{{FULLPAGENAME}}|1|-1}}}}
<includeonly>{{#invoke:Template translation{{{sandbox|}}}|getTranslatedTemplate|uselang={{{uselang|}}}|namespace={{{namespace|}}}|template={{#if:{{{noshift|}}}|{{{template}}}|{{{1}}}}}|noshift={{{noshift|}}}<!-- there are no other parameters here -->}}</includeonly><noinclude>{{documentation}}</noinclude>
  |{{{1}}}
  |{{#ifexist:{{{ns|Template}}}:{{{1}}}/{{#titleparts:{{FULLPAGENAME}}|1|-1}}
    |{{{1}}}/{{#titleparts:{{FULLPAGENAME}}|1|-1}}
    |{{#ifexist:{{{ns|Template}}}:{{{1}}}/en
      |{{{1}}}/en
      |{{{1}}}
    }}
  }}
}}<noinclude>
{{documentation}}
</noinclude>
Anonymous user