Difference between revisions of "Template:Trad/Documentation"

From EncyclopAtys

Jump to: navigation, search
(page layout remake for better friendliness)
Line 1: Line 1:
 +
 +
 +
 +
____________________________________________________________________________________
 +
 +
<noinclude>
 +
{{Trad
 +
|DE = Vorlage:Trad
 +
|ES = Plantilla:Trad
 +
|EN = Template:Trad
 +
|FR = Modèle:Trad
 +
|RU = RU=Шаблоны:Trad
 +
}}</noinclude>
 +
 
Small button to switch from one language to another.
 
Small button to switch from one language to another.
  
Used as follows:
+
=Parameters=
 +
Use as follows:
 +
 
 +
{<nowiki>{</nowiki>Trad|<LanguageCode>=<Name of the translated page in laguage XX>|etc...}}
 +
 
 +
*The possible language codes are: DE, EN, ES, FR et RU.<br />
 +
*There are two additional  format parameters: "'''H'''" to display the box horiziontally horizontalement et "'''palette'''" to use a theme palette. for the available palettes, see:  [[:Template:ColorAtys]]
 +
*When  a language page is not set, the button is not displayed. On the opposite it will be displayed even if the destination page is empty. the button has no way to know if the destination page has been translated or not.
 +
 +
=Usage=
 +
<pre><nowiki>
 +
{{Trad
 +
|DE =
 +
|ES =
 +
|EN =
 +
|FR =
 +
|RU =
 +
|H  =
 +
|palette=
 +
}}</nowiki></pre>
  
{<nowiki>{</nowiki> Trad | <LanguagesCodes> = <PageNameOfTranslated> | etc ...}}
+
=Exemples=
 +
*Exemple used in this page (top right):
 +
{<nowiki>{</nowiki>Trad| DE=Vorlage:Trad| ES=Plantilla:Trad | EN=Template:Trad | FR=Modèle:Trad | RU=Шаблоны:Trad}} comme montré plus haut
  
Recognized codes are DE, EN, ES, FR and RU.
+
*Horizontal version horizontale, with "fyros" palette:
 +
{{Trad| DE=Vorlage:Trad| ES=Plantilla:Trad | EN=Template:Trad | FR=Modèle:Trad | RU=Шаблоны:Trad |H= Ja, Yes, Si, Oui, Da and every no blank text|palette=fyros }}
 +
{<nowiki>{</nowiki>Trad| DE=Vorlage:Trad| ES=Plantilla:Trad | EN=Template:Trad | FR=Modèle:Trad | RU=Шаблоны:Trad |H Ja, Yes, Si, Oui, Da  and every no blank text|palette=fyros}} donne :
  
example:
 
  
{<nowiki> {</nowiki>Trad | DE =|ES = Template:Trad/Documentación |EN = Template:Trad/Documentation | FR = Template:Trad/Documentation | RU =}}
 
  
giving to right (below here):
 
  
{{Trad | DE =|ES = Template:Trad/Documentación |EN = Template:Trad/Documentation | FR = Template:Trad/Documentation | RU =}}
 
 
<noinclude>[[category:templates]]</noinclude>
 
<noinclude>[[category:templates]]</noinclude>

Revision as of 10:28, 26 May 2019


____________________________________________________________________________________


de:Vorlage:Trad
en:Template:Trad
es:Plantilla:Trad
fr:Modèle:Trad
ru:RU=Шаблоны:Trad
 
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, 2019-05-26)


Small button to switch from one language to another.

Parameters

Use as follows:

{{Trad|<LanguageCode>=<Name of the translated page in laguage XX>|etc...}}
  • The possible language codes are: DE, EN, ES, FR et RU.
  • There are two additional format parameters: "H" to display the box horiziontally horizontalement et "palette" to use a theme palette. for the available palettes, see: Template:ColorAtys
  • When a language page is not set, the button is not displayed. On the opposite it will be displayed even if the destination page is empty. the button has no way to know if the destination page has been translated or not.

Usage

{{Trad 
|DE =
|ES =
|EN =
|FR =
|RU =
|H  =
|palette=
}}

Exemples

  • Exemple used in this page (top right):

{{Trad| DE=Vorlage:Trad| ES=Plantilla:Trad | EN=Template:Trad | FR=Modèle:Trad | RU=Шаблоны:Trad}} comme montré plus haut

  • Horizontal version horizontale, with "fyros" palette:
de:Vorlage:Trad en:Template:Trad es:Plantilla:Trad fr:Modèle:Trad ru:Шаблоны:Trad
 
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, 2019-05-26)

{{Trad| DE=Vorlage:Trad| ES=Plantilla:Trad | EN=Template:Trad | FR=Modèle:Trad | RU=Шаблоны:Trad |H Ja, Yes, Si, Oui, Da and every no blank text|palette=fyros}} donne :