Sjabloon:Go Fresh calculator: verschil tussen versies

Regel 8: Regel 8:
 
|Num2b=
 
|Num2b=
 
|Num2c=
 
|Num2c=
  +
|Num2d=
 
|Num3=
 
|Num3=
 
}}
 
}}
Regel 14: Regel 15:
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 
{{#vardefine: N1|{{#if: {{{Num1|}}} | {{{Num1|}}} | 0 }} }}
 
{{#vardefine: N1|{{#if: {{{Num1|}}} | {{{Num1|}}} | 0 }} }}
{{#vardefine: N2a|{{#if: {{{Num2a|}}} | {{{Num2a|}}} | 0 }} }}
+
{{#vardefine: N2a|{{#if: {{{Num2a|}}} | {{{Num2a|}}} | 15 }} }}
{{#vardefine: N2b|{{#if: {{{Num2b|}}} | {{{Num2b|}}} | 0 }} }}
+
{{#vardefine: N2b|{{#if: {{{Num2b|}}} | {{{Num2b|}}} | 12 }} }}
{{#vardefine: N2c|{{#if: {{{Num2c|}}} | {{{Num2c|}}} | 0 }} }}
+
{{#vardefine: N2c|{{#if: {{{Num2c|}}} | {{{Num2c|}}} | 1.02 }} }}
  +
{{#vardefine: N2d|{{#if: {{{Num2d|}}} | {{{Num2d|}}} | 40000 }} }}
 
{{#vardefine: N3|{{#if: {{{Num3|}}} | {{{Num3|}}} | 0 }} }}
 
{{#vardefine: N3|{{#if: {{{Num3|}}} | {{{Num3|}}} | 0 }} }}
 
Resultaat = {{#expr: {{#var:N1}} + {{#var:N2}} + {{#var:N3}} }}
 
Resultaat = {{#expr: {{#var:N1}} + {{#var:N2}} + {{#var:N3}} }}
 
{{#if: {{{Num2a|}}} | Resultaat = {{#expr: {{#var:N2a}} + {{#var:N2b}} + {{#var:N2b}} }} | Geen resultaat voor N2 }}  
 
{{#if: {{{Num2a|}}} | Resultaat = {{#expr: {{#var:N2a}} + {{#var:N2b}} + {{#var:N2b}} }} | Geen resultaat voor N2 }}  
 
</includeonly>
 
</includeonly>

Versie van 30 nov 2017 om 16:33

This is the "Ga Fresh calculator" template. It should be called in the following format:

{{Project
|Num1=
|Num2a=
|Num2b=
|Num2c=
|Num2d=
|Num3=
}}

Edit the page to see the template text.