Difference between revisions of "Template:Translatable"

From WPRDC Wiki
Jump to navigation Jump to search
>Kaganer
m
>Shirayuki
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#ifeq:{{pagelang|{{{1|{{FULLPAGENAME}}}}}}}|
<noinclude>
<languages/>
</noinclude>{{#ifeq:{{pagelang|{{{1|{{FULLPAGENAME}}}}}}}|
|{{{1|{{FULLPAGENAME}}}}}
|{{{1|{{FULLPAGENAME}}}}}
|{{#invoke:String|sub|{{{1|{{FULLPAGENAME}}}}}
|{{#invoke:String|sub|{{{1|{{FULLPAGENAME}}}}}
Line 6: Line 8:
   }}
   }}
}}<noinclude>
}}<noinclude>
{{ {{TNTN|Documentation}} |content=
{{Documentation|content=
{{Lua|Module:String}}


== Examples ==
<translate>
 
== Examples == <!--T:1-->
* <code><nowiki>{{translatable}}</nowiki></code>
</translate>
* {{tlx|translatable}}
{{translatable}}
{{translatable}}
* <code><nowiki>{{translatable|Page name}}</nowiki></code>
* {{tlx|translatable|2=<translate><!--T:2--> Page name</translate>}}
{{translatable|Page name}}
{{translatable|1=<translate><!--T:3--> Page name</translate>}}
* <code><nowiki>{{translatable|Page name/ja}}</nowiki></code>
* {{tlx|translatable|2=<translate><!--T:4--> Page name</translate>/{{#ifeq:{{pagelang2}}|en|<!--then-->ja|<!--else-->{{pagelang2}} }} }}
{{translatable|Page name/ja}}
{{translatable|1=<translate><!--T:5--> Page name</translate>/{{#ifeq:{{pagelang2}}|en|ja|{{pagelang2}} }} }}


}}
}}

Latest revision as of 11:33, 26 May 2021

<languages/> Template:Translatable Lua error in Module:TNT at line 158: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab.[[Category:Template documentation pages{{#translation:}}]]

[[Category:Internationalization templates{{#translation:}}]]