Difference between revisions of "Template:Translate"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(Created page with "{{#switch: {{SUBPAGENAME}} |cz = {{TranslateCZ|{{{1}}}}} |ru = {{TranslateRU|{{{1}}}}} |#default = {{{1}}}}}")
 
old>Realpsojed
(doc, category)
Line 1: Line 1:
{{#switch: {{SUBPAGENAME}}
<includeonly>{{#switch: {{SUBPAGENAME}}
|cz = {{TranslateCZ|{{{1}}}}}
|cz = {{TranslateCZ|{{{1}}}}}
|ru = {{TranslateRU|{{{1}}}}}
|ru = {{TranslateRU|{{{1}}}}}
|#default = {{{1}}}}}
|#default = {{{1}}}}}</includeonly><noinclude>{{Doc}}[[Category:Language templates]]</noinclude>

Revision as of 22:06, 6 October 2020

Template-info.png Documentation

This template checks if SUBPAGENAME is one of the languages. If match is found, the first parameter (some text) will be translated to the language of that subpage. The second parameter (for example ItemDescriptions) tells the template which dictionary to use.

See Category:Language_templates for a list of dictionaries for your language.

Used on Template:Properties and Template:Weapon.