Difference between revisions of "Template:Incr"
From PlantUse English
MarcBrugman (Talk | contribs) (Created page with "<includeonly>{{#vardefineecho:result|{{#expr:{{{1}}}+{{{2|01}}}}}}}</includeonly> <noinclude> == Incrémente le premier paramètre de la valeur du second paramètre ou de 1 si il...") |
MarcBrugman (Talk | contribs) |
||
(3 intermediate revisions 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