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

De Nations.fr
(Page créée avec « <includeonly><div style="position:relative; width:{{{taille|500}}}px;height:20px;border:1px solid #cccccc;"> <div style="position: absolute;width:{{{taille|500}}}px;height… »)
 
m
 
(4 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:#aaa;">{{{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é
Ligne 36 : Ligne 36 :
|parti10    =  
|parti10    =  
|couleur10  =  
|couleur10  =  
}}</pre>
<pre>{{{Avancement/Avancé
|texte        =
|total        =
|parti1      = 13
|couleur1    = #CC0000
|parti2      = 33
|couleur2    = #FE5879
|parti3      = 22
|couleur3    = #351C75
|parti4      = 10
|couleur4    = #E9C452
|parti5      = 0
|couleur5    = #2754C5
|parti6      = 0
|couleur6    = #5B0F00
}}</pre>
}}</pre>
</noinclude>
</noinclude>

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  = 
}}