Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 10: | Rivi 10: | ||
{{#arraydefine: historyamount| {{#expr: abs( {{#expr: {{#arrayindex:history|0|0}} - {{#arrayindex:curweek|0|0}} }} ) }} }} | {{#arraydefine: historyamount| {{#expr: abs( {{#expr: {{#arrayindex:history|0|0}} - {{#arrayindex:curweek|0|0}} }} ) }} }} | ||
{{#arraydefine: thecode| | {{#arraydefine: thecode|{{#replace: | ||
{{#ifexpr: {{#arrayindex:changeamount|0|0}} < 0.1 |x|{{#arrayindex:changedirection|0|0}}}} | {{#ifexpr: {{#arrayindex:changeamount|0|0}} < 0.1 |x|{{#arrayindex:changedirection|0|0}}}} | ||
{{#ifexpr: {{#arrayindex:historyamount|0|0}} < 0.1 |x|{{#arrayindex:historydirection|0|0}}}} | {{#ifexpr: {{#arrayindex:historyamount|0|0}} < 0.1 |x|{{#arrayindex:historydirection|0|0}}}} | ||
}} | | |}}}} | ||
The code: {{#arrayindex:thecode|0|0}} | The code: {{#arrayindex:thecode|0|0}} | ||


