Difference between revisions of "Template:Incr"

From PlantUse English
Jump to: navigation, search
m (Protected "Template:Incr" ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
Line 1: Line 1:
 
<includeonly>{{#vardefineecho:result|{{#expr:{{{1}}}+{{{2|01}}}}}}}</includeonly>
 
<includeonly>{{#vardefineecho:result|{{#expr:{{{1}}}+{{{2|01}}}}}}}</includeonly>
 
<noinclude>
 
<noinclude>
== Incrémente le premier paramètre de la valeur du second paramètre ou de 1 si il est absent==
+
== Increase the first parameter by the second, or by one if there is no second parameter==
<nowiki>{{Incrementation|110}}</nowiki> donne : {{Incr|110}}
+
<nowiki>{{Incr|110}}</nowiki> gives : {{Incr|110}}
<nowiki>{{Incrementation|110|10}}</nowiki> donne : {{Incr|110|10}}
+
<nowiki>{{Incr|110|10}}</nowiki> gives : {{Incr|110|10}}
<nowiki>{{Incrementation|110|-1}}</nowiki> donne : {{Incr|110|-1}}
+
<nowiki>{{Incr|110|-1}}</nowiki> gives : {{Incr|110|-1}}
 
[[category:Template]]
 
[[category:Template]]
 
</noinclude>
 
</noinclude>

Revision as of 10:50, 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