Template:BTD6 power pro upgrade info: Difference between revisions

mNo edit summary
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>{|class="info"
<includeonly><templatestyles src="Info/style.css"/><div class="info"><!--
!class="head"|{{{name}}}
--><div class="head">{{{name}}}</div>
|-
{|class="subtable main centered"
|
{|class="info-sub main centered-cells"
|[[File:{{{icon}}}|100px]]
|[[File:{{{icon}}}|100px]]
|-
|-
|{{{description}}}
|{{{description}}}
|}
|}
{|class="info-sub centered-cells"
{|class="subtable centered"
!colspan="2"|[[Power Pro]]
!colspan="2"|[[Power Pro]]
!Path
!Path
Line 17: Line 15:
|{{{tier}}}
|{{{tier}}}
|}
|}
{|class="info-sub"
{|class="subtable"
!Cost
!Cost
|colspan="3"|{{BTD6 upgrade cost by difficulty|{{{cost|0}}}}}
|colspan="3"|{{BTD6 upgrade cost by difficulty|{{{cost|0}}}}}
|}
|}<!--
|-
 
<!-- upgrade prev/next -->
upgrade prev/next
|class="foot"|{{#cargo_query:table=btd6_upgrades
 
--><div class="foot">{{#cargo_query:table=btd6_upgrades
|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}}} 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=btd6_upgrades
|}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=btd6_upgrades
|id={{{id|}}}
|id={{{id|}}}
|unused={{{unused|No}}}
|unused={{{unused|No}}}