Difference between revisions of "Template:BattleTeam"

From Cassette Beasts
(Only include provided monsters)
(Make template more compact and add "can fuse" info)
Line 1: Line 1:
* {{{member_1}}}
+
<table class="wikitable">
{{#if: {{{member_2|}}}|* {{{member_2}}}}}
 
<table class="wikitable sortable">
 
<tr><th></th><th>Species</th><th>Number</th><th>Type</th><th>HP</th><th>M Atk</th><th>M Def</th><th>R Atk</th><th>R Def</th><th>Speed</th></tr>
 
 
<tr>
 
<tr>
{{SpeciesSummaryStatsTableCols|{{{monster_1}}}}}
+
<td align="center" {{#if: {{{member_2|}}}||colspan="2"}}>'''{{{member_1}}}'''</td>
 +
{{#if: {{{member_2|}}}|<td align="center">'''{{{member_2|}}}'''</td>}}
 
</tr>
 
</tr>
{{#if: {{{monster_2|}}}|<tr>
+
{{#ifeq: {{{ai_can_fuse|}}}|yes|<tr>
{{SpeciesSummaryStatsTableCols|{{{monster_2}}}}}
+
<td align="center" {{#if: {{{member_2|}}}|colspan="2"}}>''Can fuse''</td>
 
</tr>}}
 
</tr>}}
 +
<tr>
 +
<td align="center" style="padding: 10px;">[[File:{{#invoke:Database|get_species|{{{monster_1}}}|name}}.png|80x42px]]<br/>{{#invoke:Database|get_link|species|{{{monster_1}}}}}<br/>{{TypeButton|{{#invoke:Database|get_species|{{{monster_1}}}|elemental_type}}}}</td>
 +
{{#if: {{{monster_2|}}}|<td align="center" style="padding: 10px;">[[File:{{#invoke:Database|get_species|{{{monster_2}}}|name}}.png|80x42px]]<br/>{{#invoke:Database|get_link|species|{{{monster_2}}}}}<br/>{{TypeButton|{{#invoke:Database|get_species|{{{monster_2}}}|elemental_type}}}}</td>}}
 +
</tr>
 
{{#if: {{{monster_3|}}}|<tr>
 
{{#if: {{{monster_3|}}}|<tr>
{{SpeciesSummaryStatsTableCols|{{{monster_3}}}}}
+
<td align="center" style="padding: 10px;">[[File:{{#invoke:Database|get_species|{{{monster_3}}}|name}}.png|80x42px]]<br/>{{#invoke:Database|get_link|species|{{{monster_3}}}}}<br/>{{TypeButton|{{#invoke:Database|get_species|{{{monster_3}}}|elemental_type}}}}</td>
</tr>}}
+
{{#if: {{{monster_4|}}}|<td align="center" style="padding: 10px;">[[File:{{#invoke:Database|get_species|{{{monster_4}}}|name}}.png|80x42px]]<br/>{{#invoke:Database|get_link|species|{{{monster_4}}}}}<br/>{{TypeButton|{{#invoke:Database|get_species|{{{monster_4}}}|elemental_type}}}}</td>}}
{{#if: {{{monster_4|}}}|<tr>
 
{{SpeciesSummaryStatsTableCols|{{{monster_4}}}}}
 
 
</tr>}}
 
</tr>}}
 
{{#if: {{{monster_5|}}}|<tr>
 
{{#if: {{{monster_5|}}}|<tr>
{{SpeciesSummaryStatsTableCols|{{{monster_5}}}}}
+
<td align="center" style="padding: 10px;">[[File:{{#invoke:Database|get_species|{{{monster_5}}}|name}}.png|80x42px]]<br/>{{#invoke:Database|get_link|species|{{{monster_5}}}}}<br/>{{TypeButton|{{#invoke:Database|get_species|{{{monster_5}}}|elemental_type}}}}</td>
</tr>}}
+
{{#if: {{{monster_6|}}}|<td align="center" style="padding: 10px;">[[File:{{#invoke:Database|get_species|{{{monster_6}}}|name}}.png|80x42px]]<br/>{{#invoke:Database|get_link|species|{{{monster_6}}}}}<br/>{{TypeButton|{{#invoke:Database|get_species|{{{monster_6}}}|elemental_type}}}}</td>}}
{{#if: {{{monster_6|}}}|<tr>
 
{{SpeciesSummaryStatsTableCols|{{{monster_6}}}}}
 
 
</tr>}}
 
</tr>}}
</table>
+
</table><noinclude>
 +
 
 +
== Examples ==
 +
{{BattleTeam
 +
| member_1 = Wallace
 +
| member_2 = Ranger
 +
| monster_1 = Traffikrab
 +
| monster_2 = Traffikrab
 +
| monster_3 = Lobstacle
 +
}}
 +
 
 +
{{BattleTeam
 +
| member_1 = Wallace
 +
| member_2 = Ranger
 +
| ai_can_fuse = yes
 +
| monster_1 = Weevilite
 +
| monster_2 = Weevilite
 +
| monster_3 = Lobstacle
 +
| monster_4 = Fungogh
 +
}}
 +
 
 +
{{BattleTeam
 +
| member_1 = Wallace
 +
| monster_1 = Weevilite
 +
| monster_2 = Weevilite
 +
| monster_3 = Lobstacle
 +
| monster_4 = Fungogh
 +
| monster_5 = Lobstacle
 +
| monster_6 = Fungogh
 +
}}
 +
 
 +
{{BattleTeam
 +
| member_1 = Wallace
 +
| monster_1 = Weevilite
 +
}}
 +
 
 +
</noinclude>

Revision as of 06:42, 11 May 2023