Template:BTD6 power pro upgrade info: Difference between revisions

Pymonkibot (talk | contribs)
m Text replacement - "info-sub" to "subtable"
Pymonkibot (talk | contribs)
m Text replacement - "<div class="info">" to "<div class="info subtable-container">"
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{|class="info"
<includeonly><templatestyles src="Info/style.css"/><div class="info subtable-container"><!--
!class="head"|{{{name}}}
--><div class="head">{{{name}}}</div>
|-
{|class="subtable main centered"
|
|[[File:{{{icon}}}|100px|Icon of {{{name}}}]]
{|class="subtable main centered-cells"
|[[File:{{{icon}}}|100px]]
|-
|-
|{{{description}}}
|{{{description}}}
|}
|}
{|class="subtable centered-cells"
{|class="subtable"
!colspan="2"|[[Power Pro]]
!Tower
!Path
|colspan="2"|[[{{{tower}}}]] Path {{{path}}} — Tier {{{tier}}}
!Tier
|-
|-
|colspan="2"|[[{{{tower}}}]]
|{{{path}}}
|{{{tier}}}
|}
{|class="subtable"
!Cost
!Cost
|colspan="3"|{{BTD6 upgrade cost by difficulty|{{{cost|0}}}}}
|colspan="2"|{{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}}}