Template:BTD5 tower info: Difference between revisions

No edit summary
Pymonkibot (talk | contribs)
m Text replacement - "info-sub" to "subtable"
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{#cargo_store:_table=btd5_towers
<includeonly>{|class="info"
!class="head"|{{{name}}}
|-
|<tabs>
<tab name="Mobile">
{|class="subtable main centered-cells"
|colspan="4"|[[File:{{{image M}}}|200px]]
|-
|[[File:{{{icon M}}}|50px]]
|colspan="3" style="text-align:left"|{{{description M}}}
|}
</tab>
{{#if:{{{image F|}}}|<tab name="Flash">
{|class="subtable main centered-cells"
|colspan="4"|[[File:{{{image F}}}|200px]]
|-
|[[File:{{{icon F}}}|50px]]
|colspan="3" style="text-align:left"|{{{description F}}}
|}
</tab>}}
</tabs>
{|class="subtable"
!Cost
|colspan="3"|{{#ifexpr:{{{cost F|{{{cost M|0}}}}}} = {{{cost M|0}}} and {{{cost D|{{{cost M|0}}}}}} = {{{cost M|0}}}
||{{#ifeq:{{{cost F|0}}}|{{{cost D|0}}}
|'''Flash / ''Deluxe''''':<br>{{BTD5F cost by difficulty|{{{cost F|0}}}}}<br>'''Mobile / console''':<br>
|{{#if:{{{cost F|}}}|'''Flash''':<br>{{BTD5F cost by difficulty|{{{cost F|0}}}}}<br>}}{{#if:{{{cost D|}}}|'''''Deluxe''''':<br>{{BTD5F cost by difficulty|{{{cost D|0}}}}}<br>}}
}}'''Mobile / console''':<br>}}{{BTD5M cost by difficulty|{{{cost M|0}}}}}
|}
|}{{#cargo_store:_table=btd5_towers
|id={{{id|}}}
|id={{{id|}}}


Line 17: Line 46:
|hotkey_F={{{hotkey F|}}}
|hotkey_F={{{hotkey F|}}}
|hotkey_M={{{hotkey M|}}}
|hotkey_M={{{hotkey M|}}}
}}{|class="info"
}}[[Category:Towers in BTD5]]{{#seo:
!class="head"|{{{name}}}
|-
|style="text-align:center"|<tabs>
<tab name="Mobile">
{|class="info-sub main centered-cells"
|colspan="4"|[[File:{{{image M}}}|200px]]
|-
|[[File:{{{icon M}}}|50x50px]]
|colspan="3" style="text-align:left"|{{{description M}}}
|}
</tab>
<tab name="Flash">
{|class="info-sub main centered-cells"
|colspan="4"|[[File:{{{image F}}}|200px]]
|-
|[[File:{{{icon F}}}|50x50px]]
|colspan="3" style="text-align:left"|{{{description F}}}
|}
</tab>
</tabs>
|-
|
{|class="info-sub"
|-
!Cost
|colspan="3"|{{#ifexpr:{{{cost F|{{{cost M|0}}}}}} = {{{cost M|0}}} and {{{cost D|{{{cost M|0}}}}}} = {{{cost M|0}}}|
|{{#ifeq:{{{cost F|0}}}|{{{cost D|0}}}|'''Flash / ''Deluxe''''':<br>{{BTD5F cost by difficulty|{{{cost F|0}}}}}
|{{#if:{{{cost F|}}}|'''Flash''':<br>{{BTD5F cost by difficulty|{{{cost F|0}}}}}<br>{{#if:{{{cost D|}}}|'''''Deluxe''''':<br>{{BTD5F cost by difficulty|{{{cost D|0}}}}
}}<br>'''Mobile / console''':<br>}}{{BTD5M cost by difficulty|{{{cost M|0}}}}} <!-- mobile costs are always at the bottom -->
|}
|}[[Category:Towers in BTD5]]{{#seo:
|image={{{image M|}}}
|image={{{image M|}}}
|keywords=BTD5 {{{name M|}}}
|keywords=BTD5 {{{name M|}}}
Line 69: Line 67:
|hotkey_F=String
|hotkey_F=String
|hotkey_M=String
|hotkey_M=String
}}{{/doc}}[[Category:Infoboxes]][[Category:BTD5 templates]]</noinclude>
}}{{/doc}}</noinclude>