Difference between revisions of "Template:Translate"

From Stoneshard wiki
Jump to navigation Jump to search
(comment out nonexisting dictionaries)
Line 1: Line 1:
<includeonly>{{#switch: {{#titleparts: {{PAGENAME}} | 1 | 2}}
<noinclude>{{#switch: {{#titleparts: {{PAGENAME}} | 1 | 2}}
|cz = {{#switch: {{{2}}}
|cz = {{#switch: {{{2}}}
|Properties = {{CZ Properties|{{{1}}}}}
|Properties = {{CZ Properties|{{{1}}}}}
Line 12: Line 12:
|Treatises = {{CZ Treatises|{{{1}}}}}
|Treatises = {{CZ Treatises|{{{1}}}}}
|WikiNavigation = {{CZ WikiNavigation|{{{1}}}}}
|WikiNavigation = {{CZ WikiNavigation|{{{1}}}}}
|NPCNames = {{CZ NPCNames|{{{1}}}}}
<!--|NPCNames = {{CZ NPCNames|{{{1}}}}}-->
|#default = Chybí překlad}}
|#default = Chybí překlad}}
|ru = {{#switch: {{{2}}}
|ru = {{#switch: {{{2}}}
Line 27: Line 27:
|Translations-RU = {{Translations-RU|{{{1}}}}}
|Translations-RU = {{Translations-RU|{{{1}}}}}
|WikiNavigation = {{RU WikiNavigation|{{{1}}}}}
|WikiNavigation = {{RU WikiNavigation|{{{1}}}}}
|NPCNames = {{RU NPCNames|{{{1}}}}}
<!--|NPCNames = {{RU NPCNames|{{{1}}}}}-->
|#default = Нет перевода}}
|#default = Нет перевода}}
|zh = {{#switch: {{{2}}}
|zh = {{#switch: {{{2}}}

Revision as of 14:15, 31 December 2022

{{{1}}}</includeonly>

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.