Difference between revisions of "User:Soulweaver/PartyPokéTemplate"

m
let's see if this helps with the exp problem...
m (shiny -> postfix, template display fixes, example fix (now exp bar seems to work, though the needed exp for the next level is wrong))
m (let's see if this helps with the exp problem...)
|-
| bgcolor || Background color of the whole complex || transparent
|-
| bgcolor2 || Background color of different sections || transparent
|-
| gamecode || Game code used for the sprite (1r, 1b, 1y, 2g and so). '''See defaultimg!''' || 4p
| itempage || The name of the Bulbapedia page the held item is described on. Used for creating a link; if not defined, the item name will not become a link ||
|-
| hp || The current HP of the Pokémon || ''hpmax''
|-
| hpmax || The max HP of the Pokémon || 10
| m1<br />m2<br />m3<br />m4 || The moves of the Pokémon || First: Struggle<br />Others: blank
|-
| m1pp<br />m2pp<br />m3pp<br />m4pp || The current PP of each of the moves || ''m1ppmax<br />m2ppmax<br />m3ppmax<br />m4ppmax''
|-
| m1ppmax<br />m2ppmax<br />m3ppmax<br />m4ppmax || The max PP of each of the moves || 10
! colspan="3" | TOGGLE PARAMETERS
|-
| expscheme || Defines the EXP formula used by the Pokémon. This is used for calculating the EXP bar on the stats section. Acceptable values are 600k, 800k, 1M, 1.05M, 1.25M and 1.64M; you can find the correct value by checking the Pokémon's Bulbapedia page. It's the value named "Experience at Lv. 100". Incorrect value reverts back to 1.000.000 EXP scheme. || 1M
|-
| defaultimg || Defines whether the template should use a specific game version sprite (Spr xx xxx.png/gif) or the default sprite (xxx.png). Acceptable values are yes (use the short default version) and no. || no
|boxwidth=100%
|bgcolor=#{{ghost color}}
|bgcolor2=#{{ghost color light}}
|gamecode=4p
|gameext=png
|boxwidth=100%
|bgcolor=#{{ghost color}}
|bgcolor2=#{{ghost color light}}
|gamecode=4p
|gameext=png
 
</noinclude><includeonly>{| class="expandable" style="text-align: center; width: {{{boxwidth|100%}}}; background-color: {{{bgcolor|transparent}}}; -moz-border-radius: 16px; -webkit-border-radius: 16px;"
| rowspan="5" style="width: 1%;" | <div style="background-color: {{{bgcolor2|transparent}}}; padding: {{#ifeq: {{{bgcolor2|transparent}}}|transparent|0|16}}px; moz-border-radius: 80px;">{{#ifeq: {{{defaultimg|}}}|yes|[[Image:{{{no|001}}}{{{postfix|}}}.png]]|[[Image:Spr {{{gamecode|4p}}} {{{no|001}}}{{{postfix|}}}.{{{gameext|png}}}]]}}</div>
! [[Image:Ball{{{ball|Poke}}}status.png]] '''{{p|{{User:UltimateSephiroth/No2PKMN|{{{no|001}}}}}|{{#ifeq: {{{nickname|}}}||{{uc:{{User:UltimateSephiroth/No2PKMN|{{{no|001}}}}}}}|{{{nickname|}}}}}}}''' <span style="font-size: 80%;">Lv. {{{level|1}}}</span> {{{gender|}}}
| {{bigic|{{{type1|Normal}}}}}{{#ifeq: {{{type2|}}}|||{{bigic|{{{type2}}}}}}}
|- style="vertical-align: top;"
| style="width: 50%;" |
{| class="{{#ifeq: {{{statsdisp|}}}|autoshow|collapsible|expandable}}" style="width: 100%; background-color: {{{bgcolorbgcolor2|transparent}}}; {{#ifeq: {{{statsdisp|}}}|hide|display: none;|}}"
|-
! colspan="4" | Stats
| HP/EXP
| colspan="3" style="width: 100%;" | <div style="width: 100%; border: 1px black solid; border-bottom: 0px black none; -moz-border-radius-topleft: 6px; -moz-border-radius-topright: 6px; height: 8px;"><div style="width: {{#expr: ceil({{{hp|{{{hpmax|10}}}}}}/{{{hpmax|10}}}*100)}}%; background-color: #{{#if: {{{hp|{{{hpmax|10}}}}}}/{{{hpmax|10}}} > 0.5|007f00|{{#if: {{{hp|{{{hpmax|10}}}}}}/{{{hpmax|10}}} > 0.1|ffff00|ff0000}}}}; -moz-border-radius-topleft: 6px; -moz-border-radius-topright: 6px; height: 8px;"></div></div>
<div style="width: 100%; border: 1px black solid; -moz-border-radius-bottomleft: 6px; -moz-border-radius-bottomright: 6px; border-top: 0px black none; height: 4px;"><div style="width: {{#ifeq: {{{level|1}}}|100|100| {{#expr: ceil(({{{exp|0}}} - {{#ifeq: {{{level|1}}}|1|0|{{#ifeq: {{{expscheme|1M}}}|1M|{{#expr: {{{level}}}^3}}|{{#ifeq: {{{expscheme}}}|800k|{{#expr: floor((4*{{{level}}}^3)/5)}}|{{#ifeq: {{{expscheme}}}|1.05M|{{#expr: floor((6*{{{level}}}^3)/5 - 15*({{{level}}}^2) + 100*{{{level}}} - 140)}}|{{#ifeq: {{{expscheme}}}|1.25M|{{#expr: floor((5*{{{level}}}^3)/4)}}|{{#ifeq: {{{expscheme}}}|1.64M|{{#if: {{{level}}} < 1617|{{#expr: floor(({{{level}}}^3)*((24 + floor(({{{level}}} + 1)/3))/50))}}|{{#if: {{{level}}} < 3637|{{#expr: floor(({{{level}}}^3)*((14 + {{{level}}})/50))}}|{{#expr: floor(({{{level}}}^3)*((32 + floor({{{level}}}/2))/50))}}}}}}|{{#ifeq: {{{expsheme}}}|600k|{{#if: {{{level}}} < 51|{{#expr: floor({{{level}}}^3 * ((100 - {{{level}}})/50))}}|{{#if: {{{level}}} < 69|{{#expr: floor({{{level}}}^3 * ((150 - {{{level}}})/100))}}|{{#if: {{{level}}} > 98|{{#expr: floor({{{level}}}^3 * ((160 - {{{level}}})/100))}}|{{#ifeq: {{#expr: {{{level}}} mod 3}}|0|{{#expr: floor({{{level}}}^3 * (1.274 - (1/50)*floor({{{level}}} / 3)))}}|{{#ifeq: {{#expr: {{{level}}} mod 3}}|1|{{#expr: floor({{{level}}}^3 * (1.274 - (1/50)*floor({{{level}}} / 3) - 0.008))}}|{{#expr: floor({{{level}}}^3 * (1.274 - (1/50)*floor({{{level}}} / 3) - 0.014))}}}}}}}}}}}}|{{#expr: {{{level}}}^3}}}}}}}}}}}}}}}})/({{#ifeq: {{{expscheme|1M}}}|1M|{{#expr: ({{{level|1}}} + 1)^3}}|{{#ifeq: {{{expscheme}}}|800k|{{#expr: floor((4*({{{level|1}}} + 1)^3)/5)}}|{{#ifeq: {{{expscheme}}}|1.05M|{{#expr: floor((6*({{{level|1}}} + 1)^3)/5 - 15*(({{{level|1}}} + 1)^2) + 100*({{{level}}} + 1) - 140)}}|{{#ifeq: {{{expscheme}}}|1.25M|{{#expr: floor((5*({{{level|1}}} + 1)^3)/4)}}|{{#ifeq: {{{expscheme}}}|1.64M|{{#if: ({{{level|1}}} + 1) < 1617|{{#expr: floor((({{{level|1}}} + 1)^3)*((24 + floor(({{{level|1}}} + 2)/3))/50))}}|{{#if: ({{{level}}} + 1) < 3637|{{#expr: floor((({{{level}}} + 1)^3)*((14 + ({{{level}}} + 1))/50))}}|{{#expr: floor((({{{level}}} + 1)^3)*((32 + floor(({{{level}}} + 1)/2))/50))}}}}}}|{{#ifeq: {{{expsheme}}}|600k|{{#if: ({{{level|1}}} + 1) < 51|{{#expr: floor(({{{level|1}}} + 1)^3 * ((100 - ({{{level|1}}} + 1))/50))}}|{{#if: ({{{level}}} + 1) < 69|{{#expr: floor(({{{level}}} + 1)^3 * ((150 - ({{{level}}} + 1))/100))}}|{{#if: ({{{level}}} + 1) > 98|{{#expr: floor(({{{level}}} + 1)^3 * ((160 - ({{{level}}} + 1))/100))}}|{{#ifeq: {{#expr: ({{{level}}} + 1) mod 3}}|0|{{#expr: floor(({{{level}}} + 1)^3 * (1.274 - (1/50)*floor(({{{level}}} + 1) / 3)))}}|{{#ifeq: {{#expr: ({{{level}}} + 1) mod 3}}|1|{{#expr: floor(({{{level}}} + 1)^3 * (1.274 - (1/50)*floor(({{{level}}} + 1) / 3) - 0.008))}}|{{#expr: floor(({{{level}}} + 1)^3 * (1.274 - (1/50)*floor(({{{level}}} + 1) / 3) - 0.014))}}}}}}}}}}}}|{{#expr: ({{{level|1}}} + 1)^3}}}}}}}}}}}}}} - {{#ifeq: {{{level|1}}}|1|0|{{#ifeq: {{{expscheme|1M}}}|1M|{{#expr: {{{level}}}^3}}|{{#ifeq: {{{expscheme}}}|800k|{{#expr: floor((4*{{{level}}}^3)/5)}}|{{#ifeq: {{{expscheme}}}|1.05M|{{#expr: floor((6*{{{level}}}^3)/5 - 15*({{{level}}}^2) + 100*{{{level}}} - 140)}}|{{#ifeq: {{{expscheme}}}|1.25M|{{#expr: floor((5*{{{level}}}^3)/4)}}|{{#ifeq: {{{expscheme}}}|1.64M|{{#if: {{{level}}} < 1617|{{#expr: floor(({{{level}}}^3)*((24 + floor(({{{level}}} + 1)/3))/50))}}|{{#if: {{{level}}} < 3637|{{#expr: floor(({{{level}}}^3)*((14 + {{{level}}})/50))}}|{{#expr: floor(({{{level}}}^3)*((32 + floor({{{level}}}/2))/50))}}}}}}|{{#ifeq: {{{expsheme}}}|600k|{{#if: {{{level}}} < 51|{{#expr: floor({{{level}}}^3 * ((100 - {{{level}}})/50))}}|{{#if: {{{level}}} < 69|{{#expr: floor({{{level}}}^3 * ((150 - {{{level}}})/100))}}|{{#if: {{{level}}} > 98|{{#expr: floor({{{level}}}^3 * ((160 - {{{level}}})/100))}}|{{#ifeq: {{#expr: {{{level}}} mod 3}}|0|{{#expr: floor({{{level}}}^3 * (1.274 - (1/50)*floor({{{level}}} / 3)))}}|{{#ifeq: {{#expr: {{{level}}} mod 3}}|1|{{#expr: floor({{{level}}}^3 * (1.274 - (1/50)*floor({{{level}}} / 3) - 0.008))}}|{{#expr: floor({{{level}}}^3 * (1.274 - (1/50)*floor({{{level}}} / 3) - 0.014))}}}}}}}}}}}}|{{#expr: {{{level}}}^3}}}}}}}}}}}}}}}})*100)}}}}%; background-color: #007fff; -moz-border-radius-bottomleft: 6px; -moz-border-radius-bottomright: 6px; height: 4px;"></div></div>{{{hp|{{{hpmax|10}}}}}} / {{{hpmax|10}}}{{#ifeq: {{{showevs|hide}}}|show|<br /><span style="font-size: 90%;">HP EVs: {{{hpev|0}}}</span>}}<br />{{#ifeq: {{{level|1}}}|100|0|{{#expr: {{#ifeq: {{{expscheme|1M}}}|1M|{{#expr: ({{{level|1}}} + 1)^3}}|{{#ifeq: {{{expscheme}}}|800k|{{#expr: floor((4*({{{level|1}}} + 1)^3)/5)}}|{{#ifeq: {{{expscheme}}}|1.05M|{{#expr: floor((6*({{{level|1}}} + 1)^3)/5 - 15*(({{{level|1}}} + 1)^2) + 100*({{{level}}} + 1) - 140)}}|{{#ifeq: {{{expscheme}}}|1.25M|{{#expr: floor((5*({{{level|1}}} + 1)^3)/4)}}|{{#ifeq: {{{expscheme}}}|1.64M|{{#if: ({{{level|1}}} + 1) < 1617|{{#expr: floor((({{{level|1}}} + 1)^3)*((24 + floor(({{{level|1}}} + 2)/3))/50))}}|{{#if: ({{{level}}} + 1) < 3637|{{#expr: floor((({{{level}}} + 1)^3)*((14 + ({{{level}}} + 1))/50))}}|{{#expr: floor((({{{level}}} + 1)^3)*((32 + floor(({{{level}}} + 1)/2))/50))}}}}}}|{{#ifeq: {{{expsheme}}}|600k|{{#if: ({{{level|1}}} + 1) < 51|{{#expr: floor(({{{level|1}}} + 1)^3 * ((100 - ({{{level|1}}} + 1))/50))}}|{{#if: ({{{level}}} + 1) < 69|{{#expr: floor(({{{level}}} + 1)^3 * ((150 - ({{{level}}} + 1))/100))}}|{{#if: ({{{level}}} + 1) > 98|{{#expr: floor(({{{level}}} + 1)^3 * ((160 - ({{{level}}} + 1))/100))}}|{{#ifeq: {{#expr: ({{{level}}} + 1) mod 3}}|0|{{#expr: floor(({{{level}}} + 1)^3 * (1.274 - (1/50)*floor(({{{level}}} + 1) / 3)))}}|{{#ifeq: {{#expr: ({{{level}}} + 1) mod 3}}|1|{{#expr: floor(({{{level}}} + 1)^3 * (1.274 - (1/50)*floor(({{{level}}} + 1) / 3) - 0.008))}}|{{#expr: floor(({{{level}}} + 1)^3 * (1.274 - (1/50)*floor(({{{level}}} + 1) / 3) - 0.014))}}}}}}}}}}}}|{{#expr: ({{{level|1}}} + 1)^3}}}}}}}}}}}}}} - {{{exp|0}}}}}}} EXP. Points to Lv. {{#ifeq: {{{level|1}}}|100|100|{{#expr: {{{level|1}}}+1}}}}
|-
| Attack || {{{attack|7}}}{{#ifeq: {{{showevs|hide}}}|show|<br /><span style="font-size: 90%;">EVs: {{{attackev|0}}}</span>}} || Defense || {{{defense|7}}}{{#ifeq: {{{showevs|hide}}}|show|<br /><span style="font-size: 90%;">EVs: {{{defenseev|0}}}</span>}}
|}
| colspan="2" |
{| class="{{#ifeq: {{{movesdisp|}}}|autoshow|collapsible|expandable}}" style="width: 100%; background-color: {{{bgcolorbgcolor2|transparent}}}; {{#ifeq: {{{movesdisp|}}}|hide|display: none;|}}"
! colspan="4" | Moves
|-
7,545

edits