Template:Party/Tag: Difference between revisions

From The Pokemon Insurgence Wiki
(Adding support for Multi Battles with more than 6 Pokemon)
(Making code a little cleaner)
Line 25: Line 25:
|-
|-
| class="roundy" width="96px" style="background: #{{{headcolor|9DC1B7}}}; line-height:10px" | {{#switch: {{{pokemon1|1}}}
| class="roundy" width="96px" style="background: #{{{headcolor|9DC1B7}}}; line-height:10px" | {{#switch: {{{pokemon1|1}}}
|1=[[File:Ballfull.png|link=]][[File:Ballempty.png|link=]][[File:Ballempty.png|link=]]{{#ifexpr: {{{pokemon2|1}}} > 3 | [[File:Ballempty.png|link=]][[File:Ballempty.png|link=]][[File:Ballempty.png|link=]]|}}
|1=[[File:Ballfull.png|link=]][[File:Ballempty.png|link=]][[File:Ballempty.png|link=]]
|2=[[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballempty.png|link=]]{{#ifexpr: {{{pokemon2|1}}} > 3 | [[File:Ballempty.png|link=]][[File:Ballempty.png|link=]][[File:Ballempty.png|link=]]|}}
|2=[[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballempty.png|link=]]
|3=[[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]]{{#ifexpr: {{{pokemon2|1}}} > 3 | [[File:Ballempty.png|link=]][[File:Ballempty.png|link=]][[File:Ballempty.png|link=]]|}}
|3=[[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]]
|4=[[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballempty.png|link=]][[File:Ballempty.png|link=]]
|4=[[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballempty.png|link=]][[File:Ballempty.png|link=]]
|5=[[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballempty.png|link=]]
|5=[[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballempty.png|link=]]
|6=[[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]]
|6=[[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]]
}}{{#switch: {{{pokemon2|1}}}
}}{{#ifexpr: {{#expr: {{{pokemon2|1}}} > 3 and {{{pokemon1|1}}} <= 3}} | [[File:Ballempty.png|link=]][[File:Ballempty.png|link=]][[File:Ballempty.png|link=]]|}}{{#switch: {{{pokemon2|1}}}
|0=[[File:Ballempty.png|link=]][[File:Ballempty.png|link=]][[File:Ballempty.png|link=]]
|0=[[File:Ballempty.png|link=]][[File:Ballempty.png|link=]][[File:Ballempty.png|link=]]
|1=[[File:Ballfull.png|link=]][[File:Ballempty.png|link=]][[File:Ballempty.png|link=]]{{#ifexpr: {{{pokemon1|1}}} > 3 | [[File:Ballempty.png|link=]][[File:Ballempty.png|link=]][[File:Ballempty.png|link=]]|}}
|1=[[File:Ballfull.png|link=]][[File:Ballempty.png|link=]][[File:Ballempty.png|link=]]
|2=[[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballempty.png|link=]]{{#ifexpr: {{{pokemon1|1}}} > 3 | [[File:Ballempty.png|link=]][[File:Ballempty.png|link=]][[File:Ballempty.png|link=]]|}}
|2=[[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballempty.png|link=]]
|3=[[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]]{{#ifexpr: {{{pokemon1|1}}} > 3 | [[File:Ballempty.png|link=]][[File:Ballempty.png|link=]][[File:Ballempty.png|link=]]|}}
|3=[[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]]
|4=[[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballempty.png|link=]][[File:Ballempty.png|link=]]
|4=[[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballempty.png|link=]][[File:Ballempty.png|link=]]
|5=[[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballempty.png|link=]]
|5=[[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballempty.png|link=]]
|6=[[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]]
|6=[[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]][[File:Ballfull.png|link=]]
}}
}}{{#ifexpr: {{#expr: {{{pokemon1|1}}} > 3 and {{{pokemon2|1}}} <= 3}} | [[File:Ballempty.png|link=]][[File:Ballempty.png|link=]][[File:Ballempty.png|link=]]|}}
|}
|}
|}
|}
Line 49: Line 49:
|}<br/ style="clear:both;">
|}<br/ style="clear:both;">
[[Category:Party templates]]</noinclude>
[[Category:Party templates]]</noinclude>
<noinclude>
{{Party/Tag
|color={{black color light}}
|bordercolor={{black color dark}}
|headcolor={{black color}}
|color1={{dark color light}}
|bordercolor1={{dark color dark}}
|headcolor1={{dark color}}
|color2={{ghost color light}}
|bordercolor2={{ghost color dark}}
|headcolor2={{ghost color}}
|game=Insurgence
|class=Champion
|sprite=Tobias.png
|class2=Champion
|sprite2=Graham.png
|name={{color2|000|Tobias}}
|name2={{color2|000|Graham}}
|size=80px
|size2=80px
|location=Pokémon League
|prize={{pdollar}}21600
|pokemon1=4
|pokemon2=4}}
{{Party/Footer}}
{{Party/Tag
|color={{black color light}}
|bordercolor={{black color dark}}
|headcolor={{black color}}
|color1={{dark color light}}
|bordercolor1={{dark color dark}}
|headcolor1={{dark color}}
|color2={{ghost color light}}
|bordercolor2={{ghost color dark}}
|headcolor2={{ghost color}}
|game=Insurgence
|class=Champion
|sprite=Tobias.png
|class2=Champion
|sprite2=Graham.png
|name={{color2|000|Tobias}}
|name2={{color2|000|Graham}}
|size=80px
|size2=80px
|location=Pokémon League
|prize={{pdollar}}21600
|pokemon1=3
|pokemon2=4}}
{{Party/Footer}}
{{Party/Tag
|color={{black color light}}
|bordercolor={{black color dark}}
|headcolor={{black color}}
|color1={{dark color light}}
|bordercolor1={{dark color dark}}
|headcolor1={{dark color}}
|color2={{ghost color light}}
|bordercolor2={{ghost color dark}}
|headcolor2={{ghost color}}
|game=Insurgence
|class=Champion
|sprite=Tobias.png
|class2=Champion
|sprite2=Graham.png
|name={{color2|000|Tobias}}
|name2={{color2|000|Graham}}
|size=80px
|size2=80px
|location=Pokémon League
|prize={{pdollar}}21600
|pokemon1=5
|pokemon2=3}}
{{Party/Footer}}
{{Party/Tag
|color={{black color light}}
|bordercolor={{black color dark}}
|headcolor={{black color}}
|color1={{dark color light}}
|bordercolor1={{dark color dark}}
|headcolor1={{dark color}}
|color2={{ghost color light}}
|bordercolor2={{ghost color dark}}
|headcolor2={{ghost color}}
|game=Insurgence
|class=Champion
|sprite=Tobias.png
|class2=Champion
|sprite2=Graham.png
|name={{color2|000|Tobias}}
|name2={{color2|000|Graham}}
|size=80px
|size2=80px
|location=Pokémon League
|prize={{pdollar}}21600
|pokemon1=6
|pokemon2=6}}
{{Party/Footer}}
</noinclude>

Revision as of 04:48, 29 December 2020