Line 3: | Line 3: | ||
<div style="margin:0;padding:0;border: none;"><!------- Boite englobante | <div style="margin:0;padding:0;border: none;"><!------- Boite englobante | ||
− | + | —————————— Language version buttons, on the right side. | |
--><div style="float:right;margin-right:0em;margin-left:1em;left:auto; | --><div style="float:right;margin-right:0em;margin-left:1em;left:auto; | ||
border: #{{ColorAtys|type=light|group={{#var:colour}}}} medium ridge;padding:0em 0.2em; | border: #{{ColorAtys|type=light|group={{#var:colour}}}} medium ridge;padding:0em 0.2em; | ||
Line 24: | Line 24: | ||
--->}}<!-- | --->}}<!-- | ||
− | + | —————————— Translation quality alert banner, left side. | |
--><div style="visi_bility:{{#var:ojo}};display:{{#var:ojo}};margin-left:0em;margin-right: 0em;width=inherit; | --><div style="visi_bility:{{#var:ojo}};display:{{#var:ojo}};margin-left:0em;margin-right: 0em;width=inherit; | ||
border: #{{ColorAtys|type=light|group=Alert}} medium outset; | border: #{{ColorAtys|type=light|group=Alert}} medium outset; | ||
Line 35: | Line 35: | ||
'''Notes: {{{com|}}}-- [[User:Zorroargh|Zo'ro-Argh]] <sup><small>[[User talk:Zorroargh|Woren Siloy]]</small></sup> 5 septembre 2019 à 15:33 (CEST){{clear}} | '''Notes: {{{com|}}}-- [[User:Zorroargh|Zo'ro-Argh]] <sup><small>[[User talk:Zorroargh|Woren Siloy]]</small></sup> 5 septembre 2019 à 15:33 (CEST){{clear}} | ||
</div></div></div> | </div></div></div> | ||
− | </includeonly | + | </includeonly><noinclude> |
− | + | {{Trad | |
+ | |DE = Vorlage:Trad | ||
+ | |EN = Template:Trad | ||
+ | |ES = Plantilla:Trad | ||
+ | |FR = Modèle:Trad | ||
+ | |RU = Шаблон:Trad | ||
+ | }}<!-- —————————————————— DOCUMENTATION —————————————————— | ||
+ | --><big><big><big>Small buttons to switch from one language to another.</big></big></big> | ||
− | {{{{ | + | <big><big>To be put as high up in the page as possible.</big></big> |
+ | |||
+ | <big>It is possible to transform this tool into an alert banner in case of doubtful translation on the page where this "template" is affixed.</big> | ||
+ | |||
+ | =Parameters= | ||
+ | Use as follows: | ||
+ | |||
+ | <nowiki>{{Trad|<LanguageCode>=<Name of the translated page in language XX>|<Page_Status>= <Colour Code>| H=<Vertical/Horizontal>|palette=<Theme Colour>|ref= <Link to Reference Page> |com= <Comment>}}</nowiki> | ||
+ | |||
+ | *The possible language codes are: DE, EN, ES, FR and RU. | ||
+ | *Page translation status: | ||
+ | **When a language page is not set, the button is not displayed. On the opposite, if set, it will be displayed even if the destination page is empty. the button has no way to know if the destination page exists, is empty, has been translated or not (hence the interest of the status indicator). | ||
+ | **Status parameters <code>DEs, ENs, ESs, FRs et RUs</code> can be <code>0, 1, 2, 3, 4, 5</code>. They are used to display a coloured dot ([[Template:Dot]]) to the right of the language symbol, which indicates the status of the corresponding page. The color code is identical to that of the [[Template:TIP]]: | ||
+ | ::{| class="wikitable" style="text-align:center;" | ||
+ | |- | ||
+ | ! Code !! Résult !! Translation Status | ||
+ | |- | ||
+ | | <code>XXs=0</code> || {{Dot|St=0}} || Original. | ||
+ | |- | ||
+ | | <code>XXs=1</code> || {{Dot|St=1}} || Translation requested. | ||
+ | |- | ||
+ | | <code>XXs=2</code> || {{Dot|St=2}} || Translation in progress. | ||
+ | |- | ||
+ | | <code>XXs=3</code> || {{Dot|St=3}} || Translation under review. | ||
+ | |- | ||
+ | | <code>XXs=4</code> || {{Dot|St=4}} || Translated. | ||
+ | |- | ||
+ | | <code>XXs=5</code> || {{Dot|St=5}} || Not translated or the page doesn't exist yet. | ||
+ | |- | ||
+ | | <code>XXs= </code> || {{Dot|St=}} || Unknown status. | ||
+ | |} | ||
+ | *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]] | ||
+ | |||
+ | ===Usage=== | ||
+ | <pre>{{Trad | ||
+ | |DE = Page |DEs=0 | ||
+ | |EN = Page |ENs=1 | ||
+ | |ES = Page |ESs=2 | ||
+ | |FR = Page |FRs=3 | ||
+ | |RU = Page |RUs=4 | ||
+ | |H = | ||
+ | |palette= Couleur | ||
+ | |ref= Page | ||
+ | |com= Commentaire | ||
+ | }}</pre> | ||
+ | |||
+ | ==Exemples== | ||
+ | ===Exemple : This Page (see upper right corner)=== | ||
+ | <pre>{{Trad | ||
+ | |DE = Vorlage:Trad | ||
+ | |EN = Template:Trad | ||
+ | |ES = Plantilla:Trad | ||
+ | |FR = Modèle:Trad | ||
+ | |RU = Шаблон:Trad | ||
+ | |palette=fyros | ||
+ | }}</pre> | ||
+ | |||
+ | ===Alert Exemple === | ||
+ | <pre>{{Trad | ||
+ | |DE = Vorlage:Trad | ||
+ | |EN = Template:Trad | ||
+ | |ES = Plantilla:Trad | ||
+ | |FR = Modèle:Trad | ||
+ | |RU = Шаблон:Trad | ||
+ | |H = | ||
+ | |palette=fyros | ||
+ | |ref=[[:ru:Template:Trad|This template in Russian]] | ||
+ | |com=Significant discrepancies with the reference. To be reread. | ||
+ | }}</pre> | ||
+ | which gives: | ||
+ | {{Trad | ||
+ | |DE = Vorlage:Trad | ||
+ | |EN = Template:Trad | ||
+ | |ES = Plantilla:Trad | ||
+ | |FR = Modèle:Trad | ||
+ | |RU = Шаблон:Trad | ||
+ | |H = | ||
+ | |palette=fyros | ||
+ | |ref=[[:ru:Template:Trad|This template in Russian]] | ||
+ | |com=Significant discrepancies with the reference. To be reread. | ||
+ | }} | ||
+ | |||
+ | ===Alert exemple with translation status=== | ||
+ | <pre>{{Trad | ||
+ | |DE = Vorlage:Trad | ||
+ | |DEs=0 | ||
+ | |EN = Template:Trad | ||
+ | |ENs=1 | ||
+ | |ES = Plantilla:Trad | ||
+ | |ESs=2 | ||
+ | |FR = Modèle:Trad | ||
+ | |FRs=3 | ||
+ | |RU = Шаблон:Trad | ||
+ | |RUs=4 | ||
+ | |H = | ||
+ | |palette=fyros | ||
+ | |ref=[[:ru:Template:Trad|This template in Russian]] | ||
+ | |com=Significant discrepancies with the reference. To be reread. | ||
+ | }}</pre> | ||
+ | which gives: | ||
+ | {{Trad | ||
+ | |DE = Vorlage:Trad | ||
+ | |DEs=0 | ||
+ | |EN = Template:Trad | ||
+ | |ENs=1 | ||
+ | |ES = Plantilla:Trad | ||
+ | |ESs=2 | ||
+ | |FR = Modèle:Trad | ||
+ | |FRs=3 | ||
+ | |RU = Шаблон:Trad | ||
+ | |RUs=4 | ||
+ | |H = | ||
+ | |palette=fyros | ||
+ | |ref=[[:ru:Template:Trad|This template in Russian]] | ||
+ | |com=Significant discrepancies with the reference. To be reread. | ||
+ | }} | ||
+ | |||
+ | ===Exemple with translation status in horizontal mode, and fyros palette.=== | ||
+ | <pre>{{Trad | ||
+ | |DE = Vorlage:Trad | ||
+ | |DEs=0 | ||
+ | |EN = Template:Trad | ||
+ | |ENs=1 | ||
+ | |ES = Plantilla:Trad | ||
+ | |FR = Modèle:Trad | ||
+ | |FRs=3 | ||
+ | |RU = Шаблон:Trad | ||
+ | |RUs=4 | ||
+ | |H = はい | ||
+ | |palette=fyros | ||
+ | }}</pre> | ||
+ | |||
+ | which gives:{{Trad | ||
+ | |DE = Vorlage:Trad | ||
+ | |DEs=0 | ||
+ | |EN = Template:Trad | ||
+ | |ENs=1 | ||
+ | |ES = Plantilla:Trad | ||
+ | |FR = Modèle:Trad | ||
+ | |FRs=3 | ||
+ | |RU = Шаблон:Trad | ||
+ | |RUs=4 | ||
+ | |H = はい | ||
+ | |palette=fyros | ||
+ | }} | ||
+ | {{clear}} | ||
+ | ===Exemple with translation status in horizontal mode, without translation status=== | ||
+ | <pre>{{Trad | ||
+ | |DE = Vorlage:Trad | ||
+ | |EN = Template:Trad | ||
+ | |ES = Plantilla:Trad | ||
+ | |FR = Modèle:Trad | ||
+ | |RU = Шаблон:Trad | ||
+ | |H = はい | ||
+ | |palette=fyros | ||
+ | }}</pre> | ||
+ | |||
+ | which gives:{{Trad | ||
+ | |DE = Vorlage:Trad | ||
+ | |EN = Template:Trad | ||
+ | |ES = Plantilla:Trad | ||
+ | |FR = Modèle:Trad | ||
+ | |RU = Шаблон:Trad | ||
+ | |H = はい | ||
+ | |palette=fyros | ||
+ | }} | ||
+ | |||
+ | [[Category:Templates]]</noinclude> |
Small buttons to switch from one language to another.
To be put as high up in the page as possible.
It is possible to transform this tool into an alert banner in case of doubtful translation on the page where this "template" is affixed.
Use as follows:
{{Trad|<LanguageCode>=<Name of the translated page in language XX>|<Page_Status>= <Colour Code>| H=<Vertical/Horizontal>|palette=<Theme Colour>|ref= <Link to Reference Page> |com= <Comment>}}
DEs, ENs, ESs, FRs et RUs
can be 0, 1, 2, 3, 4, 5
. They are used to display a coloured dot (Template:Dot) to the right of the language symbol, which indicates the status of the corresponding page. The color code is identical to that of the Template:TIP:Code | Résult | Translation Status |
---|---|---|
XXs=0 |
• | Original. |
XXs=1 |
• | Translation requested. |
XXs=2 |
• | Translation in progress. |
XXs=3 |
• | Translation under review. |
XXs=4 |
• | Translated. |
XXs=5 |
• | Not translated or the page doesn't exist yet. |
XXs= |
Unknown status. |
{{Trad |DE = Page |DEs=0 |EN = Page |ENs=1 |ES = Page |ESs=2 |FR = Page |FRs=3 |RU = Page |RUs=4 |H = |palette= Couleur |ref= Page |com= Commentaire }}
{{Trad |DE = Vorlage:Trad |EN = Template:Trad |ES = Plantilla:Trad |FR = Modèle:Trad |RU = Шаблон:Trad |palette=fyros }}
{{Trad |DE = Vorlage:Trad |EN = Template:Trad |ES = Plantilla:Trad |FR = Modèle:Trad |RU = Шаблон:Trad |H = |palette=fyros |ref=[[:ru:Template:Trad|This template in Russian]] |com=Significant discrepancies with the reference. To be reread. }}
which gives:
Reference text ( Maintained text, used as reference ) : This template in Russian
Notes: Significant discrepancies with the reference. To be reread. (Dorothée, 2019-09-22)
{{Trad |DE = Vorlage:Trad |DEs=0 |EN = Template:Trad |ENs=1 |ES = Plantilla:Trad |ESs=2 |FR = Modèle:Trad |FRs=3 |RU = Шаблон:Trad |RUs=4 |H = |palette=fyros |ref=[[:ru:Template:Trad|This template in Russian]] |com=Significant discrepancies with the reference. To be reread. }}
which gives:
Reference text ( Maintained text, used as reference ) : This template in Russian
Notes: Significant discrepancies with the reference. To be reread. (Dorothée, 2019-09-22)
{{Trad |DE = Vorlage:Trad |DEs=0 |EN = Template:Trad |ENs=1 |ES = Plantilla:Trad |FR = Modèle:Trad |FRs=3 |RU = Шаблон:Trad |RUs=4 |H = はい |palette=fyros }}which gives:
{{Trad |DE = Vorlage:Trad |EN = Template:Trad |ES = Plantilla:Trad |FR = Modèle:Trad |RU = Шаблон:Trad |H = はい |palette=fyros }}which gives: