Difference between revisions of "Template:Infobox weapon"
m (Added support for template embedding) |
(Removed need for template embedding) |
||
Line 1: | Line 1: | ||
{{Infobox|child={{{child|{{{embed|}}}}}} | {{Infobox|child={{{child|{{{embed|}}}}}} | ||
+ | | autoheaders = y | ||
| above = {{{name|Unknown Weapon}}} | | above = {{{name|Unknown Weapon}}} | ||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|Unknown-weapon.png}}}|size={{#ifeq:{{lc:{{{landscape|}}}}}|yes|{{min|300|{{#if:{{#ifexpr:{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|300|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}}}x200px|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|Unknown Weapon}}}|suppressplaceholder=yes}} | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|Unknown-weapon.png}}}|size={{#ifeq:{{lc:{{{landscape|}}}}}|yes|{{min|300|{{#if:{{#ifexpr:{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|300|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}}}x200px|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|Unknown Weapon}}}|suppressplaceholder=yes}} | ||
+ | |||
+ | | header1 = Weapon Stats | ||
| label2 = Version Introduced | | label2 = Version Introduced | ||
Line 20: | Line 23: | ||
| data6 = {{#if:{{{reload_time|}}}|{{{reload_time|Unknown}}}}} | | data6 = {{#if:{{{reload_time|}}}|{{{reload_time|Unknown}}}}} | ||
− | | | + | | header10 = Projectile Stats |
− | | | + | |
− | | | + | | label11 = Type |
− | | | + | | data11 = {{{type|Unknown}}} |
− | | | + | |
− | | | + | | label12 = {{#if:{{{damage|}}}|Damage}} |
+ | | data12 = {{#if:{{{damage|}}}|{{{damage|Unknown}}}}} | ||
+ | |||
+ | | label13 = {{#if:{{{collision|}}}|Collision}} | ||
+ | | data13 = {{#if:{{{collision|}}}|{{{collision|Unknown}}}}} | ||
+ | |||
+ | | label14 = {{#if:{{{hit_points|}}}|Hit Points}} | ||
+ | | data14 = {{#if:{{{hit_points|}}}|{{{hit_points|Unknown}}}}} | ||
+ | |||
+ | | label15 = {{#if:{{{speed|}}}|Speed}} | ||
+ | | data15 = {{#if:{{{speed|}}}|{{{speed|Unknown}}}}} | ||
+ | |||
+ | | label16 = {{#if:{{{duration|}}}|Duration}} | ||
+ | | data16 = {{#if:{{{duration|}}}|{{{duration|Unknown}}}}} | ||
+ | |||
+ | | label17 = {{#if:{{{size|}}}|Size}} | ||
+ | | data17 = {{#if:{{{size|}}}|{{{size|Unknown}}}}} | ||
+ | |||
+ | | header20 = Thrown Stats | ||
+ | | label21 = {{#if:{{{thrown_damage|}}}|Damage}} | ||
+ | | data21 = {{#if:{{{thrown_damage|}}}|{{{thrown_damage|Unknown}}}}} | ||
+ | |||
+ | | label22 = {{#if:{{{collision|}}}|Collision}} | ||
+ | | data22 = {{#if:{{{collision|}}}|{{{collision|Unknown}}}}} | ||
+ | |||
+ | | label23 = {{#if:{{{hit_points|}}}|Hit Points}} | ||
+ | | data23 = {{#if:{{{hit_points|}}}|{{{hit_points|Unknown}}}}} | ||
}} | }} | ||
<noinclude>{{documentation}}</noinclude> | <noinclude>{{documentation}}</noinclude> |
Revision as of 06:58, 3 June 2021
Unknown Weapon | |
---|---|
Weapon Stats | |
Version Introduced | Unknown |
Level Unlocked | Unknown |
Spawn Cost | Unknown |
Projectile Stats | |
Type | Unknown |
This template is used to create an infobox for a weapon in Blaston.
Parameter Description
{{Infobox weapon |name= |image= |image_size= |alt= |version_introduced= |unlock_level= |spawn_cost= |ammo= |reload_time= |projectile_type= |damage= |collision= |hit_points= |speed= |thrown_damage= |thrown_collision= |thrown_hit_points= }}
Name
The name of the weapon. This is shown at the top of the infobox. If not included, Unknown Weapon is displayed.
Image
File name of the weapon's image that has been uploaded to the Blaston Wiki. If an image is not included, the default image is displayed
Image Size
The required size of the image to appear in the infobox. 200px is a good size.
Alt
Alt text for the image in the infobox.
Version Introduced
The version number that indicates when the weapon was first introduced. If not included, Unknown is displayed.
Level Unlocked
The level that the player has to be in order for the weapon to be unlocked. If not included, Unknown is displayed.
Spawn Cost
The weapon's spawn cost. If not included, Unknown is displayed.
Ammo
The amount of ammo the weapon has, if any. If the weapon doesn't have any ammo, do not include the parameter.
Reload Time
The time it takes for the weapon to reload, if any. If the weapon doesn't have any reload time (for example, if it only triggers once), do not include the parameter.
Projectile Type
The type of projectile the weapon uses.
Projectile Damage
The amount of damage the weapon's projectile deals to players.
Projectile Collision
The amount of damage the weapon's projectile deals to enemy projectiles or thrown weapons.
Projectile Hit Points
The amount of hit points the weapon's projectile has.
Projectile Speed
The speed at which the weapon projectiles travel.
Projectile Duration
The amount of time the weapon's projectiles last. Used for projectiles that deal damage over time.
Projectile Size
The size of weapon projectiles. Used for projectiles that deal damage over time.
Thrown Damage
The amount of damage the weapon deals when thrown at a player.
Thrown Collision
The amount of damage the weapon deals when thrown at enemy projectiles or thrown weapons.
Thrown Hit Points
The amount of damage the weapon has when thrown.
Examples
Wildcat
Wildcat | |
---|---|
Weapon Stats | |
Version Introduced | 1.0 |
Level Unlocked | 1 |
Spawn Cost | 3 |
Ammo | 13 |
Reload Time | 0.3 |
Projectile Stats | |
Type | Unknown |
Damage | 6 |
Collision | 5 |
Hit Points | 5 |
Speed | Slow |
Thrown Stats | |
Damage | 1 |
Collision | 5 |
Hit Points | 5 |
{{Infobox weapon
|name=Wildcat
|image=Icon-wildcat.png
|image_size=200px
|alt=Image of the Wildcat, a weapon in Blaston
|version_introduced=1.0
|unlock_level=1
|spawn_cost=3
|ammo=13
|reload_time=0.3
|projectile_type=Bullet
|damage=6
|collision=5
|hit_points=5
|speed=Slow
|thrown_damage=1
|thrown_collision=15
|thrown_hit_points=15
}}
FrostByte
FrostByte | |
---|---|
Weapon Stats | |
Version Introduced | 1.5 |
Level Unlocked | 4 |
Spawn Cost | 2 |
Ammo | 1 |
Projectile Stats | |
Type | Unknown |
Damage | 15 |
Speed | Really Fast |
Thrown Stats | |
Damage | 15 |
{{Infobox weapon
|name=FrostByte
|image=Icon-frostbyte.png
|image_size=200px
|alt=Image of the FrostByte, a weapon in Blaston
|version_introduced=1.5
|unlock_level=4
|spawn_cost=2
|ammo=1
|projectile_type=Special
|damage=15
|speed=Really Fast
|thrown_damage=15
|thrown_collision=20
|thrown_hit_points=8
}}
Majestic Nade
Majestic Nade | |
---|---|
Weapon Stats | |
Version Introduced | 1.0 |
Level Unlocked | 15 |
Spawn Cost | 3 |
Ammo | 1 |
Projectile Stats | |
Type | Unknown |
Damage | 20 |
Speed | Slow |
Duration | 7 |
Size | Small |
Thrown Stats | |
Damage | 6 |
{{Infobox weapon
|name=Majestic Nade
|image=icon-majestic-nade.png
|image_size=200px
|alt=Image of the Majestic Nade, a weapon in Blaston
|version_introduced=1.0
|unlock_level=15
|spawn_cost=3
|ammo=1
|projectile_type=Nade / Energcage
|damage=20
|speed=Slow
|duration=7
|size=Small
|thrown_damage=6
|thrown_collision=15
|thrown_hit_points=15
}}