Template:BTD5 tower info: Difference between revisions

Pymonkibot (talk | contribs)
m Text replacement - "info-sub" to "subtable"
mNo edit summary
Line 1: Line 1:
<includeonly>{|class="info"
<includeonly><templatestyles src="Info/style.css"/><div class="info subtable-container"><!--
!class="head"|{{{name}}}
--><div class="head">{{{name}}}</div>
|-
<tabs>
|<tabs>
{{#if:{{{image M|}}}|<tab name="Multiplatform">
<tab name="Mobile">
{{{!}}class="subtable main centered"
{|class="subtable main centered-cells"
{{!}}[[File:{{{image M}}}|200px|Portrait of {{{name}}}]]
|colspan="4"|[[File:{{{image M}}}|200px]]
{{!}}-
|-
{{!}}class="flex-left-icon-wrapper"{{!}}[[File:{{{icon M}}}|50px|Icon of {{{name M}}}]]{{{description M}}}
|[[File:{{{icon M}}}|50px]]
{{!}}}
|colspan="3" style="text-align:left"|{{{description M}}}
</tab>}}
|}
</tab>
{{#if:{{{image F|}}}|<tab name="Flash">
{{#if:{{{image F|}}}|<tab name="Flash">
{|class="subtable main centered-cells"
{{{!}}class="subtable main centered"
|colspan="4"|[[File:{{{image F}}}|200px]]
{{!}}[[File:{{{image F}}}|200px|Portrait of {{{name}}}]]
|-
{{!}}-
|[[File:{{{icon F}}}|50px]]
{{!}}class="flex-left-icon-wrapper"{{!}}[[File:{{{icon F}}}|50px|Icon of {{{name F}}}]]{{{description F}}}
|colspan="3" style="text-align:left"|{{{description F}}}
{{!}}}
|}
</tab>}}
</tab>}}
</tabs>
</tabs>
{|class="subtable"
{|class="subtable"
!Cost
!Cost
|colspan="3"|{{#ifexpr:{{{cost F|{{{cost M|0}}}}}} = {{{cost M|0}}} and {{{cost D|{{{cost M|0}}}}}} = {{{cost M|0}}}
|colspan="2"|{{#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}}}
-->{{#ifeq:{{{cost F|0}}}|{{{cost D|0}}}|'''Flash / ''Deluxe''''':<br>{{BTD5F cost by difficulty|{{{cost F|0}}}}}<br>'''Multiplatform''':<br>|<!--
|'''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 F|}}}|'''Flash''':<br>{{BTD5F cost by difficulty|{{{cost F|0}}}}}<br>}}{{#if:{{{cost D|}}}|'''''Deluxe''''':<br>{{BTD5F cost by difficulty|{{{cost D|0}}}}}<br>}}
-->{{#if:{{{cost D|}}}|'''''Deluxe''''':<br>{{BTD5F cost by difficulty|{{{cost D|0}}}}}<br>}}}}'''Multiplatform''':<br>}}<!--
}}'''Mobile / console''':<br>}}{{BTD5M cost by difficulty|{{{cost M|0}}}}}
-->{{BTD5M cost by difficulty|{{{cost M|0}}}}}
|}
|}</div>{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=btd5_towers
|}{{#cargo_store:_table=btd5_towers
|id={{{id|}}}
|id={{{id|}}}


Line 49: Line 45:
|image={{{image M|}}}
|image={{{image M|}}}
|keywords=BTD5 {{{name M|}}}
|keywords=BTD5 {{{name M|}}}
}}</includeonly><noinclude>{{#cargo_declare:_table=btd5_towers
}}}}</includeonly><noinclude>{{#cargo_declare:_table=btd5_towers
|id=String
|id=String