Difference between revisions of "Template:Translate"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(removed useless ifeq check, it always returned subpagename)
old>Realpsojed
(add support for Templar Sword/cz/Tooltip type of subpages)
Line 1: Line 1:
<includeonly>{{#switch: {{SUBPAGENAME}}
<includeonly>{{#switch: {{#titleparts: {{PAGENAME}} | 1 | 2}}
|cz = {{#switch: {{{2}}}
|cz = {{#switch: {{{2}}}
|Properties = {{CZ Properties|{{{1}}}}}
|Properties = {{CZ Properties|{{{1}}}}}

Revision as of 19:22, 21 June 2021

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.