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">"
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{#cargo_declare:_table=btdb2_upgrades
<includeonly><templatestyles src="Info/style.css"/><div class="info subtable-container"><!--
|id=String
--><div class="head">{{{name}}}</div>
|unused=Boolean
{|class="subtable main centered"
|[[File:{{{image}}}|200px|Portrait of {{{name}}}]]
|-
|class="flex-left-icon-wrapper"|[[File:{{{icon}}}|50px|Icon of {{{name}}}]]{{{description}}}
|}
{|class="subtable"
!Tower
|colspan="2"|[[{{{tower}}} (Battles 2)|{{{tower}}}]] — Path {{{path}}} — Tier {{{tier}}}
|-
!Cost
|colspan="2"|${{formatnum:{{{cost|0}}}}}
|}<!--
 
upgrade prev/next


|name        =String
--><div class="foot">{{#cargo_query:table=btdb2_upgrades
|icon        =File
|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
|image        =File
|description  =String


|tower=String
|where=tower = "{{{tower|???}}}" AND path = {{{path|0}}} AND (tier = {{{tier|0}}} - 1 OR tier = {{{tier|0}}} + 1) AND NOT unused
|path =Integer
|delimiter=
|tier =Integer
}}</div></div>{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=btdb2_upgrades
|cost  =Integer
}}</noinclude>
<includeonly>{{#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|}}}
|description_C={{{description C|}}}


|tower={{{tower|}}}
|tower={{{tower|}}}
|path ={{{path|}}}
|path ={{{path|}}}
|tier ={{{tier|}}}
|tier ={{{tier|}}}
|cost ={{{cost|}}}
|cost ={{{cost|}}}
}}[[Category:{{{tower}}} upgrades in Battles 2]][[Category:Path {{{path}}} upgrades in Battles 2]][[Category:Tier {{{tier}}} upgrades in Battles 2]]{{#seo:
}}[[Category:{{{tower}}} upgrades in Battles 2]][[Category:Path {{{path}}} upgrades in Battles 2]][[Category:Tier {{{tier}}} upgrades in Battles 2]]{{#seo:
|image={{{image|}}}
|image={{{image|}}}
|keywords=Battles 2 {{{name|}}}, BTDB2 {{{name|}}}
|keywords=Battles 2 {{{name|}}}, BTDB2 {{{name|}}}
}}</includeonly>
}}}}</includeonly><noinclude>{{#cargo_declare:_table=btdb2_upgrades
{|class="info"
|id=String
!class="head"|{{{name}}}
|unused=Boolean
|-
 
|
|name      =String
{|class="info-sub main centered-cells"
|icon      =File
|colspan=4|[[File:{{{image}}}|200px]]
|image      =File
|-
|description=String
|[[File:{{{icon}}}|50px]]
 
|colspan=3 style="text-align:left"|''{{{description}}}''
|tower=String
|}
|path =Integer
|-
|tier =Integer
|
|cost =Integer
{|class="info-sub centered-cells"
}}{{/doc}}</noinclude>
!colspan=2|Tower
!Path
!Tier
!colspan=2|Cost
|-
|colspan=2|[[{{{tower}}} (Battles 2)|{{{tower}}}]]
|{{{path}}}
|{{{tier}}}
|colspan=2|${{formatnum:{{{cost|0}}}}}
|}
|}<noinclude>{{/doc}}[[Category:Infoboxes]][[Category:Battles 2 templates]]</noinclude>