Difference between revisions of "Template:Incr"
From PlantUse English
MarcBrugman (Talk | contribs) |
MarcBrugman (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefineecho:result|{{#expr:{{{1}}}+{{{2|01}}}}}}}</includeonly> | + | <includeonly>{{#vardefineecho:result|{{#expr:{{{1}}}+{{{2|01}}}}}}}</includeonly><noinclude> |
− | <noinclude> | + | |
== Increase the first parameter by the second, or by one if there is no second parameter== | == Increase the first parameter by the second, or by one if there is no second parameter== | ||
<nowiki>{{Incr|110}}</nowiki> gives : {{Incr|110}} | <nowiki>{{Incr|110}}</nowiki> gives : {{Incr|110}} |
Latest revision as of 10:51, 11 May 2011
Increase the first parameter by the second, or by one if there is no second parameter
{{Incr|110}} gives : 111 {{Incr|110|10}} gives : 120 {{Incr|110|-1}} gives : 109