Template:BTDB upgrade info: Difference between revisions

mNo edit summary
added navigation links for prev/next upgrades
Line 1: Line 1:
<includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=btdb_upgrades
<includeonly>{|class="info"
|name_F      ={{{name F|}}}
|name_M      ={{{name M|}}}
|icon_F      ={{{icon F|}}}
|icon_M      ={{{icon M|}}}
|image_F      ={{{image F|}}}
|image_M      ={{{image M|}}}
|description_F={{{description F|}}}
|description_M={{{description M|}}}
 
|tower={{{tower|}}}
|path ={{{path|}}}
|tier ={{{tier|}}}
 
|cost_F={{{cost F|}}}
|cost_M={{{cost M|}}}
|unused={{{unused|No}}}
}}[[Category:{{{tower}}} upgrades in Battles]][[Category:Path {{{path}}} upgrades in Battles]][[Category:Tier {{{tier}}} upgrades in Battles]]}}{{#seo:
|image={{{image M|}}}
|keywords=BTD Battles {{{name M|}}}, BTDB {{{name M|}}}
}}
{|class="info"
!class="head"|{{{name M}}}
!class="head"|{{{name M}}}
|-
|-
Line 52: Line 31:
|colspan="2"|{{#ifeq:{{{cost F|{{{cost M|}}}}}}|{{{cost M|}}}||'''[[Bloons TD Battles (Flash)|Flash]]''': ${{formatnum:{{{cost F|0}}}}}<br>'''[[Bloons TD Battles (mobile)|Mobile]]''':}} ${{formatnum:{{{cost M|0}}}}}
|colspan="2"|{{#ifeq:{{{cost F|{{{cost M|}}}}}}|{{{cost M|}}}||'''[[Bloons TD Battles (Flash)|Flash]]''': ${{formatnum:{{{cost F|0}}}}}<br>'''[[Bloons TD Battles (mobile)|Mobile]]''':}} ${{formatnum:{{{cost M|0}}}}}
|}
|}
|}</includeonly><noinclude>{{/doc}}
|-
<div>{{#cargo_declare:_table=btdb_upgrades
<!-- upgrade prev/next -->
|class="foot"|{{#cargo_query:table=btdb_upgrades
|fields=CONCAT(IF(tier<{{{tier|0}}}, "<div style='float:left'>[[", "<div style='float:right'>[["), _pageName, "{{!}}", IF(tier>{{{tier|0}}}, CONCAT(name_M, " →]]"), CONCAT("← ", name_M, "]]")), "</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=btdb_upgrades
|name_F      ={{{name F|}}}
|name_M      ={{{name M|}}}
|icon_F      ={{{icon F|}}}
|icon_M      ={{{icon M|}}}
|image_F      ={{{image F|}}}
|image_M      ={{{image M|}}}
|description_F={{{description F|}}}
|description_M={{{description M|}}}
 
|tower={{{tower|}}}
|path ={{{path|}}}
|tier ={{{tier|}}}
 
|cost_F={{{cost F|}}}
|cost_M={{{cost M|}}}
|unused={{{unused|No}}}
}}[[Category:{{{tower}}} upgrades in Battles]][[Category:Path {{{path}}} upgrades in Battles]][[Category:Tier {{{tier}}} upgrades in Battles]]{{#seo:
|image={{{image M|}}}
|keywords=BTD Battles {{{name M|}}}, BTDB {{{name M|}}}
}}}}</includeonly><noinclude>{{#cargo_declare:_table=btdb_upgrades
|name_F      =String
|name_F      =String
|name_M      =String
|name_M      =String
Line 75: Line 81:
|xp_M  =Integer
|xp_M  =Integer
|unused=Boolean
|unused=Boolean
}}</div></noinclude>
}}{{/doc}}</noinclude>