10,977
editsAd placeholder
Template:Plus if pos: Difference between revisions
Jump to navigation
Jump to search
m
no edit summary
(Created page with "<includeonly>{{#if: {{{1}}} > 0 | + }}{{trim | {{{1}}} }}</includeonly><noinclude> Adds a plus sign in front of a number if it's positive. Example: <pre> {{plus if positive | 5 }} </pre> Result: {{plus if positive | 5 }} This is useful when calculating some modifier. For example: <pre> {{hidden code| {{#lvardef: dex | 14 }} {{#lvardef: dex_mod | {{plus if positive | {{#expr: floor({{#lvar:dex}} / 2) - 5 }} }} }} }} Your Dexterity Modifier is: {{#lvar:dex_mod}} </...") |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{# | <includeonly>{{#ifexpr: {{{1}}} > 0 | + }}{{trim | {{{1}}} }}</includeonly><noinclude> | ||
Adds a plus sign in front of a number if it's positive. Example: | Adds a plus sign in front of a number if it's positive. Example: | ||