Utilisateur:Ankhseram : Différence entre versions
Ligne 104 : | Ligne 104 : | ||
<div style="border-radius: 16px; overflow: hidden; border: 1px grey solid; background: grey; position: relative;"> | <div style="border-radius: 16px; overflow: hidden; border: 1px grey solid; background: grey; position: relative;"> | ||
<div style="background: rgb(241,62,2); background: linear-gradient(90deg, rgba(241,62,2,1) 0%, rgba(88,230,20,1) 100%); height: 20px; width: 100%;"></div> | <div style="background: rgb(241,62,2); background: linear-gradient(90deg, rgba(241,62,2,1) 0%, rgba(88,230,20,1) 100%); height: 20px; width: 100%;"></div> | ||
− | <div style="width: {{#expr:100-{{#var:number}}/{{#var:numbertotal}}*100}}%; background: grey; height: 20px; position: absolute; top: 0; right: 0; color: white;"><span style="padding: 0 5px;">{{formatnum:{{#expr:{{#var:number}}/{{#var:numbertotal}}*100 round 1}}}} %</span></div> | + | <div style="width: {{#expr:100-{{#var:number}}/{{#var:numbertotal}}*100}}%; background: grey; height: 20px; position: absolute; top: 0; right: 0; color: white;">{{#ifexpr: {{#var:number}}/{{#var:numbertotal}}*100 > 50 ||<span style="padding: 0 5px;">{{formatnum:{{#expr:{{#var:number}}/{{#var:numbertotal}}*100 round 1}}}} %</span>}}</div> |
</div> | </div> | ||
{{#var:number}} pages de qualité sur {{#var:numbertotal}}. | {{#var:number}} pages de qualité sur {{#var:numbertotal}}. |