Modèle:Traduci : Différence entre versions

De EncyclopAtys

(Examples)
Ligne 1 : Ligne 1 :
<noinclude>{{Trad
+
<includeonly>{{ #switch: {{{1|}}}      <!--            TEMPLATE CODE    -->
|DE=Template:Traduci |DEs=4
 
|EN=Template:Traduci |ENs=0
 
|ES=Template:Traduci|ESs=4
 
|FR=Template:Traduci|FRs=4
 
|RU=Template:Traduci|RUs=4
 
}}
 
==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.<br />
 
The template has two parameters: the laguage to translate to, and the word or word sequence to translate.
 
 
 
==Usage==
 
<syntaxhighlight lang="xml">{{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</syntaxhighlight>
 
BEWARE: Case matters !!!
 
 
 
==Examples==
 
{| class="wikitable"
 
|-
 
| 🇬🇧 || <code><nowiki>{{Traduci |gb|Mother}}</nowiki></code> || {{Traduci |gb|Mother}}
 
|-
 
| 🇩🇪 || <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 |FR|Birth}}</nowiki></code> || {{Traduci |FR|Birth}}
 
|-
 
| 🇷🇺 || <code><nowiki>{{Traduci |RU|Faction}}</nowiki></code> || {{Traduci |RU|Faction}}
 
|}
 
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    -->
 
 
|de       
 
|de       
 
|dE       
 
|dE       
Ligne 164 : Ligne 108 :
 
-->|Father=Отец<!--  
 
-->|Father=Отец<!--  
 
-->|unknown=неизвестный(ая)}}<!--  
 
-->|unknown=неизвестный(ая)}}<!--  
-->| #default =Unknown language, I cant translate}}</onlyinclude>
+
-->| #default =Unknown language, I cant translate}}</includeonly><noinclude>{{Trad
 +
|DE=Template:Traduci |DEs=4
 +
|EN=Template:Traduci |ENs=0
 +
|ES=Template:Traduci|ESs=4
 +
|FR=Template:Traduci|FRs=4
 +
|RU=Template:Traduci|RUs=4
 +
}}
 +
==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.<br />
 +
The template has two parameters: the laguage to translate to, and the word or word sequence to translate.
 +
 
 +
==Usage==
 +
<syntaxhighlight lang="xml">{{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</syntaxhighlight>
 +
BEWARE: Case matters !!!
 +
 
 +
==Examples==
 +
{| class="wikitable"
 +
|-
 +
| 🇬🇧 || <code><nowiki>{{Traduci |gb|Mother}}</nowiki></code> || {{Traduci |gb|Mother}}
 +
|-
 +
| 🇩🇪 || <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 |FR|Birth}}</nowiki></code> || {{Traduci |FR|Birth}}
 +
|-
 +
| 🇷🇺 || <code><nowiki>{{Traduci |RU|Faction}}</nowiki></code> || {{Traduci |RU|Faction}}
 +
|}
 +
Test: <code><nowiki>'''Woren Siloy''' {{Traduci |FR|means in Atysian}} ''Salut!''</nowiki></code> →→ '''Woren Siloy''' {{Traduci |Fr|means in Atysian}} ''Salut!'' </noinclude>
 +
 
 
<noinclude>[[Category:Templates]]</noinclude>
 
<noinclude>[[Category:Templates]]</noinclude>

Version du 20 mars 2021 à 19:57

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

🇬🇧 {{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!