Difference between revisions of "Template:Traduci"
From EncyclopAtys
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:Lang|{{uc:{{{1|EN}}}}}}}<!-- TEMPLATE CODE | <includeonly>{{#vardefine:Lang|{{uc:{{{1|EN}}}}}}}<!-- TEMPLATE CODE | ||
− | -->{{ #switch:{{#var:Lang}} | + | -->{{ #switch:{{#var:Lang}}<!-- |
-->|DE={{ #switch: {{{2|}}}<!-- | -->|DE={{ #switch: {{{2|}}}<!-- | ||
-->|Personal Amber=Persönlicher Bernstein<!-- | -->|Personal Amber=Persönlicher Bernstein<!-- | ||
Line 153: | Line 153: | ||
| 🇷🇺 || <code><nowiki>{{Traduci |RU|Faction}}</nowiki></code> || {{Traduci |RU|Faction}} | | 🇷🇺 || <code><nowiki>{{Traduci |RU|Faction}}</nowiki></code> || {{Traduci |RU|Faction}} | ||
|} | |} | ||
− | Test: <code><nowiki>'''Woren Siloy''' {{Traduci |en|means in Atysian}} ''Salut!''</nowiki></code> →→ '''Woren Siloy''' {{Traduci |en|means in Atysian}} ''Hello!'' </noinclude> | + | Test: <code><nowiki>'''Woren Siloy''' {{Traduci |en|means in Atysian}} ''Salut!''</nowiki></code> →→ '''Woren Siloy''' {{Traduci |en|means in Atysian}}''Hello!'' </noinclude> |
<noinclude>[[Category:Templates]]</noinclude> | <noinclude>[[Category:Templates]]</noinclude> |
Revision as of 13:40, 29 March 2021
Translation from english template
This model is intended to translate some frequently used words from english to other official languages. It is specially made for template parameters in order to simplify templates porting.
The template has two parameters: the laguage to translate to, and the word or word sequence to translate.
Usage
{{Traduci | <language_code> | <word> }}
where :
<language_code> is among: DE, ES, FR, RU
<word> is one of the following:
Personal Amber
Name
Title
Role
Meaning
means in Atysian
Race
Sex
Genre
Gender
Nation
Nationality
Organization
Worship
Cult
Faction
Guild
Rank
Birth
Death
Mother
Father
unknown
BEWARE: Case matters !!! (except in languages codes).
Examples
🇬🇧 | {{Traduci |gb|Mother}} |
Mother |
🇩🇪 | {{Traduci |DE|Gender}} |
Geschlecht |
🇪🇸 | {{Traduci |es|Personal Amber}} |
Ámbar personal |
🇫🇷 | {{Traduci |FR|Birth}} |
Naissance |
🇷🇺 | {{Traduci |RU|Faction}} |
Фракция |
Test: '''Woren Siloy''' {{Traduci |en|means in Atysian}} ''Salut!''
→→ Woren Siloy means in AtysianHello!