Difference between revisions of "Template:Dp"
From Organic Design wiki
m |
|||
Line 4: | Line 4: | ||
Where the first parameter is the number of decimal places, and the second is the value to format. | Where the first parameter is the number of decimal places, and the second is the value to format. | ||
}}</noinclude> | }}</noinclude> | ||
− | {{#vardefine:tmp|{{#expr:{{{2}}}+0.0{{#pad:5|{{{1}}}|0}}}}}}{{#sub:{{#var:tmp}}|0|{{#expr:{{#pos:{{#var:tmp}}|.}}+{{{1}}}+1}}}} | + | <includeonly>{{#vardefine:tmp|{{#expr:{{{2}}}+0.0{{#pad:5|{{{1}}}|0}}}}}}{{#sub:{{#var:tmp}}|0|{{#expr:{{#pos:{{#var:tmp}}|.}}+{{{1}}}+1}}}}</includeonly> |