Template:Trad2/Documentation
From EncyclopAtys
Petits bouton pour passer d'une langue à l'autre.
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 theis purpose.
- The parameters
DEs, ENs, ESs, FRs et RUs
can have values in0, 1, 2, 3, 4, 5
or stay unset. When they are set, a colored dot is displayed to the right of the language flag. The color code is identical to Template:TIP's one:
Code | Résultat | État de la traduction |
---|---|---|
{{Dot|St=0}} |
• | Original |
{{Dot|St=1}} |
• | Traduction demandée |
{{Dot|St=2}} |
• | Traduction en cours |
{{Dot|St=3}} |
• | Traduction en cours de vérification |
{{Dot|St=4}} |
• | Traduit |
{{Dot|St=5}} |
• | Non Traduit ou n'existe pas encore |
{{Dot|St=}} or {{Dot}} |
État inconnu |
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 :