Modèle:Traduci : Différence entre versions

De EncyclopAtys

 
(8 révisions intermédiaires par 2 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
<onlyinclude>{{#vardefine:Lang|{{uc:{{{1|EN}}}}}}}           <!-- TEMPLATE CODE     
+
<onlyinclude>{{#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<!--  
Ligne 24 : Ligne 24 :
 
-->|Mother=Mutter<!--  
 
-->|Mother=Mutter<!--  
 
-->|Father=Vater<!--  
 
-->|Father=Vater<!--  
 +
-->|Siblings=Geschwister<!--
 +
-->|Spouses=Ehepartner<!--
 +
-->|Children=Kinder<!--
 
-->|unknown=unbekannt}}<!--  
 
-->|unknown=unbekannt}}<!--  
 
  -->|ES={{ #switch: {{{2|}}}<!--  
 
  -->|ES={{ #switch: {{{2|}}}<!--  
Ligne 48 : Ligne 51 :
 
-->|Mother=Madre<!--  
 
-->|Mother=Madre<!--  
 
-->|Father=Padre<!--  
 
-->|Father=Padre<!--  
 +
-->|Siblings=Hermanos<!--
 +
-->|Spouses=Cónyuges<!--
 +
-->|Children=Hijos<!--
 
-->|unknown=desconocido(a)}}<!--  
 
-->|unknown=desconocido(a)}}<!--  
 
-->|FR={{ #switch: {{{2|}}}<!--  
 
-->|FR={{ #switch: {{{2|}}}<!--  
Ligne 72 : Ligne 78 :
 
-->|Mother=Mère<!--  
 
-->|Mother=Mère<!--  
 
-->|Father=Père<!--  
 
-->|Father=Père<!--  
 +
-->|Siblings=Fratrie<!--
 +
-->|Spouses=Conjoints<!--
 +
-->|Children=Enfants<!--
 
-->|unknown=inconnu(e)}}<!--  
 
-->|unknown=inconnu(e)}}<!--  
 
-->|RU={{ #switch: {{{2|}}}<!--  
 
-->|RU={{ #switch: {{{2|}}}<!--  
Ligne 96 : Ligne 105 :
 
-->|Mother=Мать<!--  
 
-->|Mother=Мать<!--  
 
-->|Father=Отец<!--  
 
-->|Father=Отец<!--  
 +
-->|Siblings=Братья и сестры<!--
 +
-->|Spouses=Супруги<!--
 +
-->|Children=Дети<!--
 
-->|unknown=неизвестный(ая)}}<!--  
 
-->|unknown=неизвестный(ая)}}<!--  
-->| #default = {{{2}}}}}</onlyinclude><noinclude>{{Trad
+
-->|#default ={{{2}}}}}</onlyinclude><noinclude>{{Trad
 
|DE=Template:Traduci |DEs=4
 
|DE=Template:Traduci |DEs=4
 
|EN=Template:Traduci |ENs=0
 
|EN=Template:Traduci |ENs=0
Ligne 109 : Ligne 121 :
  
 
==Usage==
 
==Usage==
<syntaxhighlight lang="xml">{{Traduci | <language_code> | <word> }}
+
<syntaxhighlight lang="html+handlebars">{{Traduci | <language_code> | <word> }}
  
 
where :
 
where :
Ligne 136 : Ligne 148 :
 
Mother
 
Mother
 
Father
 
Father
 +
Siblings
 +
Spouses
 +
Children
 
unknown</syntaxhighlight>
 
unknown</syntaxhighlight>
BEWARE: Case matters !!!
+
 
 +
'''BEWARE''': Case matters !!! (except in languages codes).
  
 
==Examples==
 
==Examples==

Version actuelle datée du 23 août 2022 à 12:57

{{{2}}}

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
		Siblings
		Spouses
		Children
		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 |FR|means in Atysian}} ''Salut!'' →→ Woren Siloy signifie en Atysien Salut!