Template:BSM2 weapon info: Difference between revisions

mNo edit summary
Pymonkibot (talk | contribs)
m Text replacement - "info-sub" to "subtable"
 
(17 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>{{#cargo_declare:
<includeonly>{|class="info"
_table=bsm2_weapons
!class="head"|{{{name M}}}
|name_F      =String
|-
|name_M      =String
|
|icon_F      =File
{|class="subtable main centered-cells"
|icon_M      =File
|[[File:{{{image M}}}|70x70px]]
|description_F=String
|-
|description_M=String
| {{{description M}}}<br><small>{{{flavour}}}</small>
|flavour      =String
|}
|-
|
{|class="subtable centered-cells"
!colspan=3|Type
!Slot
!Tier
!colspan=3|Cost
|-
|colspan=3|{{#switch:{{{type}}}
|Dart    =[[File:BSM2M achievement_icon_dart_powerset.png|20px|link=Dart (BSM2)]] [[Dart (BSM2)|Dart]]
|Boomerang=[[File:BSM2M achievement_icon_boomerang_powerset.png|20px|link=Boomerang (BSM2)]] [[Boomerang (BSM2)|Boomerang]]
|Bomb    =[[File:BSM2M achievement_icon_bomb_powerset.png|20px|link=Bomb (BSM2)]] [[Bomb (BSM2)|Bomb]]
|Magic    =[[File:BSM2M achievement_icon_magic_powerset.png|20px|link=Magic (BSM2)]] [[Magic (BSM2)|Magic]]
|Energy  =[[File:BSM2M achievement_icon_energy_powerset.png|20px|link=Energy]] [[Energy]]
|Ice      =[[File:BSM2M achievement_icon_ice_powerset.png|20px|link=Ice (BSM2)]] [[Ice (BSM2)|Ice]]
|Storm    =[[File:BSM2M achievement_icon_storm_powerset.png|20px|link=Storm (BSM2)]] [[Storm (BSM2)|Storm]]
|#default =???
}}
|{{{slot}}}
|{{{tier}}}
|colspan="3"|<!--[[File:Blop icon.png|18px|link=Blop (BSM2)]]-->{{formatnum:{{{cost M|}}}}}{{#if:{{{cost F|}}}|<small> (mobile)</small><br><!--[[File:BSM2F blop cash icon.svg|25px|link=Blop Cash|style="margin:-4px"]]-->{{formatnum:{{{cost F|}}}}} <small>(Flash)</small>}}
|}
|-
<!-- upgrade prev/next -->
{{#ifeq:{{{tier|}}}|Epic||{{!}}class="foot"{{!}}{{#cargo_query:table=bsm2_weapons
|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


|type=String
|where=type = "{{{type|???}}}" AND slot = "{{{slot|0}}}" AND (tier = {{{tier|0}}} - 1 OR tier = {{{tier|0}}} + 1) AND NOT tier = "Epic"
|slot=String
|delimiter=
|tier=Integer
}}}}
 
|}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=bsm2_weapons
|cost_F=Integer
|cost_M=Integer
}}[[Category:Infoboxes]][[Category:BSM2 templates]]</noinclude>
<includeonly>{{#cargo_store:
_table=bsm2_weapons
|name_F      ={{{name F|}}}
|name_F      ={{{name F|}}}
|name_M      ={{{name M|}}}
|name_M      ={{{name M|}}}
Line 33: Line 54:
|cost_M={{{cost M|}}}
|cost_M={{{cost M|}}}
}}[[Category:{{{type}}} {{#switch:{{{type}}}
}}[[Category:{{{type}}} {{#switch:{{{type}}}
|Dart = weapons (BSM2)
|Dart =weapons (BSM2)
|Bomb = weapons (BSM2)
|Bomb =weapons (BSM2)
|#default = weapons
|#default =weapons
}}]][[Category:{{{slot}}} weapons]][[Category:Tier {{{tier}}} weapons]]</includeonly>
}}]][[Category:{{{slot}}} weapons]][[Category:{{#ifeq:{{{tier}}}|Epic|Epic weapons (BSM2)|Tier {{{tier}}} weapons}}]]}}{{#seo:
{|class="info"
|image={{{image M|}}}
!class="head"|{{{name M}}}
|keywords=BSM2 {{{name M|}}}, Super Monkey {{{name M|}}}
|-
}}</includeonly><noinclude>{{#cargo_declare:_table=bsm2_weapons
|
|name_F      =String
{|class="info-sub main centered-cells"
|name_M      =String
|[[File:{{{icon M}}}|50x50px]]
|icon_F      =File
|colspan=3 style="text-align:left"|''{{{description M}}}''<br>''<small>{{{flavour}}}</small>
|icon_M      =File
|}
|description_F=Wikitext string
|-
|description_M=Wikitext string
|
|flavour      =String
{|class="info-sub centered-cells"
 
!colspan=3|Type
|type=String
!Slot
|slot=String
!Tier
|tier=String
!colspan=3|Cost
 
|-
|cost_F=Integer
|colspan=3|{{#switch:{{{type}}}
|cost_M=Integer
|Dart = <!--[[File:BSM2M achievement_icon_dart_powerset.png|20px|link=Dart (BSM2)]]-->[[Dart (BSM2)|Dart]]
}}{{/doc}}</noinclude>
|Boomerang = <!--[[File:BSM2M achievement_icon_boomerang_powerset.png|20px|link=Boomerang (weapon type)]]-->[[Boomerang (weapon type)|Boomerang]]
|Bomb = <!--[[File:BSM2M achievement_icon_bomb_powerset.png|20px|link=Bomb (BSM2)]]-->[[Bomb (BSM2)|Bomb]]
|Magic = <!--[[File:BSM2M achievement_icon_magic_powerset.png|20px|link=Magic (weapon type)]]-->[[Magic (weapon type)|Magic]]
|Energy = <!--[[File:BSM2M achievement_icon_energy_powerset.png|20px|link=Energy]]-->[[Energy]]
|Ice = <!--[[File:BSM2M achievement_icon_ice_powerset.png|20px|link=Ice (weapon type)]]-->[[Ice (weapon type)|Ice]]
|Storm = <!--[[File:BSM2M achievement_icon_storm_powerset.png|20px|link=Storm]]-->[[Storm]]
|#default = ???
}}
|{{{slot}}}
|{{{tier}}}
|colspan=3|<!--[[File:Blop icon.png|18px|link=Blop (BSM2)]]-->{{formatnum:{{{cost M|}}}}}{{#if:{{{cost F|}}}|<small> (mobile)</small><br><!--[[File:BSM2F blop cash icon.svg|25px|link=Blop Cash|style="margin:-4px"]]-->{{formatnum:{{{cost F|}}}}} <small>(Flash)</small>}}
|}
|}<!--{{#if:{{{cost F|}}}|<indicator name="BSM2F-indicator">[[File:BSM2F thumb.jpg|x32px|link=Bloons Super Monkey 2 (Flash)]]</indicator>}}<indicator name="BSM2M-indicator">[[File:BSM2M game icon.png|x32px|link=Bloons Supermonkey 2 (mobile)]]</indicator>-->