More actions
10 June 2024
7 June 2024
Accept mathematical expressions.
−1
Taylan moved page Template:Plus if positive to Template:Plus if pos without leaving a redirect
mno edit summary
m+4
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}} </..."
+850