Template:Pokémon Infobox: Difference between revisions

Gender unknown update, adding Ability notes/notes for Pokémon with multiple shapes
(Unknown gender.)
(Gender unknown update, adding Ability notes/notes for Pokémon with multiple shapes)
Line 64: Line 64:
| class="roundy" {{#ifeq: {{{form2type1|}}}.{{{abilitylayout|2}}}|.1|width="50%"|colspan="2"}} style="background:#{{{{{type1|???}}} color light}};" | '''[[Ability|<span style="color:#000;">Abilit{{#ifeq: {{{abilitylayout|2}}}|1|y|ies}}</span>]]'''
| class="roundy" {{#ifeq: {{{form2type1|}}}.{{{abilitylayout|2}}}|.1|width="50%"|colspan="2"}} style="background:#{{{{{type1|???}}} color light}};" | '''[[Ability|<span style="color:#000;">Abilit{{#ifeq: {{{abilitylayout|2}}}|1|y|ies}}</span>]]'''
{| class="roundy" width="100%" style="background:#FFF;"
{| class="roundy" width="100%" style="background:#FFF;"
| width="50%" {{#switch: {{{abilitylayout|2}}}|1+2=colspan{{=}}"2"|1=style{{=}}"padding-top:3px; padding-bottom:3px"}} | [[{{{ability1|Cacophony}}} (Ability)|<span style="color:#000;">{{{ability1|Cacophony}}}</span>]]{{#if: {{{ability2|}}}|&nbsp;or [[{{{ability2|Cacophony}}} (Ability)|<span style="color:#000;">{{{ability2|Cacophony}}}</span>]]}}{{#if: {{{ability2-1|{{{abilitym|}}}}}}|<br/><small>{{{form1|{{{name|{{{tmname|}}}}}}}}}</small>}}
| width="50%" {{#switch: {{{abilitylayout|2}}}|1+2=colspan{{=}}"2"|1=style{{=}}"padding-top:3px; padding-bottom:3px"}} | [[{{{ability1|Cacophony}}} (Ability)|<span style="color:#000;">{{{ability1|Cacophony}}}</span>]]{{{ability1note|}}}{{#if: {{{ability2|}}}|&nbsp;or [[{{{ability2|Cacophony}}} (Ability)|<span style="color:#000;">{{{ability2|Cacophony}}}</span>]]{{{ability2note|}}}}}{{#if: {{{ability2-1|{{{abilitym|}}}}}}|<br/><small>{{{form1|{{{name|{{{tmname|}}}}}}}}}</small>}}
{{#ifeq: {{{abilitylayout|2}}}|1+2|{{!}}-}}
{{#ifeq: {{{abilitylayout|2}}}|1+2|{{!}}-}}
| width="50%" s{{{ability2-1|}}}tyle="display: none" | [[{{{ability2-1|Cacophony}}} (Ability)|<span style="color:#000;">{{{ability2-1|Cacophony}}}</span>]]{{#if: {{{ability2-2|}}}|&nbsp;or [[{{{ability2-2|Cacophony}}} (Ability)|<span style="color:#000;">{{{ability2-2|Cacophony}}}</span>]]}}<br/><small>{{{form2|}}}</small>
| width="50%" s{{{ability2-1|}}}tyle="display: none" | [[{{{ability2-1|Cacophony}}} (Ability)|<span style="color:#000;">{{{ability2-1|Cacophony}}}</span>]]{{#if: {{{ability2-2|}}}|&nbsp;or [[{{{ability2-2|Cacophony}}} (Ability)|<span style="color:#000;">{{{ability2-2|Cacophony}}}</span>]]}}<br/><small>{{{form2|}}}</small>
Line 75: Line 75:
| width="50%" s{{{abilitym2|}}}tyle="display: none" | [[{{{abilitym2|Cacophony}}} (Ability)|<span style="color:#000;">{{{abilitym2|Cacophony}}}</span>]]<br/><small>{{{form3|}}}</small>
| width="50%" s{{{abilitym2|}}}tyle="display: none" | [[{{{abilitym2|Cacophony}}} (Ability)|<span style="color:#000;">{{{abilitym2|Cacophony}}}</span>]]<br/><small>{{{form3|}}}</small>
{{#if: {{{abilityold|}}}|{{!}}-
{{#if: {{{abilityold|}}}|{{!}}-
{{!}} colspan="10" style="border-top: 1px solid #{{{{{type1|???}}} color}} {{!}} [[{{{abilityold}}} (Ability)|<span style="color:#000;">{{{abilityold}}}</span>]]<br><small>{{{abilityoldcaption|Old Ability}}}</small>}}
{{!}} colspan="10" style="border-top: 1px solid #{{{{{type1|???}}} color}} {{!}} [[{{{abilityold}}} (Ability)|<span style="color:#000;">{{{abilityold}}}</span>]]<br/><small>{{{abilityoldcaption|Old Ability}}}</small>}}
|}
|}
|-
|-
| width="50%" class="roundy" style="background:#{{{{{type1|???}}} color light}};" | '''[[List of Pokémon by gender ratio|<span style="color:#000;">Gender ratio</span>]]'''
| width="50%" class="roundy" style="background:#{{{{{type1|???}}} color light}};" | '''[[List of Pokémon by gender ratio|<span style="color:#000;">Gender ratio</span>]]'''
{| class="roundy" width="100%" style="background:#FFF;"
{| class="roundy" width="100%" style="background:#FFF;"
| style="{{#switch: {{{gendercode|256}}}|255|256=|display:none;}}" | {{#ifeq:{{{gendercode|256}}}|255|[[:Category:Pokémon with unknown gender|<span style="color:#000;">None (unknown gender)</span>]]|<span style="color:#000;">Unknown</span>}}
| style="{{#switch: {{{gendercode|256}}}|255|256=|display:none;}}" | {{#ifeq:{{{gendercode|256}}}|255|[[Gender unknown|<span style="color:#000;">Gender unknown</span>]]|<span style="color:#000;">Unknown</span>}}
| style="{{#switch: {{{gendercode|256}}}|255|256=display:none;}}" | {{#ifeq: {{{gendercode|256}}}|254||<div class="statbar" style="float:left;background:#3355FF; {{roundy{{#ifeq: {{{gendercode|256}}}|0||left}}|20px}} color:#FFF; height:10px; width:{{#switch: {{{gendercode|256}}}|255=-0.5|254=-0.5|223=11|191=23.5|127=48.5|63=73.5|31=86|0=96.5}}%; border: 0.5px solid black; {{#ifeq: {{{gendercode|256}}}|0||border-right-width:0px;}} overflow: hidden;"></div>}}{{#ifeq: {{{gendercode|256}}}|0||<div class="statbar" style="float:{{#ifeq:{{{gendercode|256}}}|255|right|left}};background:#FF77DD; {{roundy{{#ifeq: {{{gendercode|256}}}|254||right}}|20px}} color:#000; height:10px; width:{{#switch: {{{gendercode|256}}}|255=-0.5|254=96.5|223=86|191=73.5|127=48.5|63=23.5|31=11|0=-0.5}}%; border: 0.5px solid black; overflow: hidden; {{#ifeq: {{{gendercode|256}}}|254||border-left-width:0px;}}"></div>}}
| style="{{#switch: {{{gendercode|256}}}|255|256=display:none;}}" | {{#ifeq: {{{gendercode|256}}}|254||<div class="statbar" style="float:left;background:#3355FF; {{roundy{{#ifeq: {{{gendercode|256}}}|0||left}}|20px}} color:#FFF; height:10px; width:{{#switch: {{{gendercode|256}}}|255=-0.5|254=-0.5|223=11|191=23.5|127=48.5|63=73.5|31=86|0=96.5}}%; border: 0.5px solid black; {{#ifeq: {{{gendercode|256}}}|0||border-right-width:0px;}} overflow: hidden;"></div>}}{{#ifeq: {{{gendercode|256}}}|0||<div class="statbar" style="float:{{#ifeq:{{{gendercode|256}}}|255|right|left}};background:#FF77DD; {{roundy{{#ifeq: {{{gendercode|256}}}|254||right}}|20px}} color:#000; height:10px; width:{{#switch: {{{gendercode|256}}}|255=-0.5|254=96.5|223=86|191=73.5|127=48.5|63=23.5|31=11|0=-0.5}}%; border: 0.5px solid black; overflow: hidden; {{#ifeq: {{{gendercode|256}}}|254||border-left-width:0px;}}"></div>}}
|- style="{{#switch: {{{gendercode|256}}}|255|256=display:none;}}"
|- style="{{#switch: {{{gendercode|256}}}|255|256=display:none;}}"
Line 99: Line 99:
| '''[[Egg cycle|<span style="color:#000;">Hatch time</span>]]'''
| '''[[Egg cycle|<span style="color:#000;">Hatch time</span>]]'''
{| class="roundy" width="100%" style="background:#fff;"
{| class="roundy" width="100%" style="background:#fff;"
| {{#ifeq: {{{eggcycles|Unknown}}}|Unknown|Unknown|{{#expr: 257*{{{eggcycles|0}}}}}&nbsp;-&nbsp;{{#expr: 257*{{{eggcycles|0}}}+256}}}}&nbsp;<small>steps</small>{{#ifeq: {{{egggroupn|Unknown}}}|0|<br><small>''Egg not obtainable''</small>}}
| {{#ifeq: {{{eggcycles|Unknown}}}|Unknown|Unknown|{{#expr: 257*{{{eggcycles|0}}}}}&nbsp;-&nbsp;{{#expr: 257*{{{eggcycles|0}}}+256}}}}&nbsp;<small>steps</small>{{#ifeq: {{{egggroupn|Unknown}}}|0|<br/><small>''Egg not obtainable''</small>}}
|}
|}
|}
|}
Line 209: Line 209:
| class="roundy" style="background:#{{{{{type1|???}}} color light}};" | '''[[List of Pokémon by shape|<span style="color:#000;">Shape</span>]]'''
| class="roundy" style="background:#{{{{{type1|???}}} color light}};" | '''[[List of Pokémon by shape|<span style="color:#000;">Shape</span>]]'''
{| width="100%" class="roundy" style="background:#FFF;"
{| width="100%" class="roundy" style="background:#FFF;"
| [[File:Body{{{body|Unknown}}}.png|32px]]{{#if: {{{body2|}}}|<br/><small>{{{form1|{{{name|{{{tmname|}}}}}}}}}</small>}}
| [[File:Body{{{body|Unknown}}}.png|32px]]{{#if: {{{formbody|}}}|<br/><small>Other forms may have other shapes.</small>}}
| width="50%" {{#if:{{{body2|}}}||style="display:none;"}} | [[File:Body{{{body2|Unknown}}}.png|32px]]<br/><small>{{{form2}}}</small>
|}
|}
| class="roundy" style="background:#{{{{{type1|???}}} color light}};" | '''[[Footprint|<span style="color:#000;">Footprint</span>]]'''
| class="roundy" style="background:#{{{{{type1|???}}} color light}};" | '''[[Footprint|<span style="color:#000;">Footprint</span>]]'''
Line 220: Line 219:
| class="roundy" style="background:#{{{{{type1|???}}} color light}};" | '''[[List of Pokémon by color|<span style="color:#000;">Pokédex color</span>]]'''
| class="roundy" style="background:#{{{{{type1|???}}} color light}};" | '''[[List of Pokémon by color|<span style="color:#000;">Pokédex color</span>]]'''
{| width="100%" class="roundy" style="background:#FFF;"
{| width="100%" class="roundy" style="background:#FFF;"
| <span style="background:#{{#switch: {{{color|Unknown}}}|Red=f05868|Blue=3088f0|Green=40b868|Yellow=f0d048|Purple=a868c0|Pink=f890c8|Brown=b07030|Black=585858|Gray=a0a0a0|White=f0f0f0|68A090}}; {{roundy|3px}}">&emsp;</span> {{{color|Unknown}}}{{#if: {{{formcolors|}}}|<br><small>Other forms may have other colors.</small>}}
| <span style="background:#{{#switch: {{{color|Unknown}}}|Red=f05868|Blue=3088f0|Green=40b868|Yellow=f0d048|Purple=a868c0|Pink=f890c8|Brown=b07030|Black=585858|Gray=a0a0a0|White=f0f0f0|68A090}}; {{roundy|3px}}">&emsp;</span> {{{color|Unknown}}}{{#if: {{{formcolors|}}}|<br/><small>Other forms may have other colors.</small>}}
|}
|}
| class="roundy" style="background:#{{{{{type1|???}}} color light}};" | '''[[List of Pokémon by base friendship|<span style="color:#000;">Base friendship</span>]]'''
| class="roundy" style="background:#{{{{{type1|???}}} color light}};" | '''[[List of Pokémon by base friendship|<span style="color:#000;">Base friendship</span>]]'''
Line 238: Line 237:
{{#if:{{{form5type1|}}}|[[Category:{{{form5type1}}}-type Pokémon|{{{ndex|???}}}]] {{#if:{{{form5type2|}}}|[[Category:{{{form5type2}}}-type Pokémon|{{{ndex|???}}}]] [[Category:Dual-type Pokémon]]|[[Category:Single-type Pokémon]]}}}}
{{#if:{{{form5type1|}}}|[[Category:{{{form5type1}}}-type Pokémon|{{{ndex|???}}}]] {{#if:{{{form5type2|}}}|[[Category:{{{form5type2}}}-type Pokémon|{{{ndex|???}}}]] [[Category:Dual-type Pokémon]]|[[Category:Single-type Pokémon]]}}}}
{{#if:{{{form6type1|}}}|[[Category:{{{form6type1}}}-type Pokémon|{{{ndex|???}}}]] {{#if:{{{form6type2|}}}|[[Category:{{{form6type2}}}-type Pokémon|{{{ndex|???}}}]] [[Category:Dual-type Pokémon]]|[[Category:Single-type Pokémon]]}}}}
{{#if:{{{form6type1|}}}|[[Category:{{{form6type1}}}-type Pokémon|{{{ndex|???}}}]] {{#if:{{{form6type2|}}}|[[Category:{{{form6type2}}}-type Pokémon|{{{ndex|???}}}]] [[Category:Dual-type Pokémon]]|[[Category:Single-type Pokémon]]}}}}
<!--Generation-->{{#if: {{{generation|}}}|[[Category: Generation {{#switch: {{{generation|}}}|1=I|2=II|3=III|4=IV|5=V|6=VI|7=VII|8=VIII|9=IX|10=X|11=XI}} Pokémon]]|}}
<!--Generation-->{{#if: {{{generation|}}}|[[Category:Generation {{#switch: {{{generation|}}}|1=I|2=II|3=III|4=IV|5=V|6=VI|7=VII|8=VIII|9=IX|10=X|11=XI}} Pokémon]]|}}
<!--Gender dist.-->{{#switch: {{{gendercode|256}}}|256=[[Category:Pokémon with unknown gender ratios]]|255=[[Category:Pokémon with unknown gender]]|254=[[Category:Female-only Pokémon]]|223=[[Category:Pokémon with a gender ratio of one male to seven females]]|191=[[Category:Pokémon with a gender ratio of one male to three females]]|127=[[Category:Pokémon with a gender ratio of one male to one female]]|63=[[Category:Pokémon with a gender ratio of three males to one female]]|31=[[Category:Pokémon with a gender ratio of seven males to one female]]|0=[[Category:Male-only Pokémon]]}}
<!--Gender dist.-->{{#switch: {{{gendercode|256}}}|255=[[Category:Gender-unknown Pokémon]]|254=[[Category:Female-only Pokémon]]|223=[[Category:Pokémon with a gender ratio of one male to seven females]]|191=[[Category:Pokémon with a gender ratio of one male to three females]]|127=[[Category:Pokémon with a gender ratio of one male to one female]]|63=[[Category:Pokémon with a gender ratio of three males to one female]]|31=[[Category:Pokémon with a gender ratio of seven males to one female]]|0=[[Category:Male-only Pokémon]]}}
<!--Abilities-->{{#if:{{{abilityd|}}}||[[Category:Pokémon without Hidden Abilities]]}}
<!--Abilities-->{{#if:{{{abilityd|}}}||[[Category:Pokémon without Hidden Abilities]]}}
<!--Experience-->[[Category:Pokémon in the {{#switch: {{{lv100exp|Unknown}}}|600,000|600000=Erratic|800,000|800000=Fast|1,000,000|1000000=Medium Fast|1,059,860|1059860=Medium Slow|1,250,000|1250000=Slow|1,640,000|1640000=Fluctuating|Unknown}} experience group]]
<!--Experience-->[[Category:Pokémon in the {{#switch: {{{lv100exp|Unknown}}}|600,000|600000=Erratic|800,000|800000=Fast|1,000,000|1000000=Medium Fast|1,059,860|1059860=Medium Slow|1,250,000|1250000=Slow|1,640,000|1640000=Fluctuating|Unknown}} experience group]]
Line 248: Line 247:
-->{{#if: {{{egggroup2|}}}|[[Category:{{{egggroup2}}} group Pokémon]]}}
-->{{#if: {{{egggroup2|}}}|[[Category:{{{egggroup2}}} group Pokémon]]}}
</includeonly><noinclude>[[Category:Infobox templates]][[ja:テンプレート:ポケモン図鑑基本情報]]
</includeonly><noinclude>[[Category:Infobox templates]][[ja:テンプレート:ポケモン図鑑基本情報]]
[[zh:Template:神奇宝贝信息框]]
[[zh:Template:寶可夢信息框]]
</noinclude>
</noinclude>