Différences entre les versions de « Modèle:Avancement/Avancé »

De Nations.fr
m
m
 
(2 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
<includeonly><div style="position:relative; width:{{{taille|500}}}px;height:20px;border:1px solid #cccccc;">
<includeonly><div style="position:relative; width:{{{taille|500}}}px;height:16px;border:1px solid #cccccc;">
<div style="position: absolute;width:{{{taille|500}}}px;height:20px;text-align:center;z-index: 10;color:#888;">{{{texte}}}</div>
<div style="position: absolute;width:{{{taille|500}}}px;height:16px;text-align:center;z-index: 10;color:#999;">{{{texte}}}</div>
<div style="position: absolute; left: {{#expr:floor({{{taille|500}}}*(0)/{{{total|500}}})}}px;  width:{{#expr:floor({{{taille|500}}}*{{{parti1|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}/{{{total|{{{taille|500}}}}}})}}px;height:20px; background-color: {{{hex|{{{couleur1|#CCCCCC}}}}}}"></div>
<div style="position: absolute; left: {{#expr:floor({{{taille|500}}}*(0)/{{{total|500}}})}}px;  width:{{#expr:floor({{{taille|500}}}*{{{parti1|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}/{{{total|{{{taille|500}}}}}})}}px;height:16px; background-color: {{{hex|{{{couleur1|#CCCCCC}}}}}}"></div>
{{#if:{{{parti2|}}}|<div style="position: absolute; left: {{#expr:floor({{{taille|500}}}*({{{parti1|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}})/{{{total|{{{taille|500}}}}}})}}px;  width:{{#expr:floor({{{taille|500}}}*{{{parti2|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}/{{{total|{{{taille|500}}}}}})}}px;height:20px; background-color: {{{hex|{{{couleur2|#EEEEEE}}}}}}"></div>}}
{{#if:{{{parti2|}}}|<div style="position: absolute; left: {{#expr:floor({{{taille|500}}}*({{{parti1|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}})/{{{total|{{{taille|500}}}}}})}}px;  width:{{#expr:floor({{{taille|500}}}*{{{parti2|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}/{{{total|{{{taille|500}}}}}})}}px;height:16px; background-color: {{{hex|{{{couleur2|#EEEEEE}}}}}}"></div>}}
{{#if:{{{parti3|}}}|<div style="position: absolute; left: {{#expr:floor({{{taille|500}}}*({{{parti1|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti2|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}})/{{{total|{{{taille|500}}}}}})}}px;  width:{{#expr:floor({{{taille|500}}}*{{{parti3|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}/{{{total|{{{taille|500}}}}}})}}px;height:20px; background-color: {{{hex|{{{couleur3|#CCCCCC}}}}}}"></div>}}
{{#if:{{{parti3|}}}|<div style="position: absolute; left: {{#expr:floor({{{taille|500}}}*({{{parti1|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti2|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}})/{{{total|{{{taille|500}}}}}})}}px;  width:{{#expr:floor({{{taille|500}}}*{{{parti3|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}/{{{total|{{{taille|500}}}}}})}}px;height:16px; background-color: {{{hex|{{{couleur3|#CCCCCC}}}}}}"></div>}}
{{#if:{{{parti4|}}}|<div style="position: absolute; left: {{#expr:floor({{{taille|500}}}*({{{parti1|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti2|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti3|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}})/{{{total|{{{taille|500}}}}}})}}px;  width:{{#expr:floor({{{taille|500}}}*{{{parti4|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}/{{{total|{{{taille|500}}}}}})}}px;height:20px; background-color: {{{hex|{{{couleur4|#EEEEEE}}}}}}"></div>}}
{{#if:{{{parti4|}}}|<div style="position: absolute; left: {{#expr:floor({{{taille|500}}}*({{{parti1|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti2|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti3|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}})/{{{total|{{{taille|500}}}}}})}}px;  width:{{#expr:floor({{{taille|500}}}*{{{parti4|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}/{{{total|{{{taille|500}}}}}})}}px;height:16px; background-color: {{{hex|{{{couleur4|#EEEEEE}}}}}}"></div>}}
{{#if:{{{parti5|}}}|<div style="position: absolute; left: {{#expr:floor({{{taille|500}}}*({{{parti1|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti2|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti3|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti4|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}})/{{{total|{{{taille|500}}}}}})}}px;  width:{{#expr:floor({{{taille|500}}}*{{{parti5|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}/{{{total|{{{taille|500}}}}}})}}px;height:20px; background-color: {{{hex|{{{couleur5|#CCCCCC}}}}}}"></div>}}
{{#if:{{{parti5|}}}|<div style="position: absolute; left: {{#expr:floor({{{taille|500}}}*({{{parti1|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti2|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti3|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti4|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}})/{{{total|{{{taille|500}}}}}})}}px;  width:{{#expr:floor({{{taille|500}}}*{{{parti5|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}/{{{total|{{{taille|500}}}}}})}}px;height:16px; background-color: {{{hex|{{{couleur5|#CCCCCC}}}}}}"></div>}}
{{#if:{{{parti6|}}}|<div style="position: absolute; left: {{#expr:floor({{{taille|500}}}*({{{parti1|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti2|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti3|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti4|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti5|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}})/{{{total|{{{taille|500}}}}}})}}px;  width:{{#expr:floor({{{taille|500}}}*{{{parti6|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}/{{{total|{{{taille|500}}}}}})}}px;height:20px; background-color: {{{hex|{{{couleur6|#EEEEEE}}}}}}"></div>}}
{{#if:{{{parti6|}}}|<div style="position: absolute; left: {{#expr:floor({{{taille|500}}}*({{{parti1|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti2|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti3|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti4|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti5|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}})/{{{total|{{{taille|500}}}}}})}}px;  width:{{#expr:floor({{{taille|500}}}*{{{parti6|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}/{{{total|{{{taille|500}}}}}})}}px;height:16px; background-color: {{{hex|{{{couleur6|#EEEEEE}}}}}}"></div>}}
{{#if:{{{parti7|}}}|<div style="position: absolute; left: {{#expr:floor({{{taille|500}}}*({{{parti1|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti2|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti3|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti4|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti5|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti6|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}})/{{{total|{{{taille|500}}}}}})}}px;  width:{{#expr:floor({{{taille|500}}}*{{{parti7|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}/{{{total|{{{taille|500}}}}}})}}px;height:20px; background-color: {{{hex|{{{couleur7|#CCCCCC}}}}}}"></div>}}
{{#if:{{{parti7|}}}|<div style="position: absolute; left: {{#expr:floor({{{taille|500}}}*({{{parti1|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti2|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti3|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti4|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti5|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti6|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}})/{{{total|{{{taille|500}}}}}})}}px;  width:{{#expr:floor({{{taille|500}}}*{{{parti7|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}/{{{total|{{{taille|500}}}}}})}}px;height:16px; background-color: {{{hex|{{{couleur7|#CCCCCC}}}}}}"></div>}}
{{#if:{{{parti8|}}}|<div style="position: absolute; left: {{#expr:floor({{{taille|500}}}*({{{parti1|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti2|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti3|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti4|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti5|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti6|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti7|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}})/{{{total|{{{taille|500}}}}}})}}px;  width:{{#expr:floor({{{taille|500}}}*{{{parti8|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}/{{{total|{{{taille|500}}}}}})}}px;height:20px; background-color: {{{hex|{{{couleur8|#EEEEEE}}}}}}"></div>}}
{{#if:{{{parti8|}}}|<div style="position: absolute; left: {{#expr:floor({{{taille|500}}}*({{{parti1|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti2|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti3|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti4|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti5|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti6|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti7|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}})/{{{total|{{{taille|500}}}}}})}}px;  width:{{#expr:floor({{{taille|500}}}*{{{parti8|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}/{{{total|{{{taille|500}}}}}})}}px;height:16px; background-color: {{{hex|{{{couleur8|#EEEEEE}}}}}}"></div>}}
{{#if:{{{parti9|}}}|<div style="position: absolute; left: {{#expr:floor({{{taille|500}}}*({{{parti1|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti2|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti3|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti4|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti5|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti6|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti7|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti8|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}})/{{{total|{{{taille|500}}}}}})}}px;  width:{{#expr:floor({{{taille|500}}}*{{{parti9|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}/{{{total|{{{taille|500}}}}}})}}px;height:20px; background-color: {{{hex|{{{couleur9|#CCCCCC}}}}}}"></div>}}
{{#if:{{{parti9|}}}|<div style="position: absolute; left: {{#expr:floor({{{taille|500}}}*({{{parti1|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti2|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti3|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti4|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti5|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti6|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti7|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti8|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}})/{{{total|{{{taille|500}}}}}})}}px;  width:{{#expr:floor({{{taille|500}}}*{{{parti9|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}/{{{total|{{{taille|500}}}}}})}}px;height:16px; background-color: {{{hex|{{{couleur9|#CCCCCC}}}}}}"></div>}}
{{#if:{{{parti10|}}}|<div style="position: absolute; left: {{#expr:floor({{{taille|500}}}*({{{parti1|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti2|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti3|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti4|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti5|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti6|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti7|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti8|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti9|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}})/{{{total|{{{taille|500}}}}}})}}px;  width:{{#expr:floor({{{taille|500}}}*{{{parti10|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}/{{{total|{{{taille|500}}}}}})}}px;height:20px; background-color: {{{hex|{{{couleur10|#EEEEEE}}}}}}"></div>}}</div></includeonly><noinclude>
{{#if:{{{parti10|}}}|<div style="position: absolute; left: {{#expr:floor({{{taille|500}}}*({{{parti1|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti2|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti3|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti4|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti5|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti6|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti7|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti8|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}+{{{parti9|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}})/{{{total|{{{taille|500}}}}}})}}px;  width:{{#expr:floor({{{taille|500}}}*{{{parti10|{{if:{{{taille}}}|{{#expr:floor({{{taille}}}/2)}}|250}}}}}/{{{total|{{{taille|500}}}}}})}}px;height:16px; background-color: {{{hex|{{{couleur10|#EEEEEE}}}}}}"></div>}}</div></includeonly><noinclude>
<pre>
<pre>
{{Avancement/Avancé
{{Avancement/Avancé

Version actuelle datée du 4 juillet 2024 à 23:25

{{Avancement/Avancé
|texte      = 
|total      = 
|taille     = 
|parti1     = 
|couleur1   = 
|parti2     = 
|couleur2   = 
|parti3     = 
|couleur3   = 
|parti4     = 
|couleur4   = 
|parti5     = 
|couleur5   = 
|parti6     = 
|couleur6   = 
|parti7     = 
|couleur7   = 
|parti8     = 
|couleur8   = 
|parti9     = 
|couleur9   = 
|parti10    = 
|couleur10  = 
}}