| Regel 6: | Regel 6: | ||
|Num1= |
|Num1= |
||
|Num2= |
|Num2= |
||
| + | |Num3= |
||
}} |
}} |
||
</pre> |
</pre> |
||
Edit the page to see the template text. |
Edit the page to see the template text. |
||
</noinclude><includeonly> |
</noinclude><includeonly> |
||
| − | {{#vardefine: N1|{{{Num1|}}}}} |
+ | {{#vardefine: N1|{{#if: {{{Num1|}}} | {{{Num1|}}} | 0 }} }} |
| − | {{#vardefine: N2|{{{Num2|}}}}} |
+ | {{#vardefine: N2|{{#if: {{{Num2|}}} | {{{Num2|}}} | 0 }} }} |
| − | {{# |
+ | {{#vardefine: N3|{{#if: {{{Num3|}}} | {{{Num3|}}} | 0 }} }} |
| + |
Resultaat = {{#expr: {{#var:N1}} + {{#var:N2}} + {{#var:N3}} }} |
||
</includeonly> |
</includeonly> |
||
This is the "Ga Fresh calculator" template. It should be called in the following format:
{{Project
|Num1=
|Num2=
|Num3=
}}
Edit the page to see the template text.