Modèle:Traduci : Différence entre versions

De EncyclopAtys

(Examples)
Ligne 42 : Ligne 42 :
  
 
==Examples==
 
==Examples==
 +
<div style="text-transform: uppercase;>Personal Amber<div>
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Ligne 48 : Ligne 49 :
 
| 🇩🇪 || <code><nowiki>{{Traduci |DE|Gender}}</nowiki></code> || {{Traduci |DE|Gender}}
 
| 🇩🇪 || <code><nowiki>{{Traduci |DE|Gender}}</nowiki></code> || {{Traduci |DE|Gender}}
 
|-
 
|-
| 🇪🇸 || <code><nowiki>{{Traduci |ES|Personal Amber}}</nowiki></code> || {{Traduci |ES|Personal Amber}}
+
| 🇪🇸 || <code><nowiki>{{Traduci |es|Personal Amber}}</nowiki></code> || {{Traduci |ES|Personal Amber}}
 
|-
 
|-
 
| 🇫🇷 || <code><nowiki>{{Traduci |FR|Birth}}</nowiki></code> || {{Traduci |FR|Birth}}
 
| 🇫🇷 || <code><nowiki>{{Traduci |FR|Birth}}</nowiki></code> || {{Traduci |FR|Birth}}
Ligne 55 : Ligne 56 :
 
|}  
 
|}  
 
Test: <code><nowiki>'''Woren Siloy''' {{Traduci |FR|means in Atysian}} ''Salut!''</nowiki></code> →→ '''Woren Siloy''' {{Traduci |FR|means in Atysian}} ''Salut!'' </noinclude>
 
Test: <code><nowiki>'''Woren Siloy''' {{Traduci |FR|means in Atysian}} ''Salut!''</nowiki></code> →→ '''Woren Siloy''' {{Traduci |FR|means in Atysian}} ''Salut!'' </noinclude>
<onlyinclude>{{ #switch: {{{1|}}}<!--            TEMPLATE CODE
+
<onlyinclude>{{ #switch: <div style="text-transform: uppercase;>{{{1|}}}<div>          <!--            TEMPLATE CODE
 
-->|DE={{ #switch: {{{2|}}}<!--  
 
-->|DE={{ #switch: {{{2|}}}<!--  
 
-->|Personal Amber=Persönlicher Bernstein<!--  
 
-->|Personal Amber=Persönlicher Bernstein<!--  

Version du 19 mars 2021 à 14:25

de:Template:Traduci
en:Template:Traduci
es:Template:Traduci
fr:Template:Traduci
ru:Template:Traduci

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 !!!

Examples

Personal Amber
🇬🇧 {{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 |FR|means in Atysian}} ''Salut!'' →→ Woren Siloy signifie en Atysien Salut!

EN