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: | ||
− | + | <table class="wikitable"> | |
− | |||
− | <table class="wikitable | ||
− | |||
<tr> | <tr> | ||
− | {{ | + | <td align="center" {{#if: {{{member_2|}}}||colspan="2"}}>'''{{{member_1}}}'''</td> |
+ | {{#if: {{{member_2|}}}|<td align="center">'''{{{member_2|}}}'''</td>}} | ||
</tr> | </tr> | ||
− | {{# | + | {{#ifeq: {{{ai_can_fuse|}}}|yes|<tr> |
− | {{ | + | <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> | ||
− | {{ | + | <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> |
− | </ | + | {{#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>}} | </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> |
− | </ | + | {{#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>}} | </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> |