Modèle:Variation : Différence entre versions

De Europe Politique
(Page créée avec « <includeonly>{{#if: {{{1|}}} | {{#if: {{{2|}}} | {{#switch: {{#expr: ( {{{2}}} > {{{1}}} ) - ( {{{2}}} < {{{1}}} ) }} | 0 = <abbr class="abbr" style="color:#0... »)
 
 
Ligne 1 : Ligne 1 :
 +
 
<includeonly>{{#if: {{{1|}}}
 
<includeonly>{{#if: {{{1|}}}
 
  | {{#if: {{{2|}}}
 
  | {{#if: {{{2|}}}
 
     | {{#switch:  {{#expr: ( {{{2}}} > {{{1}}} ) - ( {{{2}}} < {{{1}}} ) }}
 
     | {{#switch:  {{#expr: ( {{{2}}} > {{{1}}} ) - ( {{{2}}} < {{{1}}} ) }}
       | 0 = <abbr class="abbr" style="color:#08f;" title="stable">►</abbr>&nbsp;
+
       | 0 =  
       | 1 = <abbr class="abbr" style="color:#0c3;" title="en augmentation">▲</abbr>&nbsp;+
+
       | 1 = +
       |-1 = <abbr class="abbr" style="color:#f00;" title="en diminution">▼</abbr>&nbsp;
+
       |-1 =  
 
       }}<!--
 
       }}<!--
 
   -->{{#ifeq: {{{1}}} | 0 <!--
 
   -->{{#ifeq: {{{1}}} | 0 <!--
 
   -->| {{#ifeq: {{{2}}} | 0 | 0 | ∞ }}<!--
 
   -->| {{#ifeq: {{{2}}} | 0 | 0 | ∞ }}<!--
   -->| {{formatnum: {{#expr: (({{{2}}} - {{{1}}}) / {{{1}}}) * 100 round {{{3|2}}} }} }} }}<!--
+
   -->| {{formatnum: {{#expr: (({{{2}}} - {{{1}}}) / {{{1}}}) * 100 round {{{3|0}}} }} }} }}<!--
 
   -->&#8239;%
 
   -->&#8239;%
 
   }}
 
   }}
 
}}</includeonly>
 
}}</includeonly>

Version actuelle en date du 7 mai 2024 à 08:22