Jump to content

Template:Gen 1 Stat Calculator: Difference between revisions

m
added error handling
No edit summary
m (added error handling)
Line 1:
<!-- Args: Base Stat, Stat EXP, DVs, Level, Is HP stat? !-->
<includeonly>{{#iferror:{{#switch: {{{5}}}
|HP = {{#expr: floor(((({{{1}}} + {{{3}}}) * 2 + floor(ceil(sqrt {{{2}}}) / 4)) * {{{4}}}) / 100) + {{{4}}} + 10}}
|#default = {{#expr: floor(((({{{1}}} + {{{3}}}) * 2 + floor(ceil(sqrt {{{2}}}) / 4)) * {{{4}}}) / 100) + 5}}
}}|error}}</includeonly>
<noinclude>
{{Gen_1_Stat_Calculator|65|65535|15|50|HP}}
{{Gen_1_Stat_Calculator|error|65535|15|50|HP}}
</noinclude>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.