Template:BTD6 upgrade info: Difference between revisions

mNo edit summary
added navigation links for prev/next upgrades
Line 1: Line 1:
<includeonly>{{#cargo_store:_table=btd6_upgrades
<includeonly>{|class="info"
|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|}}}
|cost_C={{{cost C|}}}
|xp    ={{{xp|}}}
}}{|class="info"
!class="head"|{{{name}}}
!class="head"|{{{name}}}
|-
|-
Line 26: Line 9:
|colspan=3 style="text-align:left"|{{{description}}}
|colspan=3 style="text-align:left"|{{{description}}}
|}
|}
|-
|
{|class="info-sub centered-cells"
{|class="info-sub centered-cells"
!colspan=2|Tower
!colspan=2|Tower
Line 37: Line 18:
|{{{tier}}}
|{{{tier}}}
|}
|}
|-
|
{|class="info-sub"
{|class="info-sub"
![[Tower XP|XP]] to unlock
![[Tower XP|XP]] to unlock
Line 46: Line 25:
|colspan=3|{{#ifeq:{{{id|}}}|Monkeyopolis|${{formatnum:{{{cost|}}}}}|{{BTD6 upgrade cost by difficulty|{{{cost|0}}}}}}}
|colspan=3|{{#ifeq:{{{id|}}}|Monkeyopolis|${{formatnum:{{{cost|}}}}}|{{BTD6 upgrade cost by difficulty|{{{cost|0}}}}}}}
|}
|}
|}[[Category:{{{tower}}} upgrades in BTD6]][[Category:Path {{{path}}} upgrades in BTD6]][[Category:Tier {{{tier}}} upgrades in BTD6]]{{#seo:
|-
<!-- upgrade prev/next -->
|class="foot"|{{#cargo_query:table=btd6_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)
|delimiter=
}}{{#ifeq:{{{tier|}}}|5|{{#cargo_query:table=btd6_paragons
|fields=CONCAT("<div style='float:right'>[[", _pageName, "{{!}}", name, " →]]</div>") = text
 
|where=tower = "{{{tower|???}}}"
|delimiter=
|default=
}}}}
|}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=btd6_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|}}}
|cost_C={{{cost C|}}}
|xp    ={{{xp|}}}
}}[[Category:{{{tower}}} upgrades in BTD6]][[Category:Path {{{path}}} upgrades in BTD6]][[Category:Tier {{{tier}}} upgrades in BTD6]]{{#seo:
|image={{{image|}}}
|image={{{image|}}}
|keywords=BTD6 {{{name|}}}
|keywords=BTD6 {{{name|}}}, Bloons TD 6 {{{name|}}}
}}</includeonly><noinclude>{{#cargo_declare:_table=btd6_upgrades
}}}}</includeonly><noinclude>{{#cargo_declare:_table=btd6_upgrades
|id=String
|id=String
|unused=Boolean
|unused=Boolean