Template:Pokémon Infobox: Difference between revisions

m
no edit summary
m (Setting up to default to no generation & to not categorize unless a generation is set. Shouldn't affect any existing Gen I-VI articles.)
mNo edit summary
Line 254: Line 254:
|}
|}
|}<includeonly>
|}<includeonly>
<!--Types-->{{#if:{{{type1|}}}|[[Category:{{{type1}}}-type Pokémon|{{{ndex}}}]]}}{{#if:{{{type2|}}}|[[Category:{{{type2}}}-type Pokémon|{{{ndex}}}]]}}{{#if:{{{form2type1|}}}|[[Category:{{{form2type1}}}-type Pokémon|{{{ndex}}}]]}}{{#if:{{{form2type2|}}}|[[Category:{{{form2type2}}}-type Pokémon|{{{ndex}}}]]}}{{#if:{{{form3type1|}}}|[[Category:{{{form3type1}}}-type Pokémon|{{{ndex}}}]]}}{{#if:{{{form3type2|}}}|[[Category:{{{form3type2}}}-type Pokémon|{{{ndex}}}]]}}{{#if:{{{form4type1|}}}|[[Category:{{{form4type1}}}-type Pokémon|{{{ndex}}}]]}}{{#if:{{{form4type2|}}}|[[Category:{{{form4type2}}}-type Pokémon|{{{ndex}}}]]}}{{#if:{{{form5type1|}}}|[[Category:{{{form5type1}}}-type Pokémon|{{{ndex}}}]]}}{{#if:{{{form5type2|}}}|[[Category:{{{form5type2}}}-type Pokémon|{{{ndex}}}]]}}{{#if:{{{form6type1|}}}|[[Category:{{{form6type1}}}-type Pokémon|{{{ndex}}}]]}}{{#if:{{{form6type2|}}}|[[Category:{{{form6type2}}}-type Pokémon|{{{ndex}}}]]}}{{#if: {{{type2|}}}{{{form2type2|}}}{{{form3type2|}}}{{{form4type2|}}}{{{form5type2|}}}{{{form6type2|}}}|[[Category:Dual-type Pokémon]]}}{{#if: {{{type2|}}}||[[Category:Single-type Pokémon]]}}{{#ifexpr: {{{typebox|}}} > 1|{{#if: {{{form2type2|}}}||[[Category:Single-type Pokémon]]}}}}{{#ifexpr: {{{typebox|}}} > 2|{{#if: {{{form3type2|}}}||[[Category:Single-type Pokémon]]}}}}{{#ifexpr: {{{typebox|}}} > 3|{{#if: {{{form4type2|}}}||[[Category:Single-type Pokémon]]}}}}{{#ifexpr: {{{typebox|}}} > 4|{{#if: {{{form5type2|}}}||[[Category:Single-type Pokémon]]}}}}{{#ifexpr: {{{typebox|}}} > 5|{{#if: {{{form6type2|}}}||[[Category:Single-type Pokémon]]}}}}
<!--Types-->{{#if:{{{type1|}}}|[[Category:{{{type1}}}-type Pokémon|{{{ndex|}}}]]}}{{#if:{{{type2|}}}|[[Category:{{{type2}}}-type Pokémon|{{{ndex|}}}]]}}{{#if:{{{form2type1|}}}|[[Category:{{{form2type1}}}-type Pokémon|{{{ndex|}}}]]}}{{#if:{{{form2type2|}}}|[[Category:{{{form2type2}}}-type Pokémon|{{{ndex|}}}]]}}{{#if:{{{form3type1|}}}|[[Category:{{{form3type1}}}-type Pokémon|{{{ndex|}}}]]}}{{#if:{{{form3type2|}}}|[[Category:{{{form3type2}}}-type Pokémon|{{{ndex|}}}]]}}{{#if:{{{form4type1|}}}|[[Category:{{{form4type1}}}-type Pokémon|{{{ndex|}}}]]}}{{#if:{{{form4type2|}}}|[[Category:{{{form4type2}}}-type Pokémon|{{{ndex|}}}]]}}{{#if:{{{form5type1|}}}|[[Category:{{{form5type1}}}-type Pokémon|{{{ndex|}}}]]}}{{#if:{{{form5type2|}}}|[[Category:{{{form5type2}}}-type Pokémon|{{{ndex|}}}]]}}{{#if:{{{form6type1|}}}|[[Category:{{{form6type1}}}-type Pokémon|{{{ndex|}}}]]}}{{#if:{{{form6type2|}}}|[[Category:{{{form6type2}}}-type Pokémon|{{{ndex|}}}]]}}{{#if: {{{type2|}}}{{{form2type2|}}}{{{form3type2|}}}{{{form4type2|}}}{{{form5type2|}}}{{{form6type2|}}}|[[Category:Dual-type Pokémon]]}}{{#if: {{{type2|}}}||[[Category:Single-type Pokémon]]}}{{#ifexpr: {{{typebox|}}} > 1|{{#if: {{{form2type2|}}}||[[Category:Single-type Pokémon]]}}}}{{#ifexpr: {{{typebox|}}} > 2|{{#if: {{{form3type2|}}}||[[Category:Single-type Pokémon]]}}}}{{#ifexpr: {{{typebox|}}} > 3|{{#if: {{{form4type2|}}}||[[Category:Single-type Pokémon]]}}}}{{#ifexpr: {{{typebox|}}} > 4|{{#if: {{{form5type2|}}}||[[Category:Single-type Pokémon]]}}}}{{#ifexpr: {{{typebox|}}} > 5|{{#if: {{{form6type2|}}}||[[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]]|}}
<!--Regional Pokédex-->{{#ifexpr: {{{ndex|999}}} < 152|[[Category:Pokémon in the Kanto Pokédex|{{{ndex|}}}]]}}{{#if: {{{jdex|}}}|[[Category:Pokémon in the Johto Pokédex|{{{jdex|}}}]]}}{{#ifexpr: {{{hdex|999}}} < 203|[[Category:Pokémon in the Hoenn Pokédex|{{{hdex|}}}]]}}{{#if: {{{sdex|}}}|[[Category:Pokémon in the Sinnoh Pokédex|{{{sdex|}}}]]}}{{#if: {{{udex|}}}|[[Category:Pokémon in the Unova Pokédex in Black and White Versions|{{{udex|}}}]]}}{{#if: {{{u2dex|}}}|[[Category:Pokémon in the Unova Pokédex in Black and White Versions 2|{{{u2dex|}}}]]}}{{#if: {{{kdex|}}}|[[Category:Pokémon in the Kalos Pokédex|{{{kdex|}}}]]}}
<!--Regional Pokédex-->{{#ifexpr: {{{ndex|999}}} < 152|[[Category:Pokémon in the Kanto Pokédex|{{{ndex|}}}]]}}{{#if: {{{jdex|}}}|[[Category:Pokémon in the Johto Pokédex|{{{jdex|}}}]]}}{{#ifexpr: {{{hdex|999}}} < 203|[[Category:Pokémon in the Hoenn Pokédex|{{{hdex|}}}]]}}{{#if: {{{sdex|}}}|[[Category:Pokémon in the Sinnoh Pokédex|{{{sdex|}}}]]}}{{#if: {{{udex|}}}|[[Category:Pokémon in the Unova Pokédex in Black and White Versions|{{{udex|}}}]]}}{{#if: {{{u2dex|}}}|[[Category:Pokémon in the Unova Pokédex in Black and White Versions 2|{{{u2dex|}}}]]}}{{#if: {{{kdex|}}}|[[Category:Pokémon in the Kalos Pokédex|{{{kdex|}}}]]}}