Difference between revisions of "Template:Translate"
Jump to navigation
Jump to search
old>Realpsojed (Created page with "{{#switch: {{SUBPAGENAME}} |cz = {{TranslateCZ|{{{1}}}}} |ru = {{TranslateRU|{{{1}}}}} |#default = {{{1}}}}}") |
|||
(17 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#switch: {{ | <includeonly>{{#switch: {{#titleparts: {{PAGENAME}} | 1 | 2}} | ||
|cz = {{ | |cz = {{#switch: {{{2}}} | ||
|ru = {{ | |Properties = {{CZ Properties|{{{1}}}}} | ||
|#default = {{{1}}}}} | |ItemNames = {{CZ ItemNames|{{{1}}}}} | ||
|ItemDescriptions = {{CZ ItemDescriptions|{{{1}}}}} | |||
|ConditionNames = {{CZ ConditionNames|{{{1}}}}} | |||
|ConditionDescriptions = {{CZ ConditionDescriptions|{{{1}}}}} | |||
|ConsumableNames = {{CZ ConsumableNames|{{{1}}}}} | |||
|ConsumableDescriptions = {{CZ ConsumableDescriptions|{{{1}}}}} | |||
|ValuableNames = {{CZ ValuableNames|{{{1}}}}} | |||
|ValuableDescriptions = {{CZ ValuableDescriptions|{{{1}}}}} | |||
|Treatises = {{CZ Treatises|{{{1}}}}} | |||
|WikiNavigation = {{CZ WikiNavigation|{{{1}}}}} | |||
<!--|NPCNames = {{CZ NPCNames|{{{1}}}}}--> | |||
|#default = Chybí překlad}} | |||
|ru = {{#switch: {{{2}}} | |||
|Properties = {{RU Properties|{{{1}}}}} | |||
|ItemNames = {{RU ItemNames|{{{1}}}}} | |||
|ItemDescriptions = {{RU ItemDescriptions|{{{1}}}}} | |||
|ConditionNames = {{RU ConditionNames|{{{1}}}}} | |||
|ConditionDescriptions = {{RU ConditionDescriptions|{{{1}}}}} | |||
|ConsumableNames = {{RU ConsumableNames|{{{1}}}}} | |||
|ConsumableDescriptions = {{RU ConsumableDescriptions|{{{1}}}}} | |||
|ValuableNames = {{RU ValuableNames|{{{1}}}}} | |||
|ValuableDescriptions = {{RU ValuableDescriptions|{{{1}}}}} | |||
|Treatises = {{RU Treatises|{{{1}}}}} | |||
|Translations-RU = {{Translations-RU|{{{1}}}}} | |||
|WikiNavigation = {{RU WikiNavigation|{{{1}}}}} | |||
<!--|NPCNames = {{RU NPCNames|{{{1}}}}}--> | |||
|#default = Нет перевода}} | |||
|zh = {{#switch: {{{2}}} | |||
|Properties = {{ZH Properties|{{{1}}}}} | |||
|ItemNames = {{ZH ItemNames|{{{1}}}}} | |||
|ItemDescriptions = {{ZH ItemDescriptions|{{{1}}}}} | |||
|ConditionNames = {{ZH ConditionNames|{{{1}}}}} | |||
|ConditionDescriptions = {{ZH ConditionDescriptions|{{{1}}}}} | |||
|ConsumableNames = {{ZH ConsumableNames|{{{1}}}}} | |||
|ConsumableDescriptions = {{ZH ConsumableDescriptions|{{{1}}}}} | |||
|ValuableNames = {{ZH ValuableNames|{{{1}}}}} | |||
|ValuableDescriptions = {{ZH ValuableDescriptions|{{{1}}}}} | |||
|Treatises = {{ZH Treatises|{{{1}}}}} | |||
|WikiNavigation = {{ZH WikiNavigation|{{{1}}}}} | |||
|NPCNames = {{ZH NPCNames|{{{1}}}}} | |||
|SkillNames = {{ZH SkillNames|{{{1}}}}} | |||
|SkillDescription = {{ZH SkillDescription|{{{1}}}}} | |||
|SkillFormulaDescription = {{ZH SkillFormulaDescription|{{{1}}}}} | |||
|#default = Missing Translation}} | |||
|#default = {{{1}}}}}</includeonly><noinclude>{{Doc}}[[Category:Language templates]]</noinclude> |
Latest revision as of 17:49, 14 January 2023
Documentation
[purge]
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.