Template:WeaponsTable: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
No edit summary
No 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>{| class="responsive-table" style="width:{{#if:{{{width|}}}|{{{width}}}%|auto}}"
<includeonly>{| class="responsive-table {{#ifeq:{{{tabletype}}}|ranged||sortable}} mw-collapsible {{#if:{{{collapsed|}}}|mw-collapsed}}" style="width:{{{width|auto}}}%"
|+{{#switch: {{{tabletype|weapons}}}|ranged='''<big>Ranged Weapons</big>'''|melee='''<big>Melee Weapons</big>'''|throwable='''<big>Throwable Weapons</big>'''|}}
!Weapon
!Weapon
{{#ifeq:{{{tabletype|}}}|ranged|
{{#ifeq:{{{tabletype|}}}|ranged|

Revision as of 01:10, 19 March 2023

Documentation

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 as ranged.
{{WeaponsTable|tabletype=ranged}}
Ranged Weapons
Weapon Firerate Supply Ammo
Capacity
Ammunition Magazine
size
Afflictions Penetration Severance
Chance
Error: No field named "type" found for the database table "Items".

Melee

  • weapontype defined as melee.
{{WeaponsTable|tabletype=melee}}
Melee Weapons
Weapon Attack Speed Afflictions Penetration Severance
Chance
Error: No field named "type" found for the database table "Items".

Throwable

  • weapontype defined as throwable.
{{WeaponsTable|tabletype=throwable}}
Throwable Weapons
Weapon Afflictions Penetration Severance
Chance
Error: No field named "type" found for the database table "Items".