Vorlage:Traduci: Unterschied zwischen den Versionen

Aus EnzyklopAtys

Wechseln zu: Navigation, Suche
K
 
(4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<onlyinclude>{{ #switch: {{{1|}}}             <!-- TEMPLATE CODE     
+
<onlyinclude>{{#vardefine:Lang|{{uc:{{{1|EN}}}}}}}<!-- TEMPLATE CODE     
-->|de<!--
+
-->{{ #switch:{{#var:Lang}}<!--  
-->|dE<!--
 
-->|De<!--  
 
 
-->|DE={{ #switch: {{{2|}}}<!--  
 
-->|DE={{ #switch: {{{2|}}}<!--  
 
-->|Personal Amber=Persönlicher Bernstein<!--  
 
-->|Personal Amber=Persönlicher Bernstein<!--  
Zeile 27: Zeile 25:
 
-->|Father=Vater<!--  
 
-->|Father=Vater<!--  
 
-->|unknown=unbekannt}}<!--  
 
-->|unknown=unbekannt}}<!--  
-->|es<!--
+
-->|ES={{ #switch: {{{2|}}}<!--  
-->|eS<!--
 
-->|Es<!--
 
-->|ES={{ #switch: {{{2|}}}<!--  
 
 
-->|Personal Amber=Ámbar personal<!--  
 
-->|Personal Amber=Ámbar personal<!--  
 
-->|Name=Nombre<!--  
 
-->|Name=Nombre<!--  
Zeile 54: Zeile 49:
 
-->|Father=Padre<!--  
 
-->|Father=Padre<!--  
 
-->|unknown=desconocido(a)}}<!--  
 
-->|unknown=desconocido(a)}}<!--  
-->|fr<!--
 
-->|fR<!--
 
-->|Fr<!--
 
 
-->|FR={{ #switch: {{{2|}}}<!--  
 
-->|FR={{ #switch: {{{2|}}}<!--  
 
-->|Personal Amber=Ambre personnelle<!--  
 
-->|Personal Amber=Ambre personnelle<!--  
Zeile 81: Zeile 73:
 
-->|Father=Père<!--  
 
-->|Father=Père<!--  
 
-->|unknown=inconnu(e)}}<!--  
 
-->|unknown=inconnu(e)}}<!--  
-->|ru<!--
+
-->|RU={{ #switch: {{{2|}}}<!--  
-->|rU<!--
 
-->|Ru<!--
 
-->|RU={{ #switch: {{{2|}}}<!--  
 
 
-->|Personal Amber=Личный янтарь<!--  
 
-->|Personal Amber=Личный янтарь<!--  
 
-->|Name=Имя<!--  
 
-->|Name=Имя<!--  
Zeile 108: Zeile 97:
 
-->|Father=Отец<!--  
 
-->|Father=Отец<!--  
 
-->|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
Zeile 120: Zeile 109:
  
 
==Usage==
 
==Usage==
<syntaxhighlight lang="xml">{{Traduci | <language_code> | <word> }}
+
<syntaxhighlight lang="html+handlebars">{{Traduci | <language_code> | <word> }}
  
 
where :
 
where :
Zeile 148: Zeile 137:
 
Father
 
Father
 
unknown</syntaxhighlight>
 
unknown</syntaxhighlight>
BEWARE: Case matters !!!
+
 
 +
'''BEWARE''': Case matters !!! (except in languages codes).
  
 
==Examples==
 
==Examples==
Zeile 157: Zeile 147:
 
| 🇩🇪 || <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}}
Zeile 163: Zeile 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 |DE|means in Atysian}} ''Hallo!''</nowiki></code> →→ '''Woren Siloy''' {{Traduci |DE|means in Atysian}} ''Hallo!''
+
Test: <code><nowiki>'''Woren Siloy''' {{Traduci |de|means in Atysian}} ''Salut!''</nowiki></code> →→ '''Woren Siloy''' {{Traduci |de|means in Atysian}} ''Hallo!'' </noinclude>
[[Category:Vorlagen]] </noinclude>
+
 
 +
<noinclude>[[Category:Templates]]</noinclude>

Aktuelle Version vom 29. März 2021, 19:07 Uhr

{{{2}}}
de:Template:Traduci
en:Template:Traduci
es:Template:Traduci
fr:Template:Traduci
ru:Template:Traduci
 
UnderConstruction.png
Übersetzung zur Überprüfung
Gib nicht den Mitwirkenden die Schuld, sondern komm und hilf ihnen. 😎

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 |de|means in Atysian}} ''Salut!'' →→ Woren Siloy bedeutet auf Atysianisch Hallo!