Difference between revisions of "Template:Trad"

From EncyclopAtys

Jump to: navigation, search
 
(25 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div style="float: right; margin-right: 0em; padding:0.3em; border: thin outset #dfe; font-size: 1.1em; background-color: #fff;font-weight:bold; text-align: right;
+
<includeonly>{{#vardefine:ojo|{{#ifeq: {{{com|}}}{{{ref|}}} | | none | block }} }}<!--
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#def), color-stop(100%,#000));
+
-->{{#vardefine:colour|{{#ifeq: {{{com|}}}{{{ref|}}} | | {{{palette|}}} | Alert }} }}<!--
background: -webkit-gradient(linear, center top, center bottom, from(#fff), to(#def));
+
-->{{#vardefine:ST|{{#ifeq: {{PROTECTIONLEVEL:edit}}| sysop| 6 | }}}}<!--
background: -webkit-linear-gradient(#fff, #def);
+
--><div style="margin:0;padding:0;border: none;"><!------- Bounding box
background: -moz-linear-gradient(#fff, #def);
+
 
background: -o-linear-gradient(#fff, #def);
+
—————————— Language version buttons, on the right side.
background: -ms-linear-gradient(#def, #def);
+
--><div style="float:right;margin:0px;margin-left:1px;left:auto;
background: linear-gradient(#fff, #def);
+
border: #{{ColorAtys|type=light|group={{#var:colour}}}} 2px ridge;padding: 1px 1px 1px 2px;
color: #000; text-shadow: #9ff .1em .1em .5em, #0ff -.1em -.1em .3em, #033 .1em .1em .1em;"><!--
+
background: linear-gradient(to right, #{{ColorAtys|type=bg|group={{#var:colour}}}}, #{{ColorAtys|type=light|group={{#var:colour}}}});"><!--
--> {{#if:{{{DE|}}}|[[:de:{{{DE}}}|<img src="http://atys.wiki.ryzom.com/images/8/8f/De.png" alt="Übersetzung" title="Übersetzung" />]][[de:{{{DE}}}]]<br/>}}<!--
+
--> {{#if:{{{H|}}}{{{ref|}}}
--> {{#if:{{{EN|}}}|[[:en:{{{EN}}}|<img src="http://atys.wiki.ryzom.com/images/c/ce/Gb.png" alt="Translation" title="Translation" />]][[en:{{{EN}}}]]<br/>}}<!--
+
|<!-- Horizontal
--> {{#if:{{{ES|}}}|[[:es:{{{ES}}}|<img src="http://atys.wiki.ryzom.com/images/4/4e/Es.png" alt="Traducción" title="Traducción" />]][[es:{{{ES}}}]]<br/>}}<!--
+
---> {{#if:{{{DE|}}}| [[file:De.png | link=:de:{{{DE}}} | de:{{{DE}}}]]{{Dot|St={{{DEs| }}}}}}}<!--
--> {{#if:{{{FR|}}}|[[:fr:{{{FR}}}|<img src="http://atys.wiki.ryzom.com/images/4/4b/Fr.png" alt="Traduction" title="Traduction" />]][[fr:{{{FR}}}]]<br/>}}<!--
+
---> {{#if:{{{EN|}}}| [[file:Gb.png | link=:en:{{{EN}}} | en:{{{EN}}}]]{{Dot|St={{{ENs| }}}}}}}<!--
--> {{#if:{{{RU|}}}|[[:ru:{{{RU}}}|<img src="http://atys.wiki.ryzom.com/images/f/fb/Ru.png" alt="перевод" title="перевод" />]][[ru:{{{RU}}}]]}}<!--
+
---> {{#if:{{{ES|}}}| [[file:Es.png | link=:es:{{{ES}}} | es:{{{ES}}}]]{{Dot|St={{{ESs| }}}}}}}<!--
--></div><noinclude> &lArr;
+
---> {{#if:{{{FR|}}}| [[file:Fr.png | link=:fr:{{{FR}}} | fr:{{{FR}}}]]{{Dot|St={{{FRs| }}}}}}}<!--
{{Trad | DE =|ES = Template:Trad/Documentación |EN = Template:Trad/Documentation | FR = Template:Trad/Documentation | RU =}}
+
---> {{#if:{{{RU|}}}| [[file:Ru.png | link=:ru:{{{RU}}} | ru:{{{RU}}}]]{{Dot|St={{{RUs| }}}}}}}<!--
{{{{FULLPAGENAME}}/Documentation}} [[Category:Templates]][[Category:Normalized Pages Tools]]</noinclude>
+
---></div>
 +
|<!-- Vertical
 +
---> {{#if:{{{DE|}}}| <div>[[file:De.png | link=:de:{{{DE}}} | de:{{{DE}}}]]{{Dot|St={{{DEs}}}}}</div>}}<!--
 +
---> {{#if:{{{EN|}}}| <div>[[file:Gb.png | link=:en:{{{EN}}} | en:{{{EN}}}]]{{Dot|St={{{ENs}}}}}</div>}}<!--
 +
---> {{#if:{{{ES|}}}| <div>[[file:Es.png | link=:es:{{{ES}}} | es:{{{ES}}}]]{{Dot|St={{{ESs}}}}}</div>}}<!--
 +
---> {{#if:{{{FR|}}}| <div>[[file:Fr.png | link=:fr:{{{FR}}} | fr:{{{FR}}}]]{{Dot|St={{{FRs}}}}}</div>}}<!--
 +
---> {{#if:{{{RU|}}}| <div>[[file:Ru.png | link=:ru:{{{RU}}} | ru:{{{RU}}}]]{{Dot|St={{{RUs}}}}}</div>}}<!--
 +
---></div><!--
 +
--->}}<!--
 +
 
 +
—————————— Translation quality alert banner, left side.
 +
--><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;
 +
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;">&nbsp;[[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|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;
 +
font-size:small">
 +
'''Reference text <small> ( Maintained text, used as reference ) </small>:''' {{{ref|}}}<br/>
 +
'''Notes: {{{com|}}}''' ([[:user_talk:{{REVISIONUSER}}|{{REVISIONUSER}}]],  {{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}}){{clear}}
 +
</div></div></div>
 +
</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>
 +
 
 +
See [[Template:TIP]]
 +
 
 +
=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 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;"
 +
|-
 +
! 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 horizontally and "'''palette'''" to use a theme palette; for the available palettes, see:  [[:Template:ColorAtys]]
 +
 
 +
===Usage===
 +
<pre>{{Trad
 +
|DE = Page |DEs=
 +
|EN = Page |ENs=
 +
|ES = Page |ESs=
 +
|FR = Page |FRs=
 +
|RU = Page |RUs=
 +
|H  =
 +
|palette= Theme
 +
|ref= Page_link
 +
|com= Comment
 +
}}</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=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.
 +
}}</pre>
 +
which gives:
 +
{{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.
 +
}}
 +
 
 +
===Exemple with translation status in horizontal mode, and fyros palette.===
 +
<pre>{{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
 +
}}</pre>
 +
 
 +
which gives:{{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
 +
}}
 +
{{clear}}
 +
===Exemple 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
 +
}}
 +
{{clear}}
 +
{{Last version link}}
 +
[[Category:Templates]]</noinclude>

Latest revision as of 15:00, 12 December 2021

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: (Zorroargh, 2021-12-12)

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

Parameters

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>}}
  • 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 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.
  • 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

{{Trad
|DE = Page |DEs= 
|EN = Page |ENs= 
|ES = Page |ESs= 
|FR = Page |FRs= 
|RU = Page |RUs= 
|H  = 
|palette= Theme
|ref= Page_link
|com= Comment
}}

Exemples

Exemple : This Page (see upper right corner)

{{Trad
|DE = Vorlage:Trad
|EN = Template:Trad 
|ES = Plantilla:Trad 
|FR = Modèle:Trad 
|RU = Шаблон:Trad 
|palette=fyros
}}

Alert Exemple

{{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:

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 ) : This template in Russian
Notes: Significant discrepancies with the reference. To be reread. (Zorroargh, 2021-12-12)


Alert exemple with translation status

{{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:

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 ) : This template in Russian
Notes: Significant discrepancies with the reference. To be reread. (Zorroargh, 2021-12-12)


Exemple with translation status in horizontal mode, and fyros palette.

{{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:
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: (Zorroargh, 2021-12-12)


Exemple in horizontal mode, without translation status

{{Trad
|DE = Vorlage:Trad
|EN = Template:Trad 
|ES = Plantilla:Trad 
|FR = Modèle:Trad 
|RU = Шаблон:Trad 
|H  = はい
|palette=fyros
}}
which gives:
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: (Zorroargh, 2021-12-12)


Last version 2021-12-12•