Template:Avancement: Difference between revisions

From Baka-Tsuki
Jump to navigation Jump to search
Shunesburg69 (talk | contribs)
No edit summary
Shunesburg69 (talk | contribs)
No edit summary
Line 1: Line 1:
<div style="display:inline;">{{{1}}}%&nbsp;</div><div style="display:inline;">
<div style=" width:25%; border:10px solid white; clear:both; float:right; text-align:center;">
{| style="border:1px solid black;" cellspacing=1 width=100px
<div style=" width:100%; border:2px solid black;">
| height=2px width="{{#expr:({{{1}}}+1)}}%" bgcolor="{{{2}}}"|
  <p>
|
  <big>
|}</div>
  '''{{{text|En cours de traduction}}}'''
<noinclude>
  </big>
Ce modèle sert à afficher le pourcentage d'un avancement.<br><br>
  </p>
<nowiki>{{avancement|POURCENTAGE|COULEUR}}</nowiki><br><br>
<div style=" width:75%; clear:both; {{#ifeq: {{{center|yes}}} | yes | margin:auto; text-align:center;}}">
Ex: <nowiki>{{avancement|63|green}}</nowiki><br><br>
{{#if:{{{pourcentage|}}}|<!--then:-->
donne: {{avancement|63|green}}
<div>
<br><br>
  <p>
Ex: <nowiki>{{avancement|0|red}}</nowiki><br><br>
  <big>
donne: {{avancement|0|red}} test
  '''{{#expr: ( {{{pourcentage|0}}} / 100 ) * 100 round 1}}%'''
<br><br>
  </big>
Ex: <nowiki>{{avancement|100|red}}</nowiki><br><br>
  {{{text|terminé <small>(estimation)</small>}}}
donne: {{avancement|100|red}}<br><br><br><br>
  </p>
<p style="border:{{{border|1px solid gray}}}; padding:{{{padding|1px}}}; overflow:hidden;">
  <span style="
    width: {{#expr: {{{pourcentage|0}}} / 100 * 100}}%;
    height: {{{height|8}}}px;
    background:{{{color1|#5FDB00}}};
    float:left;
    ">&nbsp;</span>
  <span style="
    width:{{#expr: 100 - {{{pourcentage|0}}} / 100 * 100}}%;
    height:{{{height|8}}}px;
    background:{{{color2|#efefef}}};
    float:left;
    ">&nbsp;</span>
</p>
</div>|}}{{#if:{{{pages|}}}|{{#if:{{{tpages|}}}|<!--then:-->
<div>
  <p>
  <big>
  '''{{{text| {{{pages|0}}}/{{{tpages|1}}} }}}'''
  </big>
  {{{text|pages traduites}}}
  </p>
<p style="border:{{{border|1px solid gray}}}; padding:{{{padding|1px}}}; overflow:hidden;">
  <span style="
    width: {{#expr: ( {{{pages|0}}} / {{{tpages|1}}} ) * 100}}%;
    height: {{{height|8}}}px;
    background:{{{color1|#5FDB00}}};
    float:left;
    ">&nbsp;</span>
  <span style="
    width:{{#expr: 100 - ( {{{pages|0}}} / {{{tpages|1}}} ) * 100}}%;
    height:{{{height|8}}}px;
    background:{{{color2|#efefef}}};
    float:left;
    ">&nbsp;</span>
</p>
</div>|}}|}}{{#if:{{{parties|}}}|{{#if:{{{tparties|}}}|<!--then:-->
<div>
  <p>
  <big>
  '''{{{text|{{{parties|0}}}/{{{tparties|1}}} }}}'''
  </big>
  {{{text|parties terminées}}}
  </p>
<p style="border:{{{border|1px solid gray}}}; padding:{{{padding|1px}}}; overflow:hidden;">
  <span style="
    width: {{#expr: {{{parties|0}}} / {{{tparties|1}}} * 100}}%;
    height: {{{height|8}}}px;
    background:{{{color1|#5FDB00}}};
    float:left;
    ">&nbsp;</span>
  <span style="
    width:{{#expr: 100 - {{{parties|0}}} / {{{tparties|1}}} * 100}}%;
    height:{{{height|8}}}px;
    background:{{{color2|#efefef}}};
    float:left;
    ">&nbsp;</span>
</p>
</div>|}}|}}
</div>
<div style=" clear:both; {{#ifeq: {{{center|yes}}} | yes | margin:auto; text-align:center;">
{{#if:{{{commentaire|}}}|<!--then:-->
  <p>
  <big>
  '''{{{text|{{{commentaire}}}}}}'''
  </big>
  </p>|}}
</div>
</div>
</div><noinclude>
----
==Purpose==
Normally completion perentage/progress is displayed on the main LH page. But what about when you are reading from chapter page to chapter page using the nav links? This way you can see the progress on the page itself rather than going to the main page just to see if that is all in the chapter since there are no nav links/template at the bottom (translators often forget to add that).
 
==Usage==
Simply write <nowiki>{{Avancement|pourcentage="Mettre le pourcentage ici"|pages="Mettre le nombre de '''pages traduites'''"|tpages="Mettre le '''nombre de pages total'''"|parties="Mettre le nombre de '''parties traduites'''"|tparties="Mettre le '''nombre total de parties'''"|commentaire="Insert Comments here"}}</nowiki>. (no speechmarks)
 
And you shall have the template inserted displaying the required info. You can chose not to add the "pages" parameter.
 
<big>'''Note:''' The ''comments'' parameter must be used as little as possible, preferably if there is no other choice. The reason is that it has the potential to stretch the box beyond the page and thus distort the template.</big>
 
==Examples==
 
 
<nowiki>{{Avancement}}</nowiki>
{{Avancement}}
<br clear="both" />
 
<nowiki>{{Avancement|pourcentage=20}}</nowiki>
{{Avancement|pourcentage=20}}
<br clear="both" />
 
<nowiki>{{Avancement|pages=20|tpages=100}}</nowiki>
{{Avancement|pages=20|tpages=100}}
<br clear="both" />
 
<nowiki>{{Avancement|parties=1|tparties=5}}</nowiki>
{{Avancement|parties=1|tparties=5}}
<br clear="both" />
 
<nowiki>{{Avancement|commentaire=Ici les commentaires}}</nowiki>
{{Avancement|commentaire=Ici les commentaires}}
<br clear="both" />
 
<nowiki>{{Avancement|pourcentage=20|pages=20|tpages=100}}</nowiki>
{{Avancement|pourcentage=20|pages=20|tpages=100}}
<br clear="both" />
 
<nowiki>{{Avancement|pages=20|tpages=100|parties=1|tparties=5}}</nowiki>
{{Avancement|pages=20|tpages=100|parties=1|tparties=5}}
<br clear="both" />
 
<nowiki>{{Avancement|parties=1|tparties=5|commentaire=Ici les commentaires}}</nowiki>
{{Avancement|parties=1|tparties=5|commentaire=Ici les commentaires}}
<br clear="both" />
 
<nowiki>{{Incomplete|percentage=20|comments=Pending TLC/Delayed/etc}}</nowiki>
{{Incomplete|percentage=20|comments=Pending TLC/Delayed/etc}}
<br clear="both" />
 
<nowiki>{{Incomplete|percentage=20|pages=20|tpages=100|parts=1|tparts=5}}</nowiki>
{{Incomplete|percentage=20|pages=20|tpages=100|parts=1|tparts=5}}
<br clear="both" />
 
<nowiki>{{Incomplete|pages=20|tpages=100|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}}</nowiki>
{{Incomplete|pages=20|tpages=100|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}}
<br clear="both" />
 
<nowiki>{{Incomplete|percentage=20|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}}</nowiki>
{{Incomplete|percentage=20|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}}
<br clear="both" />
 
<nowiki>{{Incomplete|percentage=20|pages=20|tpages=100|comments=Pending TLC/Delayed/etc}}</nowiki>
{{Incomplete|percentage=20|pages=20|tpages=100|comments=Pending TLC/Delayed/etc}}
<br clear="both" />
 
<nowiki>{{Incomplete|percentage=20|pages=20|tpages=100|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}}</nowiki>
{{Incomplete|percentage=20|pages=20|tpages=100|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}}
<br clear="both" />
 
</noinclude>
</noinclude>

Revision as of 20:38, 25 November 2013

En cours de traduction


Purpose

Normally completion perentage/progress is displayed on the main LH page. But what about when you are reading from chapter page to chapter page using the nav links? This way you can see the progress on the page itself rather than going to the main page just to see if that is all in the chapter since there are no nav links/template at the bottom (translators often forget to add that).

Usage

Simply write {{Avancement|pourcentage="Mettre le pourcentage ici"|pages="Mettre le nombre de '''pages traduites'''"|tpages="Mettre le '''nombre de pages total'''"|parties="Mettre le nombre de '''parties traduites'''"|tparties="Mettre le '''nombre total de parties'''"|commentaire="Insert Comments here"}}. (no speechmarks)

And you shall have the template inserted displaying the required info. You can chose not to add the "pages" parameter.

Note: The comments parameter must be used as little as possible, preferably if there is no other choice. The reason is that it has the potential to stretch the box beyond the page and thus distort the template.

Examples

{{Avancement}}

En cours de traduction


{{Avancement|pourcentage=20}}

En cours de traduction

20% terminé (estimation)

   


{{Avancement|pages=20|tpages=100}}

En cours de traduction

20/100 pages traduites

   


{{Avancement|parties=1|tparties=5}}

En cours de traduction

1/5 parties terminées

   


{{Avancement|commentaire=Ici les commentaires}}

En cours de traduction

Ici les commentaires


{{Avancement|pourcentage=20|pages=20|tpages=100}}

En cours de traduction

20% terminé (estimation)

   

20/100 pages traduites

   


{{Avancement|pages=20|tpages=100|parties=1|tparties=5}}

En cours de traduction

20/100 pages traduites

   

1/5 parties terminées

   


{{Avancement|parties=1|tparties=5|commentaire=Ici les commentaires}}

En cours de traduction

1/5 parties terminées

   

Ici les commentaires


{{Incomplete|percentage=20|comments=Pending TLC/Delayed/etc}}

Status: Incomplete

20% completed (estimated)

   

Pending TLC/Delayed/etc


{{Incomplete|percentage=20|pages=20|tpages=100|parts=1|tparts=5}}

Status: Incomplete

20% completed (estimated)

   

20/100 pages completed

   

1/5 parts completed

   


{{Incomplete|pages=20|tpages=100|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}}

Status: Incomplete

20/100 pages completed

   

1/5 parts completed

   

Pending TLC/Delayed/etc


{{Incomplete|percentage=20|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}}

Status: Incomplete

20% completed (estimated)

   

1/5 parts completed

   

Pending TLC/Delayed/etc


{{Incomplete|percentage=20|pages=20|tpages=100|comments=Pending TLC/Delayed/etc}}

Status: Incomplete

20% completed (estimated)

   

20/100 pages completed

   

Pending TLC/Delayed/etc


{{Incomplete|percentage=20|pages=20|tpages=100|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}}

Status: Incomplete

20% completed (estimated)

   

20/100 pages completed

   

1/5 parts completed

   

Pending TLC/Delayed/etc