Difference between revisions of "Template:Trad2/Documentation"

From EncyclopAtys

Jump to: navigation, search
(Created page with "<noinclude> {{Trad2 |DE =Vorlage:Trad |DEs=4 |EN =Template:Trad |ENs=4 |ES =Plantilla:Trad |ESs=4 |FR =Modèle:Trad |FRs=0 |RU =Шаблон:Trad |RUs=4 }}</noinclude> Pe...")
 
 
(6 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
|DE =Vorlage:Trad
 
|DE =Vorlage:Trad
 
|DEs=4
 
|DEs=4
|EN =Template:Trad
+
|EN =Template:Trad2
 
|ENs=4
 
|ENs=4
 
|ES =Plantilla:Trad  
 
|ES =Plantilla:Trad  
 
|ESs=4
 
|ESs=4
|FR =Modèle:Trad
+
|FR =Modèle:Trad2
 
|FRs=0
 
|FRs=0
 
|RU =Шаблон:Trad  
 
|RU =Шаблон:Trad  
 
|RUs=4
 
|RUs=4
 
}}</noinclude>
 
}}</noinclude>
Petits bouton pour passer d'une langue à l'autre.
+
Small buttons to switch from one language to another.  
 
=Paramètres=
 
=Paramètres=
Utilser comme suit:
+
Use as follows:
  
  {<nowiki>{</nowiki>Trad|<Code_Langue>=<Nom de la page traduite dans la langue XX>|<Statut_de_la page>= <Code-couleur>...}}
+
  <nowiki>{{Trad|<LanguageCode>=<Name of the translated page in language XX>|<Page_Status>= <Color-code>...}}</nowiki>
 
+
*The possible language codes are: DE, EN, ES, FR et RU.<br />
*Les codes reconnus sont DE, EN, ES, FR et RU.<br />
+
*There are two additional  format parameters: "'''H'''" to display the box horiziontally and "'''palette'''" to use a theme palette; for the available palettes, see:  [[:Template:ColorAtys]]
*Ce modèle peut s'enrichir de deux autres paramètres: '''"H"''' pour afficher les boites horizontalement et '''"palette"''' pour imposer une couleur thématique. Pour les palettes disponibles voir:  [[:Modèle: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; the page status code has to be set for this purpose.
*Si une variable linguistique n'est pas renseignée, le bouton n'est pas affiché. Par contre, il sera affiché, même si le lien n’aboutit sur aucune page. De plus, le bouton ne «saura» pas si le texte a été traduit ou simplement recopié.
+
* The parameters <code>DEs, ENs, ESs, FRs et RUs</code> can have  values in <code>0, 1, 2, 3, 4, 5</code> or stay unset. When they are set, a colored dot is displayed to the right of the language flag; when not set no dot is displayed.. The color code is identical to [[Template:TIP]]'s one:
*Les paramètres <code>DEs, ENs, ESs, FRs et RUs</code> peuvent prendre les valeurs <code>0, 1, 2, 3, 4, 5</code>. Ils permettent d'afficher à droite du symbole de langue un point de couleur [[Modèle:Dot]] , qui informe sur l'état de la page correspondante. Le code de couleur est identique à celui du [[Modèle:TIP]] :
 
  
 
{| class="wikitable"  style="text-align:center;"  
 
{| class="wikitable"  style="text-align:center;"  
Line 29: Line 28:
 
| <code><nowiki>{{Dot|St=0}}</nowiki></code> ||  {{Dot|St=0}}  || Original  
 
| <code><nowiki>{{Dot|St=0}}</nowiki></code> ||  {{Dot|St=0}}  || Original  
 
|-
 
|-
| <code><nowiki>{{Dot|St=1}}</nowiki></code> ||  {{Dot|St=1}}  || Traduction demandée
+
| <code><nowiki>{{Dot|St=1}}</nowiki></code> ||  {{Dot|St=1}}  || Translation requested
 
|-
 
|-
| <code><nowiki>{{Dot|St=2}}</nowiki></code> ||  {{Dot|St=2}} ||  Traduction en cours
+
| <code><nowiki>{{Dot|St=2}}</nowiki></code> ||  {{Dot|St=2}} ||  Translation in progress
 
|-
 
|-
| <code><nowiki>{{Dot|St=3}}</nowiki></code> ||  {{Dot|St=3}} || Traduction en cours de vérification
+
| <code><nowiki>{{Dot|St=3}}</nowiki></code> ||  {{Dot|St=3}} || Translation  verification, proof reading
 
|-
 
|-
| <code><nowiki>{{Dot|St=4}}</nowiki></code> ||  {{Dot|St=4}}  || Traduit
+
| <code><nowiki>{{Dot|St=4}}</nowiki></code> ||  {{Dot|St=4}}  || Translated
 
|-
 
|-
| <code><nowiki>{{Dot|St=5}}</nowiki></code> ||  {{Dot|St=5}} || Non Traduit ou n'existe pas encore
+
| <code><nowiki>{{Dot|St=5}}</nowiki></code> ||  {{Dot|St=5}} || Not translated or does not exist
 
|-
 
|-
| <code><nowiki>{{Dot|St=}}</nowiki> or <nowiki>{{Dot}}</nowiki></code> ||  {{Dot|St=}} || État inconnu
+
| <code><nowiki>{{Dot|St=}}</nowiki> or <nowiki>{{Dot}}</nowiki></code> ||  {{Dot|St=}} || Unknown Status
 
|}
 
|}
 
  
 
=Usage=
 
=Usage=
Line 61: Line 59:
  
 
=Exemples=
 
=Exemples=
*Exemple pratique utilisé dans ce même modèle (comme montré plus haut).:
+
*Exemple used in this page (top right):
  <nowiki>{{Trad2| DE=Vorlage:Trad| ES=Plantilla:Trad | EN=Template:Trad | FR=Modèle:Trad | RU=Шаблон:Trad||DEs=4|ENs=4|ESs=4|FRs=0|RUs=4}}</nowiki>  
+
  <nowiki>{{Trad2
 +
| DE=Vorlage:Trad |DEs=4
 +
| ES=Plantilla:Trad |ENs=4
 +
| EN=Template:Trad |ESs=4
 +
| FR=Modèle:Trad |FRs=0
 +
| RU=Шаблон:Trad |RUs=4}}</nowiki>  
  
  
*Version horizontale avec la palette "fyros":
+
*Horizontal version, with "fyros" palette:
 
<br />
 
<br />
 
  <nowiki>{{Trad2| 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>{{Trad2| 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  
DEs=4|ENs=4|ESs=4|FRs=0|RUs=4}}</nowiki> {{clear}}
+
|DEs=4|ENs=4|ESs=4|FRs=0|RUs=4}}</nowiki> {{clear}}
 
:donne :
 
:donne :
 
{{Trad2| 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 |DEs=4|ENs=4|ESs=4|FRs=0|RUs=4}}
 
{{Trad2| 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 |DEs=4|ENs=4|ESs=4|FRs=0|RUs=4}}
Line 75: Line 78:
  
  
<noinclude>[[catégorie:modèles]]</noinclude>
+
<noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 09:19, 4 September 2019

de:Vorlage:Trad 


en:Template:Trad2 
es:Plantilla:Trad 
fr:Modèle:Trad2 
ru:Шаблон:Trad 


Small buttons to switch from one language to another.

Paramètres

Use as follows:

{{Trad|<LanguageCode>=<Name of the translated page in language XX>|<Page_Status>= <Color-code>...}}
  • The possible language codes are: DE, EN, ES, FR et RU.
  • There are two additional format parameters: "H" to display the box horiziontally and "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; the page status code has to be set for this purpose.
  • The parameters DEs, ENs, ESs, FRs et RUs can have values in 0, 1, 2, 3, 4, 5 or stay unset. When they are set, a colored dot is displayed to the right of the language flag; when not set no dot is displayed.. The color code is identical to Template:TIP's one:
Code Résultat État de la traduction
{{Dot|St=0}} Original
{{Dot|St=1}} Translation requested
{{Dot|St=2}} Translation in progress
{{Dot|St=3}} Translation verification, proof reading
{{Dot|St=4}} Translated
{{Dot|St=5}} Not translated or does not exist
{{Dot|St=}} or {{Dot}} Unknown Status

Usage

{{Trad2 
|DE =
|DEs =
|EN =
|ENs =
|ES =
|ESs =
|FR =
|FRs =
|RU =
|RUs =
|H  =
|palette=
}}

Exemples

  • Exemple used in this page (top right):
{{Trad2
| DE=Vorlage:Trad |DEs=4
| ES=Plantilla:Trad |ENs=4
| EN=Template:Trad |ESs=4
| FR=Modèle:Trad |FRs=0
| RU=Шаблон:Trad |RUs=4}} 


  • Horizontal version, with "fyros" palette:


{{Trad2| 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 
|DEs=4|ENs=4|ESs=4|FRs=0|RUs=4}} 
donne :
•  de:Vorlage:Trad 

 •  en:Template:Trad   •  es:Plantilla:Trad   •  fr:Modèle:Trad   •  ru:Шаблон:Trad 

 •