Difference between revisions of "Template:Traduci"

From EncyclopAtys

Jump to: navigation, search
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{Trad
+
<onlyinclude>{{#vardefine:Lang|{{uc:{{{1|EN}}}}}}}<!-- TEMPLATE CODE   
 +
-->{{ #switch:{{#var:Lang}}<!--
 +
-->|DE={{ #switch: {{{2|}}}<!--
 +
-->|Personal Amber=Persönlicher Bernstein<!--
 +
-->|Name=Name<!--
 +
-->|Title=Titel<!--
 +
-->|Role=Rolle<!--
 +
-->|Meaning=Bedeutung<!--
 +
-->|means in Atysian=bedeutet auf Atysianisch<!--
 +
-->|Race=Rasse<!--
 +
-->|Sex=Geschlecht<!--
 +
-->|Genre=Genre<!--
 +
-->|Gender=Geschlecht<!--
 +
-->|Nation=Nation<!--
 +
-->|Nationality=Nationalität<!--
 +
-->|Organization=Organisation<!--
 +
-->|Worship=Anbetung<!--
 +
-->|Cult=Kult<!--
 +
-->|Faction=Fraktion<!--
 +
-->|Guild=Gilde<!--
 +
-->|Rank=Rang<!--
 +
-->|Birth=Geburt<!--
 +
-->|Death=Tod<!--
 +
-->|Mother=Mutter<!--
 +
-->|Father=Vater<!--
 +
-->|unknown=unbekannt}}<!--
 +
-->|ES={{ #switch: {{{2|}}}<!--
 +
-->|Personal Amber=Ámbar personal<!--
 +
-->|Name=Nombre<!--
 +
-->|Title=Título<!--
 +
-->|Role=Papel<!--
 +
-->|Meaning=Significa<!--
 +
-->|means in Atysian=significa en Atisiano<!--
 +
-->|Race=Raza<!--
 +
-->|Sex=Sexo<!--
 +
-->|Genre=Género<!--
 +
-->|Gender=Género<!--
 +
-->|Nation=Nación<!--
 +
-->|Nationality=Nacionalidad<!--
 +
-->|Organization=Organización<!--
 +
-->|Worship=Culto<!--
 +
-->|Cult=Culto<!--
 +
-->|Faction=Facción<!--
 +
-->|Guild=Gremio<!--
 +
-->|Rank=Rango<!--
 +
-->|Birth=Nacimiento<!--
 +
-->|Death=Muerte<!--
 +
-->|Mother=Madre<!--
 +
-->|Father=Padre<!--
 +
-->|unknown=desconocido(a)}}<!--
 +
-->|FR={{ #switch: {{{2|}}}<!--
 +
-->|Personal Amber=Ambre personnelle<!--
 +
-->|Name=Nom<!--
 +
-->|Title=Titre<!--
 +
-->|Role=Rôle<!--
 +
-->|Meaning=Signification<!--
 +
-->|means in Atysian=signifie en Atysien<!--
 +
-->|Race=Race<!--
 +
-->|Sex=Sexe<!--
 +
-->|Genre=Genre<!--
 +
-->|Gender=Sexe<!--
 +
-->|Nation=Nation<!--
 +
-->|Nationality=Nationalité<!--
 +
-->|Organization=Organisation<!--
 +
-->|Worship=Culte<!--
 +
-->|Cult=Culte<!--
 +
-->|Faction=Faction<!--
 +
-->|Guild=Guilde<!--
 +
-->|Rank=Rang<!--
 +
-->|Birth=Naissance<!--
 +
-->|Death=Décès<!--
 +
-->|Mother=Mère<!--
 +
-->|Father=Père<!--
 +
-->|unknown=inconnu(e)}}<!--
 +
-->|RU={{ #switch: {{{2|}}}<!--
 +
-->|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=неизвестный(ая)}}<!--
 +
-->|#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
Line 7: Line 105:
 
}}
 
}}
 
==Translation from english template==
 
==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 />
+
This template 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 template porting.<br />
The template has two parameters: the laguage to translate to, and the word or word sequence to translate.
+
The template has two parameters: the language to translate to, and the word or word sequence to translate.
  
 
==Usage==
 
==Usage==
<syntaxhighlight lang="xml">{{Traduci | <language_code> | <word> }}
+
<syntaxhighlight lang="html+handlebars">{{Traduci | <language_code> | <word> }}
  
 
where :
 
where :
Line 20: Line 118:
 
Title
 
Title
 
Role
 
Role
 +
Meaning
 +
means in Atysian
 
Race
 
Race
 
Sex
 
Sex
Line 37: Line 137:
 
Father
 
Father
 
unknown</syntaxhighlight>
 
unknown</syntaxhighlight>
BEWARE: Case matters !!!
+
 
 +
'''BEWARE''': Case matters !!! (except in languages codes).
  
 
==Examples==
 
==Examples==
Line 44: Line 145:
 
| 🇬🇧 || <code><nowiki>{{Traduci |gb|Mother}}</nowiki></code> || {{Traduci |gb|Mother}}
 
| 🇬🇧 || <code><nowiki>{{Traduci |gb|Mother}}</nowiki></code> || {{Traduci |gb|Mother}}
 
|-
 
|-
| 🇩🇪 || <code><nowiki>{{Traduci |DE|Sex}}</nowiki></code> || {{Traduci |DE|Sex}}
+
| 🇩🇪 || <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}}
 
|-
 
|-
 
| 🇷🇺 || <code><nowiki>{{Traduci |RU|Faction}}</nowiki></code> || {{Traduci |RU|Faction}}
 
| 🇷🇺 || <code><nowiki>{{Traduci |RU|Faction}}</nowiki></code> || {{Traduci |RU|Faction}}
|} </noinclude>
+
|}  
 
+
Test: <code><nowiki>'''Woren Siloy''' {{Traduci |en|means in Atysian}} ''Salut!''</nowiki></code> →→ '''Woren Siloy''' {{Traduci |en|means in Atysian}} ''Hello!'' </noinclude>
<includeonly>{{ #switch: {{{1|}}}
 
|DE=
 
{{ #switch: {{{2|}}}
 
|Personal Amber=Persönlicher Bernstein
 
|Name=Name
 
|Title=Titel
 
|Role=Rolle
 
|Race=Rasse
 
|Sex=Geschlecht
 
|Genre=Genre
 
|Gender=Geschlecht
 
|Nation=Nation
 
|Nationality=Nationalität
 
|Organization=Organisation
 
|Worship=Anbetung
 
|Cult=Kult
 
|Faction=Fraktion
 
|Guild=Gilde
 
|Rank=Rang
 
|Birth=Geburt
 
|Death=Tod
 
|Mother=Mutter
 
|Father=Vater
 
|unknown=unbekannt  }}
 
|ES=
 
{{ #switch: {{{2|}}}
 
|Personal Amber=Ámbar personal
 
|Name=Nombre
 
|Title=Título
 
|Role=Papel
 
|Race=Raza
 
|Sex=Sexo
 
|Genre=Género
 
|Gender=Género
 
|Nation=Nación
 
|Nationality=Nacionalidad
 
|Organization=Organización
 
|Worship=Culto
 
|Cult=Culto
 
|Faction=Facción
 
|Guild=Gremio
 
|Rank=Rango
 
|Birth=Nacimiento
 
|Death=Muerte
 
|Mother=Madre
 
|Father=Padre
 
|unknown=desconocido(a)    }}
 
|FR=
 
{{ #switch: {{{2|}}}
 
|Personal Amber=Ambre personnelle
 
|Name=Nom
 
|Title=Titre
 
|Role=Rôle
 
|Race=Race
 
|Sex=Sexe
 
|Genre=Genre
 
|Gender=Sexe
 
|Nation=Nation
 
|Nationality=Nationalité
 
|Organization=Organisation
 
|Worship=Culte
 
|Cult=Culte
 
|Faction=Faction
 
|Guild=Guilde
 
|Rank=Rang
 
|Birth=Naissance
 
|Death=Décès
 
|Mother=Mère
 
|Father=Père
 
|unknown=inconnu(e)    }}
 
|RU=
 
{{ #switch: {{{2|}}}
 
|Personal Amber=Личный янтарь
 
|Name=Имя
 
|Title=Название
 
|Role=Роль
 
|Race=Порода
 
|Sex=Секс
 
|Genre=Жанр
 
|Gender=Пол
 
|Nation=Нация
 
|Nationality=Гражданство
 
|Organization=Организация
 
|Worship=Поклонение
 
|Cult=Культ
 
|Faction=Фракция
 
|Guild=Гильдия
 
|Rank=Чин
 
|Birth=Рождение
 
|Death=Смерть
 
|Mother=Мать
 
|Father=Отец
 
|unknown=неизвестный(ая)      }}
 
| #default ={{{2}}}
 
}}</includeonly>
 
  
 
<noinclude>[[Category:Templates]]</noinclude>
 
<noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 16:28, 6 May 2021

{{{2}}}
de:Template:Traduci
en:Template:Traduci
es:Template:Traduci
fr:Template:Traduci
ru:Template:Traduci
 
UnderConstruction.png
Translation to review
Don't blame the contributors, but come and help them 😎

Reference text ( Maintained text, used as reference ) :
Notes: (Dorothée, 2021-05-06)

Translation from english template

This template 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 template porting.
The template has two parameters: the language 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 Atysian Hello!