Difference between revisions of "Template:BattleTeam"

From Cassette Beasts
(Make team member names headers)
(Change to use BattleTeamCell template)
Line 8: Line 8:
 
</tr>}}
 
</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>
+
{{BattleTeamCell
{{#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>}}
+
| monster = {{{monster_1}}}
 +
}}
 +
{{#if: {{{monster_2|}}}|
 +
{{BattleTeamCell
 +
| monster = {{{monster_2}}}
 +
}}
 +
}}
 
</tr>
 
</tr>
 
{{#if: {{{monster_3|}}}|<tr>
 
{{#if: {{{monster_3|}}}|<tr>
<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>
+
{{BattleTeamCell
{{#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>}}
+
| monster = {{{monster_3}}}
 +
}}
 +
{{#if: {{{monster_4|}}}|
 +
{{BattleTeamCell
 +
| monster = {{{monster_4}}}
 +
}}
 +
}}
 
</tr>}}
 
</tr>}}
 
{{#if: {{{monster_5|}}}|<tr>
 
{{#if: {{{monster_5|}}}|<tr>
<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>
+
{{BattleTeamCell
{{#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>}}
+
| monster = {{{monster_5}}}
 +
}}
 +
{{#if: {{{monster_6|}}}|
 +
{{BattleTeamCell
 +
| monster = {{{monster_6}}}
 +
}}
 +
}}
 
</tr>}}
 
</tr>}}
 
</table><noinclude>
 
</table><noinclude>

Revision as of 00:58, 24 May 2023