Difference between revisions of "Template:Translatable"

From WPRDC Wiki
Jump to navigation Jump to search
>DannyS712
m (Changed protection level for "Template:Translatable": Fully protected via cascading protection, autoconfirmed protection is misleading ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
>Shirayuki
(prepare for translation)
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=


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


}}
}}

Revision as of 11:31, 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:}}]]