Template:BTD5 tower info: Difference between revisions

No edit summary
mNo edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#cargo_store:_table=btd5_towers
<includeonly><templatestyles src="Info/style.css"/><div class="info subtable-container"><!--
--><div class="head">{{{name}}}</div>
<tabs>
{{#if:{{{image M|}}}|<tab name="Multiplatform">
{{{!}}class="subtable main centered"
{{!}}[[File:{{{image M}}}|200px|Portrait of {{{name}}}]]
{{!}}-
{{!}}class="flex-left-icon-wrapper"{{!}}[[File:{{{icon M}}}|50px|Icon of {{{name M}}}]]{{{description M}}}
{{!}}}
</tab>}}
{{#if:{{{image F|}}}|<tab name="Flash">
{{{!}}class="subtable main centered"
{{!}}[[File:{{{image F}}}|200px|Portrait of {{{name}}}]]
{{!}}-
{{!}}class="flex-left-icon-wrapper"{{!}}[[File:{{{icon F}}}|50px|Icon of {{{name F}}}]]{{{description F}}}
{{!}}}
</tab>}}
</tabs>
{|class="subtable"
!Cost
|colspan="2"|{{#ifexpr:{{{cost F|{{{cost M|0}}}}}} = {{{cost M|0}}} and {{{cost D|{{{cost M|0}}}}}} = {{{cost M|0}}}|{{BTD5M cost by difficulty|{{{cost M|0}}}}}|<!--
-->'''Multiplatform''':<br>{{BTD5M cost by difficulty|{{{cost M|0}}}}}<br><!--
-->{{#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}}}}}}}}}}}
|}</div>{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=btd5_towers
|id={{{id|}}}
|id={{{id|}}}


Line 17: Line 42:
|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|}}}
}}</includeonly><noinclude>{{#cargo_declare:_table=btd5_towers
}}}}</includeonly><noinclude>{{#cargo_declare:_table=btd5_towers
|id=String
|id=String


Line 69: Line 63:
|hotkey_F=String
|hotkey_F=String
|hotkey_M=String
|hotkey_M=String
}}{{/doc}}[[Category:Infoboxes]][[Category:BTD5 templates]]</noinclude>
}}{{/doc}}</noinclude>