Template:WeaponsTable: Difference between revisions
From Official Barotrauma Wiki
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<noinclude>{{doc}}[[Category:Templates]][[Category:Cargo Querying Templates]]</noinclude> | <noinclude>{{doc}}[[Category:Templates]][[Category:Cargo Querying Templates]]</noinclude> | ||
<includeonly> | <includeonly>{| class="responsive-table" style="width:{{{width|50}}}%" | ||
!Weapon Name | |||
{{#switch:{{{ | !<abbr title="Talent required to craft the weapon">Required Talent</abbr> | ||
!<abbr title="At what Level Difficulty and at which Outposts is the Weapon sold.>Store Availability</abbr> | |||
{{#ifeq:{{{Tabletype|}}}|Ranged| | |||
!<abbr title="Shoots per Second">Firerate</abbr> | |||
!<abbr title="Max number of ammunition stackable outside of the weapon">Ammo<br>Stack</abbr> | |||
!<abbr title="Max number of ammunition stackable in the weapon.">Ammo<br>Capacity</abbr> | |||
!<abbr title="Max number of shots in a Magazine, Battery or other Ammunition Item">Magazine<br>Size</abbr> | |||
!Ammunition}}<!-- | |||
-->{{#ifeq:{{{Tabletype|}}}|Melee| | |||
!<abbr title="Attacks per Second">Attack Speed</abbr> | |||
!Afflictions}}<!-- | |||
-->{{#ifeq:{{{Tabletype|}}}|Throwable| | |||
!Afflictions | |||
!Explosion | |||
!Explosion<br>Range}}<!-- | |||
-->{{#ifeq:{{{Tabletype|}}}|Turret| | |||
!<abbr title="Shoots per Second">Firerate</abbr> | |||
!<abbr title="Max number of shots in an Ammunition Box">Magazine<br>Size</abbr> | |||
!Ammunition}}<!-- | |||
-->{{#ifeq:{{{Tabletype|}}}|Large Turret| | |||
!<abbr title="Shoots per Second">Firerate</abbr> | |||
!<abbr title="Max number of shots in an Ammunition Box">Magazine<br>Size</abbr> | |||
!Ammunition}}<!-- | |||
-->{{#cargo_query: | |||
tables = Items | |||
| fields = Items.name, Items.type, Items.icon, Items.weapontype, Items.minleveldifficulty, Items.unbuyable, Items.outpostsold, Items.citysold, Items.researchsold, Items.militarysold, Items.minesold, <!-- Items.armorysold -->, Items.ammomaxstack, Items.talent, Items.afflictions, Items.attackspeed, Items.penetration, Items.bluntforcetrauma, Items.lacerations, Items.gunshotwound, Items.deeptissueinjury, Items.organdamage, Items.burn, Items.bleeding, Items.oxygenlow, Items.huskinfection, Items.psychosis, Items.morbusinepoisoning, Items.sufforinpoisoning, Items.deliriuminepoisoning, Items.cyanidepoisoning, Items.radiationsickness, Items.paralysis, Items.progressivestun, Items.stun, Items.pellets, Items.ammocount, Items.magazine, Items.ammo, Items.explosionrange, Items.explosionradiationsickness, Items.explosiondeeptissueinjury, Items.explosionburn, Items.explosionlacerations, Items.explosionbleeding, Items.explosionstun, Items.explosionstructuredamage, Items.structuredamage, | |||
| where = Items.weapontype="{{#switch: {{{Tabletype}}}|Ranged=ranged|Melee=melee|Throwable=throwable|Explosive=explosive|Turret=turret|Large Turret=largeturret|Submarine Weapon Other|submarineweaponother}}" | |||
| format = template | |||
| template = {{#switch: {{{Tabletype}}}|Ranged=WeaponsTable/Ranged|Melee=WeaponsTable/Melee|Throwable=WeaponsTable/Throwable|Explosive=WeaponsTable/Explosive|Turret=WeaponsTable/Turret|Large Turret=WeaponsTable/LargeTurret|Submarine Weapon Other=WeaponsTable/SubmarineWeaponOther}} | |||
| named args = yes | |||
}} | |||
|}</includeonly> |
Revision as of 02:02, 28 December 2022
Table displaying Weapons for the Handheld Weapons page.
Sub Templates
See also
Template in use
Ranged
To show up here items must have:
weapontype
defined asranged
.
{{WeaponsTable|tabletype=ranged}}
Weapon Name | Required Talent | Store Availability
Error: No field named "type" found for the database table "Items".
|
---|
Melee
weapontype
defined asmelee
.
{{WeaponsTable|tabletype=melee}}
Weapon Name | Required Talent | Store Availability
Error: No field named "type" found for the database table "Items".
|
---|
Throwable
weapontype
defined asthrowable
.
{{WeaponsTable|tabletype=throwable}}
Weapon Name | Required Talent | Store Availability
Error: No field named "type" found for the database table "Items".
|
---|
The above documentation is transcluded from Template:WeaponsTable/doc. (edit | history)