Template:BTDB2 upgrade info: Difference between revisions

mNo edit summary
Pymonkibot (talk | contribs)
m Text replacement - "info-sub" to "subtable"
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
|-
|-
|
|
{|class="info-sub main centered-cells"
{|class="subtable main centered-cells"
|colspan=4|[[File:{{{image}}}|200px]]
|colspan=4|[[File:{{{image}}}|200px]]
|-
|-
Line 9: Line 9:
|colspan=3 style="text-align:left"|{{{description}}}
|colspan=3 style="text-align:left"|{{{description}}}
|}
|}
{|class="info-sub centered-cells"
{|class="subtable centered-cells"
!colspan=2|Tower
!colspan=2|Tower
!Path
!Path
Line 20: Line 20:
|colspan=2|${{formatnum:{{{cost|0}}}}}
|colspan=2|${{formatnum:{{{cost|0}}}}}
|}
|}
|}{{#cargo_store:_table=btdb2_upgrades
|-
<!-- 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|}}}
|id={{{id|}}}
|unused={{{unused|No}}}
|unused={{{unused|No}}}
Line 36: Line 44:
|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