Template:BTDB2 upgrade info: Difference between revisions

mNo edit summary
Pymonkibot (talk | contribs)
m Text replacement - "info-sub" to "subtable"
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>{{#cargo_declare:_table=btdb2_upgrades
<includeonly>{|class="info"
|id=String
|unused=Boolean
 
|name        =String
|icon        =File
|image        =File
|description  =String
 
|tower=String
|path =Integer
|tier =Integer
|cost  =Integer
}}</noinclude>
<includeonly>{{#cargo_store:_table=btdb2_upgrades
|id={{{id|}}}
|unused={{{unused|No}}}
 
|name        ={{{name|}}}
|icon        ={{{icon|}}}
|image        ={{{image|}}}
|description  ={{{description|}}}
|description_C={{{description C|}}}
 
|tower={{{tower|}}}
|path ={{{path|}}}
|tier ={{{tier|}}}
|cost  ={{{cost|}}}
}}[[Category:{{{tower}}} upgrades in Battles 2]][[Category:Path {{{path}}} upgrades in Battles 2]][[Category:Tier {{{tier}}} upgrades in Battles 2]]{{#seo:
|image={{{image|}}}
|keywords=Battles 2 {{{name|}}}, BTDB2 {{{name|}}}
}}</includeonly>
{|class="info"
!class="head"|{{{name}}}
!class="head"|{{{name}}}
|-
|-
|
|
{|class="info-sub main centered-cells"
{|class="subtable main centered-cells"
|colspan=4|[[File:{{{image}}}|200px]]
|colspan=4|[[File:{{{image}}}|200px]]
|-
|-
|[[File:{{{icon}}}|50px]]
|[[File:{{{icon}}}|50px]]
|colspan=3 style="text-align:left"|''{{{description}}}''
|colspan=3 style="text-align:left"|{{{description}}}
|}
|}
|-
{|class="subtable centered-cells"
|
{|class="info-sub centered-cells"
!colspan=2|Tower
!colspan=2|Tower
!Path
!Path
Line 54: Line 20:
|colspan=2|${{formatnum:{{{cost|0}}}}}
|colspan=2|${{formatnum:{{{cost|0}}}}}
|}
|}
|}<noinclude>{{/doc}}[[Category:Infoboxes]][[Category:Battles 2 templates]]</noinclude>
|-
<!-- upgrade prev/next -->
|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=
}}
|}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=btdb2_upgrades
|id={{{id|}}}
|unused={{{unused|No}}}
 
|name        ={{{name|}}}
|icon        ={{{icon|}}}
|image        ={{{image|}}}
|description  ={{{description|}}}
 
|tower={{{tower|}}}
|path ={{{path|}}}
|tier ={{{tier|}}}
|cost ={{{cost|}}}
}}[[Category:{{{tower}}} upgrades in Battles 2]][[Category:Path {{{path}}} upgrades in Battles 2]][[Category:Tier {{{tier}}} upgrades in Battles 2]]{{#seo:
|image={{{image|}}}
|keywords=Battles 2 {{{name|}}}, BTDB2 {{{name|}}}
}}}}</includeonly><noinclude>{{#cargo_declare:_table=btdb2_upgrades
|id=String
|unused=Boolean
 
|name        =String
|icon        =File
|image        =File
|description  =String
 
|tower=String
|path =Integer
|tier =Integer
|cost =Integer
}}{{/doc}}</noinclude>