Template:BTD5 upgrade info: Difference between revisions

mNo edit summary
mNo edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{|class="info"
<includeonly><templatestyles src="Info/style.css"/><div class="info subtable-container"><!--
!class="head"|{{{name M|{{{name F|}}}}}}
--><div class="head">{{{name M|{{{name F|}}}}}}</div>
|-
<tabs>
|<tabs>
{{#if:{{{image M|}}}|<tab name="Multiplatform">
{{#if:{{{image M|}}}|<tab name="Multiplatform">
{{{!}}class="subtable main centered-cells"
{{{!}}class="subtable main centered"
{{!}}colspan="4"{{!}}[[File:{{{image M}}}|200px]]
{{!}}[[File:{{{image M}}}|200px]]
{{!}}-
{{!}}-
{{!}}[[File:{{{icon M}}}|50x50px]]
{{!}}class="flex-left-icon-wrapper"{{!}}[[File:{{{icon M}}}|50px|Icon of {{{name M}}}]]{{{description M}}}
{{!}}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]]
{{!}}-
{{!}}-
{{!}}[[File:{{{icon F}}}|50x50px]]
{{!}}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 centered-cells"
!colspan=2|Tower
!Path
!Tier
|-
|colspan=2|[[{{{tower}}} (BTD5)|{{{tower}}}]]
|{{{path}}}
|{{{tier}}}
|}
{|class="subtable"
{|class="subtable"
!Tower
|colspan="2"|[[{{{tower}}} (BTD5)|{{{tower}}}]] — Path {{{path}}} — Tier {{{tier}}}
|-
|-
!Total [[Tower XP|XP]] to unlock
!Total [[Tower XP|XP]] to unlock
|colspan="3"|{{formatnum:{{{xp F|0}}}}} {{#ifeq:{{{xp F|{{{xp M|}}}}}}|{{{xp M|{{{xp F|}}}}}}||([[Bloons TD 5 (Flash)|Flash]] / ''[[Bloons TD 5 Deluxe|Deluxe]]'')<br>{{formatnum:{{{xp M|}}}}} ([[Bloons TD 5 (multiplatform)|multiplatform]])}}
|colspan="2"|{{formatnum:{{{xp M|{{{xp F|0}}}}}}}} {{#ifeq:{{{xp F|{{{xp M|}}}}}}|{{{xp M|{{{xp F|}}}}}}||<!--
--> (<small>[[Bloons TD 5 (multiplatform)|Multiplatform version]]</small>)<br>{{formatnum:{{{xp F|0}}}}} (<small>[[Bloons TD 5 (Flash)|Flash version]]</small>)}}
|-
|-
!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}}}|{{BTD5M cost by difficulty|{{{cost M|0}}}}}|<!--
||{{#ifeq:{{{cost F|0}}}|{{{cost D|0}}}
-->'''Multiplatform''':<br>{{BTD5M cost by difficulty|{{{cost M|0}}}}}<br><!--
|'''Flash / ''Deluxe''''':<br>{{BTD5F cost by difficulty|{{{cost F|0}}}}}<br>'''Multiplatform''':<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}}}}}<br>}}
-->{{#if:{{{cost F|}}}|'''Flash''':<br>{{BTD5F cost by difficulty|{{{cost F|0}}}}}<br>}}<!--
}}'''Multiplatform''':<br>}}{{BTD5M cost by difficulty|{{{cost M|0}}}}}
-->{{#if:{{{cost D|}}}|'''''Deluxe''''':<br>{{BTD5F cost by difficulty|{{{cost D|0}}}}}}}}}}}
|}
|}
|-
<!-- upgrade prev/next -->
<!-- upgrade prev/next -->
|class="foot"|{{#cargo_query:table=btd5_upgrades
<div class="foot">{{#cargo_query:table=btd5_upgrades
|fields=CONCAT(IF(tier<{{{tier|0}}}, "<div style='float:left'>[[", "<div style='float:right'>[["), _pageName, "{{!}}", IF(tier>{{{tier|0}}}, CONCAT(name_M, " →]]"), CONCAT("← ", name_M, "]]")), "</div>") = text
|fields=CONCAT(IF(tier<{{{tier|0}}}, "<div style='float:left'>[[", "<div style='float:right'>[["), _pageName, "{{!}}", IF(tier>{{{tier|0}}}, CONCAT(name_M, " →]]"), CONCAT("← ", name_M, "]]")), "</div>") = text


|where=tower = "{{{tower|???}}}" AND path = {{{path|0}}} AND (tier = {{{tier|0}}} - 1 OR tier = {{{tier|0}}} + 1) AND NOT unused
|where=tower = "{{{tower|???}}}" AND path = {{{path|0}}} AND (tier = {{{tier|0}}} - 1 OR tier = {{{tier|0}}} + 1) AND NOT unused
|delimiter=
|delimiter=
}}
}}</div></div>{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=btd5_upgrades
|}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=btd5_upgrades
|name_F      ={{{name F|}}}
|name_F      ={{{name F|}}}
|name_M      ={{{name M|}}}
|name_M      ={{{name M|}}}