(16 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefine:ojo|{{#ifeq: {{{com|}}}{{{ref|}}} | | none | block }} }} | + | <includeonly>{{#vardefine:ojo|{{#ifeq: {{{com|}}}{{{ref|}}} | | none | block }} }}<!-- |
− | {{#vardefine:colour|{{#ifeq: {{{com|}}}{{{ref|}}} | | {{{palette|}}} | Alert }} }} | + | -->{{#vardefine:colour|{{#ifeq: {{{com|}}}{{{ref|}}} | | {{{palette|}}} | Alert }} }}<!-- |
− | <div style="margin:0;padding:0;border: none;"><!------- | + | -->{{#vardefine:ST|{{#ifeq: {{PROTECTIONLEVEL:edit}}| sysop| 6 | }}}}<!-- |
+ | --><div style="margin:0;padding:0;border: none;"><!------- Bounding box | ||
—————————— Language version buttons, on the right side. | —————————— Language version buttons, on the right side. | ||
− | --><div style="float:right;margin | + | --><div style="float:right;margin:0px;margin-left:1px;left:auto; |
− | border: #{{ColorAtys|type=light|group={{#var:colour}}}} | + | border: #{{ColorAtys|type=light|group={{#var:colour}}}} 2px ridge;padding: 1px 1px 1px 2px; |
background: linear-gradient(to right, #{{ColorAtys|type=bg|group={{#var:colour}}}}, #{{ColorAtys|type=light|group={{#var:colour}}}});"><!-- | background: linear-gradient(to right, #{{ColorAtys|type=bg|group={{#var:colour}}}}, #{{ColorAtys|type=light|group={{#var:colour}}}});"><!-- | ||
--> {{#if:{{{H|}}}{{{ref|}}} | --> {{#if:{{{H|}}}{{{ref|}}} | ||
|<!-- Horizontal | |<!-- Horizontal | ||
− | ---> {{#if:{{{DE|}}}| [[file:De.png | link=:de:{{{DE}}} | de:{{{DE}}}]]{{Dot|St={{{DEs| | + | ---> {{#if:{{{DE|}}}| [[file:De.png | link=:de:{{{DE}}} | de:{{{DE}}}]]{{Dot|St={{{DEs| }}}}}}}<!-- |
− | ---> {{#if:{{{EN|}}}| [[file:Gb.png | link=:en:{{{EN}}} | en:{{{EN}}}]]{{Dot|St={{{ENs| | + | ---> {{#if:{{{EN|}}}| [[file:Gb.png | link=:en:{{{EN}}} | en:{{{EN}}}]]{{Dot|St={{{ENs| }}}}}}}<!-- |
− | ---> {{#if:{{{ES|}}}| [[file:Es.png | link=:es:{{{ES}}} | es:{{{ES}}}]]{{Dot|St={{{ESs| | + | ---> {{#if:{{{ES|}}}| [[file:Es.png | link=:es:{{{ES}}} | es:{{{ES}}}]]{{Dot|St={{{ESs| }}}}}}}<!-- |
− | ---> {{#if:{{{FR|}}}| [[file:Fr.png | link=:fr:{{{FR}}} | fr:{{{FR}}}]]{{Dot|St={{{FRs| | + | ---> {{#if:{{{FR|}}}| [[file:Fr.png | link=:fr:{{{FR}}} | fr:{{{FR}}}]]{{Dot|St={{{FRs| }}}}}}}<!-- |
− | ---> {{#if:{{{RU|}}}| [[file:Ru.png | link=:ru:{{{RU}}} | ru:{{{RU}}}]]{{Dot|St={{{RUs| | + | ---> {{#if:{{{RU|}}}| [[file:Ru.png | link=:ru:{{{RU}}} | ru:{{{RU}}}]]{{Dot|St={{{RUs| }}}}}}}<!-- |
---></div> | ---></div> | ||
|<!-- Vertical | |<!-- Vertical | ||
Line 29: | Line 30: | ||
background:#{{ColorAtys|type=light|group=Alert}}; color:#{{ColorAtys|type=fg|group=Alert}}; | background:#{{ColorAtys|type=light|group=Alert}}; color:#{{ColorAtys|type=fg|group=Alert}}; | ||
text-align:center;font-weight: bold; font-size:x-large;font-variant: small-caps;"> [[file:UnderConstruction.png|32px|left]]{{3DText|text={{{titre|Translation to review}}}}} | text-align:center;font-weight: bold; font-size:x-large;font-variant: small-caps;"> [[file:UnderConstruction.png|32px|left]]{{3DText|text={{{titre|Translation to review}}}}} | ||
− | <div style="text-align:right;font-weight: normal; font-size:x-small;font-variant:none;font-style:italic;">{{{comment| | + | <div style="text-align:right;font-weight: normal; font-size:x-small;font-variant:none;font-style:italic;">{{{comment|Don't blame the contributors, but come and help them 😎}}}</div> |
<div style="border:thin inset #0ff;padding:0em;padding-left:48px;border: #{{ColorAtys|type=dark|group=Alert}} thin inset;background:#{{ColorAtys|type=bg|group=Alert}}; color:#000; text-align:left; | <div style="border:thin inset #0ff;padding:0em;padding-left:48px;border: #{{ColorAtys|type=dark|group=Alert}} thin inset;background:#{{ColorAtys|type=bg|group=Alert}}; color:#000; text-align:left; | ||
font-size:small"> | font-size:small"> | ||
'''Reference text <small> ( Maintained text, used as reference ) </small>:''' {{{ref|}}}<br/> | '''Reference text <small> ( Maintained text, used as reference ) </small>:''' {{{ref|}}}<br/> | ||
− | '''Notes: {{{com|}}} | + | '''Notes: {{{com|}}}''' ([[:user_talk:{{REVISIONUSER}}|{{REVISIONUSER}}]], {{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}}){{clear}} |
</div></div></div> | </div></div></div> | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
Line 48: | Line 49: | ||
<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> | <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> | ||
+ | |||
+ | See [[Template:TIP]] | ||
=Parameters= | =Parameters= | ||
Line 57: | Line 60: | ||
*Page translation status: | *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). | **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]]: | + | **Status parameters <code>DEs, ENs, ESs, FRs et RUs</code> can be <code>0, 1, 2, 3, 4, 5 or nothing</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;" | ::{| class="wikitable" style="text-align:center;" | ||
|- | |- | ||
Line 76: | Line 79: | ||
| <code>XXs= </code> || {{Dot|St=}} || Unknown status. | | <code>XXs= </code> || {{Dot|St=}} || Unknown status. | ||
|} | |} | ||
− | *There are two additional format parameters: "'''H'''" to display the box | + | *There are two additional format parameters: "'''H'''" to display the box horizontally and "'''palette'''" to use a theme palette; for the available palettes, see: [[:Template:ColorAtys]] |
===Usage=== | ===Usage=== | ||
<pre>{{Trad | <pre>{{Trad | ||
− | |DE = Page |DEs= | + | |DE = Page |DEs= |
− | |EN = Page |ENs= | + | |EN = Page |ENs= |
− | |ES = Page | + | |ES = Page |ESs= |
− | |FR = Page | + | |FR = Page |FRs= |
− | |RU = Page | + | |RU = Page |RUs= |
|H = | |H = | ||
− | |palette= | + | |palette= Theme |
− | |ref= | + | |ref= Page_link |
− | |com= | + | |com= Comment |
}}</pre> | }}</pre> | ||
− | + | =Exemples= | |
===Exemple : This Page (see upper right corner)=== | ===Exemple : This Page (see upper right corner)=== | ||
<pre>{{Trad | <pre>{{Trad | ||
Line 130: | Line 133: | ||
<pre>{{Trad | <pre>{{Trad | ||
|DE = Vorlage:Trad | |DE = Vorlage:Trad | ||
− | |DEs= | + | |DEs=4 |
|EN = Template:Trad | |EN = Template:Trad | ||
|ENs=1 | |ENs=1 | ||
Line 138: | Line 141: | ||
|FRs=3 | |FRs=3 | ||
|RU = Шаблон:Trad | |RU = Шаблон:Trad | ||
− | |RUs= | + | |RUs=0 |
|H = | |H = | ||
|palette=fyros | |palette=fyros | ||
Line 147: | Line 150: | ||
{{Trad | {{Trad | ||
|DE = Vorlage:Trad | |DE = Vorlage:Trad | ||
− | |DEs= | + | |DEs=4 |
|EN = Template:Trad | |EN = Template:Trad | ||
|ENs=1 | |ENs=1 | ||
Line 155: | Line 158: | ||
|FRs=3 | |FRs=3 | ||
|RU = Шаблон:Trad | |RU = Шаблон:Trad | ||
− | |RUs= | + | |RUs=0 |
|H = | |H = | ||
|palette=fyros | |palette=fyros | ||
Line 165: | Line 168: | ||
<pre>{{Trad | <pre>{{Trad | ||
|DE = Vorlage:Trad | |DE = Vorlage:Trad | ||
− | |DEs= | + | |DEs=4 |
|EN = Template:Trad | |EN = Template:Trad | ||
|ENs=1 | |ENs=1 | ||
Line 172: | Line 175: | ||
|FRs=3 | |FRs=3 | ||
|RU = Шаблон:Trad | |RU = Шаблон:Trad | ||
− | |RUs= | + | |RUs=0 |
|H = はい | |H = はい | ||
|palette=fyros | |palette=fyros | ||
Line 179: | Line 182: | ||
which gives:{{Trad | which gives:{{Trad | ||
|DE = Vorlage:Trad | |DE = Vorlage:Trad | ||
− | |DEs= | + | |DEs=4 |
|EN = Template:Trad | |EN = Template:Trad | ||
|ENs=1 | |ENs=1 | ||
Line 186: | Line 189: | ||
|FRs=3 | |FRs=3 | ||
|RU = Шаблон:Trad | |RU = Шаблон:Trad | ||
− | |RUs= | + | |RUs=0 |
|H = はい | |H = はい | ||
|palette=fyros | |palette=fyros | ||
}} | }} | ||
{{clear}} | {{clear}} | ||
− | ===Exemple | + | ===Exemple in horizontal mode, without translation status=== |
<pre>{{Trad | <pre>{{Trad | ||
|DE = Vorlage:Trad | |DE = Vorlage:Trad | ||
Line 211: | Line 214: | ||
|palette=fyros | |palette=fyros | ||
}} | }} | ||
− | + | {{clear}} | |
+ | {{Last version link}} | ||
[[Category:Templates]]</noinclude> | [[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.
See Template:TIP
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 or nothing
. 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= |EN = Page |ENs= |ES = Page |ESs= |FR = Page |FRs= |RU = Page |RUs= |H = |palette= Theme |ref= Page_link |com= Comment }}
{{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. (Zorroargh, 2021-12-12)
{{Trad |DE = Vorlage:Trad |DEs=4 |EN = Template:Trad |ENs=1 |ES = Plantilla:Trad |ESs=2 |FR = Modèle:Trad |FRs=3 |RU = Шаблон:Trad |RUs=0 |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. (Zorroargh, 2021-12-12)
{{Trad |DE = Vorlage:Trad |DEs=4 |EN = Template:Trad |ENs=1 |ES = Plantilla:Trad |FR = Modèle:Trad |FRs=3 |RU = Шаблон:Trad |RUs=0 |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: