Template:BattleTeamCell: Difference between revisions
From Cassette Beasts
Added ability to override type for bootlegs |
Get it to work if bootleg field is specified, but empty |
||
| Line 1: | Line 1: | ||
<td align="center" style="padding: 10px;">[[File:{{#invoke:Database|get_species|{{{monster}}}|name}}.png|80x42px]]<br/>{{#invoke:Database|get_link|species|{{{monster}}}}}<br/>{{TypeButton|{{{bootleg_type|{{#invoke:Database|get_species|{{{monster}}}|elemental_type | <td align="center" style="padding: 10px;">[[File:{{#invoke:Database|get_species|{{{monster}}}|name}}.png|80x42px]]<br/>{{#invoke:Database|get_link|species|{{{monster}}}}}<br/>{{TypeButton|{{#if: {{{bootleg_type|}}}|{{{bootleg_type}}}|{{#invoke:Database|get_species|{{{monster}}}|elemental_type}}}}}}</td><noinclude> | ||
== Examples == | == Examples == | ||
{{BattleTeamCell | {{BattleTeamCell | ||
| Line 7: | Line 7: | ||
| monster = Traffikrab | | monster = Traffikrab | ||
| bootleg_type = Fire | | bootleg_type = Fire | ||
}} | |||
{{BattleTeamCell | |||
| monster = Traffikrab | |||
| bootleg_type = | |||
}} | }} | ||
</noinclude> | </noinclude> | ||
