Template:BTDB2 upgrade info: Difference between revisions

mNo edit summary
Pymonkibot (talk | contribs)
m Text replacement - "<div class="info">" to "<div class="info subtable-container">"
 
(5 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}}}
--><div class="head">{{{name}}}</div>
{|class="subtable main centered"
|[[File:{{{image}}}|200px|Portrait of {{{name}}}]]
|-
|-
|
|class="flex-left-icon-wrapper"|[[File:{{{icon}}}|50px|Icon of {{{name}}}]]{{{description}}}
{|class="info-sub main centered-cells"
|colspan=4|[[File:{{{image}}}|200px]]
|-
|[[File:{{{icon}}}|50px]]
|colspan=3 style="text-align:left"|{{{description}}}
|}
|}
{|class="info-sub centered-cells"
{|class="subtable"
!colspan=2|Tower
!Tower
!Path
|colspan="2"|[[{{{tower}}} (Battles 2)|{{{tower}}}]] — Path {{{path}}} — Tier {{{tier}}}
!Tier
!colspan=2|Cost
|-
|-
|colspan=2|[[{{{tower}}} (Battles 2)|{{{tower}}}]]
!Cost
|{{{path}}}
|colspan="2"|${{formatnum:{{{cost|0}}}}}
|{{{tier}}}
|}<!--
|colspan=2|${{formatnum:{{{cost|0}}}}}
 
|}
upgrade prev/next
|}{{#cargo_store:_table=btdb2_upgrades
 
--><div class="foot">{{#cargo_query:table=btdb2_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
 
|where=tower = "{{{tower|???}}}" AND path = {{{path|0}}} AND (tier = {{{tier|0}}} - 1 OR tier = {{{tier|0}}} + 1) AND NOT unused
|delimiter=
}}</div></div>{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=btdb2_upgrades
|id={{{id|}}}
|id={{{id|}}}
|unused={{{unused|No}}}
|unused={{{unused|No}}}


|name         ={{{name|}}}
|name       ={{{name|}}}
|icon         ={{{icon|}}}
|icon       ={{{icon|}}}
|image       ={{{image|}}}
|image     ={{{image|}}}
|description ={{{description|}}}
|description={{{description|}}}


|tower={{{tower|}}}
|tower={{{tower|}}}
Line 36: Line 37:
|image={{{image|}}}
|image={{{image|}}}
|keywords=Battles 2 {{{name|}}}, BTDB2 {{{name|}}}
|keywords=Battles 2 {{{name|}}}, BTDB2 {{{name|}}}
}}</includeonly><noinclude>{{#cargo_declare:_table=btdb2_upgrades
}}}}</includeonly><noinclude>{{#cargo_declare:_table=btdb2_upgrades
|id=String
|id=String
|unused=Boolean
|unused=Boolean


|name         =String
|name       =String
|icon         =File
|icon       =File
|image       =File
|image     =File
|description =String
|description=String


|tower=String
|tower=String