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
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style=" width:25%; border:10px solid white; clear:both; float:right; text-align:center;">
<includeonly><div style=" width:25%; border:10px solid white; clear:both; float:right; text-align:center;">
<div style=" width:100%; border:2px solid black;">
<div style=" width:100%; border:2px solid black;">
   <p>
   <p><big>'''{{{titre|Avancement de la traduction}}}'''</big></p>
  <big>
  '''{{{text|En cours de traduction}}}'''
  </big>
  </p>
<div style=" width:75%; clear:both; {{#ifeq: {{{center|yes}}} | yes | margin:auto; text-align:center;}}">
<div style=" width:75%; clear:both; {{#ifeq: {{{center|yes}}} | yes | margin:auto; text-align:center;}}">
{{#if:{{{pourcentage|}}}|<!--then:-->
{{#if:{{{%|}}}|<!--then:-->
<div>
<div>
   <p>
   <p>
   <big>
   <big>
   '''{{#expr: ( {{{pourcentage|0}}} / 100 ) * 100 round 1}}%'''
   '''{{#expr: ( {{{%|0}}} / 100 ) * 100 round 1}}%'''
   </big>
   </big>
   {{{text|terminé <small>(estimation)</small>}}}
   {{{text1|terminé <small>(estimation)</small>}}}
   </p>
   </p>
<p style="border:{{{border|1px solid gray}}}; padding:{{{padding|1px}}}; overflow:hidden;">
<p style="border:{{{border|1px solid gray}}}; padding:{{{padding|1px}}}; overflow:hidden;">
   <span style="
   <span style="
     width: {{#expr: {{{pourcentage|0}}} / 100 * 100}}%;
     width: {{#expr: {{{%|0}}} / 100 * 100}}%;
     height: {{{height|8}}}px;
     height: {{{height|8}}}px;
     background:{{{color1|#5FDB00}}};
     background:{{{color1|#5FDB00}}};
Line 23: Line 19:
     ">&nbsp;</span>
     ">&nbsp;</span>
   <span style="
   <span style="
     width:{{#expr: 100 - {{{pourcentage|0}}} / 100 * 100}}%;
     width:{{#expr: 100 - {{{%|0}}} / 100 * 100}}%;
     height:{{{height|8}}}px;
     height:{{{height|8}}}px;
     background:{{{color2|#efefef}}};
     background:{{{color|#efefef}}};
     float:left;
     float:left;
     ">&nbsp;</span>
     ">&nbsp;</span>
</p>
</p>
</div>|}}{{#if:{{{pages|}}}|{{#if:{{{tpages|}}}|<!--then:-->
</div>|}}{{#if:{{{trad|}}}|{{#if:{{{p|}}}|<!--then:-->
<div>
<div>
   <p>
   <p>
   <big>
   <big>
   '''{{{text| {{{pages|0}}}/{{{tpages|1}}} }}}'''
   '''{{{text| {{{trad|0}}}/{{{p|1}}} }}}'''
   </big>
   </big>
   {{{text|pages traduites}}}
   {{{text2|pages traduites}}}
   </p>
   </p>
<p style="border:{{{border|1px solid gray}}}; padding:{{{padding|1px}}}; overflow:hidden;">
<p style="border:{{{border|1px solid gray}}}; padding:{{{padding|1px}}}; overflow:hidden;">
   <span style="
   <span style="
     width: {{#expr: ( {{{pages|0}}} / {{{tpages|1}}} ) * 100}}%;
     width: {{#expr: ( {{{trad|0}}} / {{{p|1}}} ) * 100}}%;
     height: {{{height|8}}}px;
     height: {{{height|8}}}px;
     background:{{{color1|#5FDB00}}};
     background:{{{color2|#5FDB00}}};
     float:left;
     float:left;
     ">&nbsp;</span>
     ">&nbsp;</span>
   <span style="
   <span style="
     width:{{#expr: 100 - ( {{{pages|0}}} / {{{tpages|1}}} ) * 100}}%;
     width:{{#expr: 100 - ( {{{trad|0}}} / {{{p|1}}} ) * 100}}%;
     height:{{{height|8}}}px;
     height:{{{height|8}}}px;
     background:{{{color2|#efefef}}};
     background:{{{color|#efefef}}};
     float:left;
     float:left;
     ">&nbsp;</span>
     ">&nbsp;</span>
</p>
</p>
</div>|}}|}}{{#if:{{{parties|}}}|{{#if:{{{tparties|}}}|<!--then:-->
</div>|}}|}}{{#if:{{{tradp|}}}|{{#if:{{{parts|}}}|<!--then:-->
<div>
<div>
   <p>
   <p>
   <big>
   <big>
   '''{{{text|{{{parties|0}}}/{{{tparties|1}}} }}}'''
   '''{{{text|{{{tradp|0}}}/{{{parts|1}}} }}}'''
   </big>
   </big>
   {{{text|parties terminées}}}
   {{{text3|parties terminées}}}
   </p>
   </p>
<p style="border:{{{border|1px solid gray}}}; padding:{{{padding|1px}}}; overflow:hidden;">
<p style="border:{{{border|1px solid gray}}}; padding:{{{padding|1px}}}; overflow:hidden;">
   <span style="
   <span style="
     width: {{#expr: {{{parties|0}}} / {{{tparties|1}}} * 100}}%;
     width: {{#expr: {{{tradp|0}}} / {{{parts|1}}} * 100}}%;
     height: {{{height|8}}}px;
     height: {{{height|8}}}px;
     background:{{{color1|#5FDB00}}};
     background:{{{color3|#5FDB00}}};
     float:left;
     float:left;
     ">&nbsp;</span>
     ">&nbsp;</span>
   <span style="
   <span style="
     width:{{#expr: 100 - {{{parties|0}}} / {{{tparties|1}}} * 100}}%;
     width:{{#expr: 100 - {{{tradp|0}}} / {{{parts|1}}} * 100}}%;
     height:{{{height|8}}}px;
     height:{{{height|8}}}px;
     background:{{{color2|#efefef}}};
     background:{{{color|#efefef}}};
     float:left;
     float:left;
     ">&nbsp;</span>
     ">&nbsp;</span>
Line 78: Line 74:
{{#if:{{{commentaire|}}}|<!--then:-->
{{#if:{{{commentaire|}}}|<!--then:-->
   <p>
   <p>
  <big>
   ''{{{text|{{{commentaire}}}}}}''
   '''{{{text|{{{commentaire}}}}}}'''
  </big>
   </p>|}}
   </p>|}}
</div>
</div>
</div>
</div>
</div><noinclude>
</div></includeonly><noinclude>
----
----
==Purpose==
==Résumé==
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).
La plupart du temps l'avancement est écrit sur la page principale du roman mais il peut être plus pratique de voir l'avancement sur la page du chapitre lui même. Ce module est la copie de celui déjà présent en anglais, je l'ai juste adapté au français.
 
==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==
==Utilisation==
Vous avez juste à insérer le code dans le texte du chapitre <nowiki>{{Avancement|%="POURCENTAGE"|trad="NOMBRE DE PAGES TRADUITES"|p="NOMBRE DE PAGES TOTAL"|tradp="NOMBRE DE PARTIES TRADUITES"|parts="NOMBRE TOTAL DE PARTIES"|commentaire="LES COMMENTAIRES"}}</nowiki>.
<br><br>


==Exemples==
<br>


<nowiki>{{Avancement}}</nowiki>
<nowiki>{{Avancement}}</nowiki>
Line 103: Line 94:
<br clear="both" />
<br clear="both" />


<nowiki>{{Avancement|pourcentage=20}}</nowiki>
<nowiki>{{Avancement|color1=orange|%=20}}</nowiki>
{{Avancement|pourcentage=20}}
{{Avancement|color1=orange|%=20}}
<br clear="both" />
<br clear="both" />


<nowiki>{{Avancement|pages=20|tpages=100}}</nowiki>
<nowiki>{{Avancement|trad=20|p=100}}</nowiki>
{{Avancement|pages=20|tpages=100}}
{{Avancement|trad=20|p=100}}
<br clear="both" />
<br clear="both" />


<nowiki>{{Avancement|parties=1|tparties=5}}</nowiki>
<nowiki>{{Avancement|tradp=1|parts=5}}</nowiki>
{{Avancement|parties=1|tparties=5}}
{{Avancement|tradp=1|parts=5}}
<br clear="both" />
<br clear="both" />


Line 119: Line 110:
<br clear="both" />
<br clear="both" />


<nowiki>{{Avancement|pourcentage=20|pages=20|tpages=100}}</nowiki>
<nowiki>{{Avancement|titre=Volume 1 - Chapitre 1|%=20|trad=20|p=100}}</nowiki>
{{Avancement|pourcentage=20|pages=20|tpages=100}}
{{Avancement|titre=Volume 1 - Chapitre 1|%=20|trad=20|p=100}}
<br clear="both" />
<br clear="both" />


<nowiki>{{Avancement|pages=20|tpages=100|parties=1|tparties=5}}</nowiki>
<nowiki>{{Avancement|color3=blue|trad=20|p=100|tradp=1|parts=5}}</nowiki>
{{Avancement|pages=20|tpages=100|parties=1|tparties=5}}
{{Avancement|color3=blue|trad=20|p=100|tradp=1|parts=5}}
<br clear="both" />
<br clear="both" />


<nowiki>{{Avancement|parties=1|tparties=5|commentaire=Ici les commentaires}}</nowiki>
<nowiki>{{Avancement|tradp=1|parts=5|commentaire=Ici les commentaires}}</nowiki>
{{Avancement|parties=1|tparties=5|commentaire=Ici les commentaires}}
{{Avancement|tradp=1|parts=5|commentaire=Ici les commentaires}}
<br clear="both" />
<br clear="both" />


<nowiki>{{Incomplete|percentage=20|comments=Pending TLC/Delayed/etc}}</nowiki>
<nowiki>{{Avancement|%=20|commentaire=Ici les commentaires}}</nowiki>
{{Incomplete|percentage=20|comments=Pending TLC/Delayed/etc}}
{{Avancement|%=20|commentaire=Ici les commentaires}}
<br clear="both" />
<br clear="both" />


<nowiki>{{Incomplete|percentage=20|pages=20|tpages=100|parts=1|tparts=5}}</nowiki>
<nowiki>{{Avancement|color2=green|%=20|trad=20|p=100|tradp=1|parts=5}}</nowiki>
{{Incomplete|percentage=20|pages=20|tpages=100|parts=1|tparts=5}}
{{Avancement|color2=green|%=20|trad=20|p=100|tradp=1|parts=5}}
<br clear="both" />
<br clear="both" />


<nowiki>{{Incomplete|pages=20|tpages=100|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}}</nowiki>
<nowiki>{{Avancement|trad=20|p=100|tradp=1|parts=5|commentaire=Ici les commentaires}}</nowiki>
{{Incomplete|pages=20|tpages=100|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}}
{{Avancement|trad=20|p=100|tradp=1|parts=5|commentaire=Ici les commentaires}}
<br clear="both" />
<br clear="both" />


<nowiki>{{Incomplete|percentage=20|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}}</nowiki>
<nowiki>{{Avancement|%=20|tradp=1|parts=5|commentaire=Icci les commentaires}}</nowiki>
{{Incomplete|percentage=20|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}}
{{Avancement|%=20|tradp=1|parts=5|commentaire=Ici les commentaires}}
<br clear="both" />
<br clear="both" />


<nowiki>{{Incomplete|percentage=20|pages=20|tpages=100|comments=Pending TLC/Delayed/etc}}</nowiki>
<nowiki>{{Avancement|%=20|trad=20|p=100|commentaire=Ici les commentaires}}</nowiki>
{{Incomplete|percentage=20|pages=20|tpages=100|comments=Pending TLC/Delayed/etc}}
{{Avancement|%=20|trad=20|p=100|commentaire=Ici les commentaires}}
<br clear="both" />
<br clear="both" />


<nowiki>{{Incomplete|percentage=20|pages=20|tpages=100|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}}</nowiki>
<nowiki>{{Avancement|color1=yellow|color2=purple|color3=#c05800|%=20|trad=20|p=100|tradp=1|parts=5|commentaire=Ici les commentaires}}</nowiki>
{{Incomplete|percentage=20|pages=20|tpages=100|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}}
{{Avancement|color1=yellow|color2=purple|color3=#c05800|%=20|trad=20|p=100|tradp=1|parts=5|commentaire=Ici les commentaires}}
<br clear="both" />
<br clear="both" />


</noinclude>
</noinclude>

Latest revision as of 13:12, 28 November 2013


Résumé[edit]

La plupart du temps l'avancement est écrit sur la page principale du roman mais il peut être plus pratique de voir l'avancement sur la page du chapitre lui même. Ce module est la copie de celui déjà présent en anglais, je l'ai juste adapté au français.

Utilisation[edit]

Vous avez juste à insérer le code dans le texte du chapitre {{Avancement|%="POURCENTAGE"|trad="NOMBRE DE PAGES TRADUITES"|p="NOMBRE DE PAGES TOTAL"|tradp="NOMBRE DE PARTIES TRADUITES"|parts="NOMBRE TOTAL DE PARTIES"|commentaire="LES COMMENTAIRES"}}.

Exemples[edit]


{{Avancement}}

Avancement de la traduction


{{Avancement|color1=orange|%=20}}

Avancement de la traduction

20% terminé (estimation)

   


{{Avancement|trad=20|p=100}}

Avancement de la traduction

20/100 pages traduites

   


{{Avancement|tradp=1|parts=5}}

Avancement de la traduction

1/5 parties terminées

   


{{Avancement|commentaire=Ici les commentaires}}

Avancement de la traduction

Ici les commentaires


{{Avancement|titre=Volume 1 - Chapitre 1|%=20|trad=20|p=100}}

Volume 1 - Chapitre 1

20% terminé (estimation)

   

20/100 pages traduites

   


{{Avancement|color3=blue|trad=20|p=100|tradp=1|parts=5}}

Avancement de la traduction

20/100 pages traduites

   

1/5 parties terminées

   


{{Avancement|tradp=1|parts=5|commentaire=Ici les commentaires}}

Avancement de la traduction

1/5 parties terminées

   

Ici les commentaires


{{Avancement|%=20|commentaire=Ici les commentaires}}

Avancement de la traduction

20% terminé (estimation)

   

Ici les commentaires


{{Avancement|color2=green|%=20|trad=20|p=100|tradp=1|parts=5}}

Avancement de la traduction

20% terminé (estimation)

   

20/100 pages traduites

   

1/5 parties terminées

   


{{Avancement|trad=20|p=100|tradp=1|parts=5|commentaire=Ici les commentaires}}

Avancement de la traduction

20/100 pages traduites

   

1/5 parties terminées

   

Ici les commentaires


{{Avancement|%=20|tradp=1|parts=5|commentaire=Icci les commentaires}}

Avancement de la traduction

20% terminé (estimation)

   

1/5 parties terminées

   

Ici les commentaires


{{Avancement|%=20|trad=20|p=100|commentaire=Ici les commentaires}}

Avancement de la traduction

20% terminé (estimation)

   

20/100 pages traduites

   

Ici les commentaires


{{Avancement|color1=yellow|color2=purple|color3=#c05800|%=20|trad=20|p=100|tradp=1|parts=5|commentaire=Ici les commentaires}}

Avancement de la traduction

20% terminé (estimation)

   

20/100 pages traduites

   

1/5 parties terminées

   

Ici les commentaires