10,975
editsAd placeholder
Template:Plus if pos: Difference between revisions
Jump to navigation
Jump to search
Tolerate empty argument (return empty string).
(Accept mathematical expressions.) |
(Tolerate empty argument (return empty string).) |
||
Line 1: | Line 1: | ||
<includeonly>{{#ifexpr: {{{1}}} > 0 | + }}{{#expr: {{{1}}} }}</includeonly><noinclude> | <includeonly>{{#if: {{{1|}}} | {{#ifexpr: {{{1}}} > 0 | + }}{{#expr: {{{1}}} }} }}</includeonly><noinclude> | ||
Adds a plus sign in front of a number if it's positive. Also accepts mathematical expressions. Example: | Adds a plus sign in front of a number if it's positive. Also accepts mathematical expressions. Example: | ||