Difference between revisions of "Template:Incr"

From PlantUse English
Jump to: navigation, search
(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...")
 
 
(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==
== Incrémente le premier paramètre de la valeur du second paramètre ou de 1 si il est absent==
+
<nowiki>{{Incr|110}}</nowiki> gives : {{Incr|110}}
<nowiki>{{Incrementation|110}}</nowiki> donne : {{Incrementation|110}}
+
<nowiki>{{Incr|110|10}}</nowiki> gives : {{Incr|110|10}}
<nowiki>{{Incrementation|110|10}}</nowiki> donne : {{Incrementation|110|10}}
+
<nowiki>{{Incr|110|-1}}</nowiki> gives : {{Incr|110|-1}}
<nowiki>{{Incrementation|110|-1}}</nowiki> donne : {{Incrementation|110|-1}}
+
== Alias : ==
+
Incr
+
 
+
 
[[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