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> | <includeonly><templatestyles src="Info/style.css"/><div class="info subtable-container"><!-- | ||
--><div class="head">{{{name M|{{{name F|}}}}}}</div> | |||
<tabs> | |||
{{#if:{{{image M|}}}|<tab name="Multiplatform"> | {{#if:{{{image M|}}}|<tab name="Multiplatform"> | ||
{{{!}}class="subtable main centered | {{{!}}class="subtable main centered" | ||
{{!}}[[File:{{{image M}}}|200px]] | |||
{{!}}- | {{!}}- | ||
{{!}}[[File:{{{icon M}}}| | {{!}}class="flex-left-icon-wrapper"{{!}}[[File:{{{icon M}}}|50px|Icon of {{{name M}}}]]{{{description M}}} | ||
{{ | |||
{{!}}} | {{!}}} | ||
</tab>}} | </tab>}} | ||
{{#if:{{{image F|}}}|<tab name="Flash"> | {{#if:{{{image F|}}}|<tab name="Flash"> | ||
{{{!}}class="subtable main centered | {{{!}}class="subtable main centered" | ||
{{!}}[[File:{{{image F}}}|200px]] | |||
{{!}}- | {{!}}- | ||
{{!}}[[File:{{{icon F}}}| | {{!}}class="flex-left-icon-wrapper"{{!}}[[File:{{{icon F}}}|50px|Icon of {{{name F}}}]]{{{description F}}} | ||
{{ | |||
{{!}}} | {{!}}} | ||
</tab>}} | </tab>}} | ||
</tabs> | </tabs> | ||
{|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=" | |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=" | |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}}}}}< | -->{{#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}}}}}}}}}}} | |||
|} | |} | ||
<!-- upgrade prev/next --> | <!-- upgrade prev/next --> | ||
<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 | ||
|name_F ={{{name F|}}} | |name_F ={{{name F|}}} | ||
|name_M ={{{name M|}}} | |name_M ={{{name M|}}} | ||