Template:BTD6 upgrade info: Difference between revisions

mNo edit summary
mNo edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><templatestyles src="Info/style.css"/><div class="info"><!--
<includeonly><templatestyles src="Info/style.css"/><div class="info subtable-container"><!--
--><div class="head">{{{name}}}</div>
--><div class="head">{{{name}}}</div>
{|class="subtable main centered"
{|class="subtable main centered"
|[[File:{{{image}}}|Portrait of {{{name}}}|200px]]
|[[File:{{{image}}}|Portrait of {{{name}}}|200px]]
|-
|-
|<div class="info-flex"><div style="width:50px">[[File:{{{icon}}}|50px|Icon of {{{name}}}]]</div><div>{{{description}}}</div></div>
|class="flex-left-icon-wrapper centered"|[[File:{{{icon}}}|50px|Icon of {{{name}}}]]{{{description}}}
|}
|}
{|class="subtable"
{|class="subtable"
Line 11: Line 11:
|-
|-
![[Tower XP|XP]] cost
![[Tower XP|XP]] cost
|colspan="2"|{{formatnum:{{{xp|}}}}}
|colspan="2"|{{#ifeq:{{{xp|}}}|0|Unlocked by default|{{formatnum:{{{xp|}}}}}}}
|-
|-
![[Cash]] cost
![[Cash]] cost
|colspan="2"|{{#ifeq:{{{id|}}}|Monkeyopolis|${{formatnum:{{{cost|}}}}}*|{{BTD6 upgrade cost by difficulty|{{{cost|0}}}}}}}<!--
|colspan="2"|{{#ifeq:{{{id|}}}|Monkeyopolis|${{formatnum:{{{cost|}}}}}*|{{BTD6 cost by difficulty|{{{cost|0}}}}}}}<!--
-->{{#ifeq:{{{tower|}}}|Monkey Ace|{{#ifeq:{{{tier|}}}|5|<hr>With {{BTD6 mk|Aeronautic Subsidy}}:<br>{{BTD6 upgrade cost by difficulty|{{{cost|0}}}*0.9}}}}}}<!--
-->{{#ifeq:{{{tower|}}}|Monkey Ace|{{#ifeq:{{{tier|}}}|5|<hr>With {{BTD6 mk|Aeronautic Subsidy}}:<br>{{BTD6 upgrade cost by difficulty|{{{cost|0}}}*0.9}}}}}}<!--
-->{{#if:{{{mk cost reduction name|}}}|<hr>With {{BTD6 mk|{{{mk cost reduction name}}}}}:<br>{{BTD6 upgrade cost by difficulty|{{{cost|0}}}|cost reduction={{{mk cost reduction}}}}}}}
-->{{#if:{{{mk cost reduction name|}}}|<hr>With {{BTD6 mk|{{{mk cost reduction name}}}}}:<br>{{BTD6 upgrade cost by difficulty|{{{cost|0}}}|cost reduction={{{mk cost reduction}}}}}}}
Line 24: Line 24:
|fields=CONCAT(IF(tier<{{{tier|0}}}, "<div style='float:left'>[[", "<div style='float:right'>[["), _pageName, "{{!}}", IF(tier>{{{tier|0}}}, CONCAT(name, " →]]"), CONCAT("← ", name, "]]")), "</div>") = text
|fields=CONCAT(IF(tier<{{{tier|0}}}, "<div style='float:left'>[[", "<div style='float:right'>[["), _pageName, "{{!}}", IF(tier>{{{tier|0}}}, CONCAT(name, " →]]"), CONCAT("← ", name, "]]")), "</div>") = text


|where=tower = "{{{tower|???}}}" AND (path = {{{path|0}}} OR path = -1) AND (tier = {{{tier|0}}} - 1 OR tier = {{{tier|0}}} + 1) AND NOT unused
|where=tower = "{{{tower|???}}}" AND (path = {{{path|0}}} OR (path = -1 AND "{{{unused|}}}" = "")) AND (tier = {{{tier|0}}} - 1 OR tier = {{{tier|0}}} + 1) AND NOT unused
|delimiter=
|delimiter=
}}</div></div>{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=btd6_upgrades
}}</div></div>{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=btd6_upgrades
Line 56: Line 56:
|icon        =File
|icon        =File
|image        =File
|image        =File
|description  =String
|description  =Wikitext string
|description_C=String
|description_C=Wikitext string


|tower=String
|tower=String