Template:Translatable/en and Template:IsDocSubpage: Difference between pages

From MAP Wiki
(Difference between pages)
m 1 revision imported
 
button>Tacsipacsi
use {{#translation:}}—it handles manual translations as well
 
Line 1: Line 1:
<noinclude>
<onlyinclude><includeonly>{{#ifexpr: (
<languages />
{{#ifeq:{{lc:{{SUBPAGENAME}}}}|{{lc:{{{override|doc}}}}}|1|0}} or (
</noinclude>{{#ifeq:{{pagelang|{{{1|{{FULLPAGENAME}}}}}}}|
{{#ifeq:{{lc:{{#titleparts:{{FULLPAGENAME}}|-1|-2}}}}|{{lc:{{{override|doc}}}}}|1|0}}
|{{{1|{{FULLPAGENAME}}}}}
and {{#if:{{#translation:}}|1|0}}
|{{#invoke:String|sub|{{{1|{{FULLPAGENAME}}}}}
)
  |1
)<!--
  |{{#expr:{{#invoke:String|len|{{{1|{{FULLPAGENAME}}}}}}}-{{#invoke:String|len|{{pagelang|{{{1|{{FULLPAGENAME}}}}}}}}}-1}}
-->|{{{true|1}}}<!--
  }}
-->|{{{false|}}}<!--
}}<noinclude>
-->}}</includeonly></onlyinclude>
{{Documentation|content=
{{Documentation}}
{{Lua|Module:String}}
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! -->
 
== Examples ==
* {{tlx|translatable}}
{{translatable}}
* {{tlx|translatable|2=Page name}}
{{translatable|1=Page name}}
* {{tlx|translatable|2=Page name/{{PAGELANGUAGE}} }}
{{translatable|1=Page name/{{PAGELANGUAGE}} }}
}}
 
[[Category:Internationalization templates{{#translation:}}]]
</noinclude>

Revision as of 07:02, 13 July 2022

Template documentation