Difference between revisions of "Template:Incr"
From PlantUse English
MarcBrugman (Talk | contribs) m (Protected "Template:Incr" ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
MarcBrugman (Talk | contribs) |
||
(One intermediate revision by one other user not shown) | |||
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== |
− | == | + | <nowiki>{{Incr|110}}</nowiki> gives : {{Incr|110}} |
− | <nowiki>{{ | + | <nowiki>{{Incr|110|10}}</nowiki> gives : {{Incr|110|10}} |
− | <nowiki>{{ | + | <nowiki>{{Incr|110|-1}}</nowiki> gives : {{Incr|110|-1}} |
− | <nowiki>{{ | + | |
[[category:Template]] | [[category:Template]] | ||
</noinclude> | </noinclude> |
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