Template:SubmarineWeaponsTable: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
(Created page with "<noinclude>{{doc}}Category:TemplatesCategory:Cargo Querying Templates</noinclude> <includeonly>{| class="responsive-table" style="width:{{{width|50}}}%" !Weapon Name -...")
 
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:{{{width|50}}}%"
<includeonly>{| class="responsive-table" style="width:{{#if:{{{width|}}}|{{{width}}}%|auto}}"
!Weapon Name
!Weapon
-->{{#ifeq:{{{Tabletype|}}}|Turret|
!Firerate
!<abbr title="Shoots per Second">Firerate</abbr>
!<abbr title="Max number of ammunition stackable in the weapon">Ammo<br>Capacity</abbr>
!<abbr title="Max number of shots in an Ammunition Box">Magazine<br>Size</abbr>
!Ammunition
!Ammunition}}<!--
!<abbr title="Max number of shots in a magazine">Magazine<br>size</abbr>
-->{{#ifeq:{{{Tabletype|}}}|Large Turret|
!Afflictions
!<abbr title="Shoots per Second">Firerate</abbr>
!Penetration
!<abbr title="Max number of shots in an Ammunition Box">Magazine<br>Size</abbr>
![[Armor Mechanics#Limb Severance|Severance<br>Chance]]
!Ammunition}}<!--
{{#cargo_query:
-->{{#ifeq:{{{Submarine|}}}|Other|
tables = Installations
!<abbr title="Shoots per Second">Firerate</abbr>
| fields = name, reload
!<abbr title="Max number of shots in an Ammunition Box">Magazine<br>Size</abbr>
| where = weapontype="{{#switch: {{{tabletype}}}|turret=turret|largeturret=largeturret|other=other}}"
!Ammunition}}<!--
| order by = Items.ammo DESC, Items.weapondamagemodifier, Items.name
-->{{#cargo_query:
tables = Items
| fields =
| where = Items.weapontype="{{#switch: {{{Tabletype}}}|Turret=turret|Large Turret=largeturret|Submarine Weapon Other|submarineweaponother}}"
| format = template
| format = template
| template = {{#switch: {{{Tabletype}}}|Turret=SubmarineWeaponsTable/Turret|Large Turret=SubmarineWeaponsTable/LargeTurret|Other=SubmarineWeaponsTable/Other}}
| template = {{#switch: {{{tabletype}}}|turret=SubmarineWeaponsTable/turret|largeturret=SubmarineWeaponsTable/largeturret|other=SubmarineWeaponsTable/other}}
| named args = yes
| named args = yes
}}
}}
|}</includeonly>
|}</includeonly>

Revision as of 18:10, 17 March 2023

Documentation

Table displaying Submarine Weapons for the Submarine Weapons page.

Under construction

Sub Templates

See Also

Turret

{{SubmarineWeaponsTable|tabletype=turret}}
Weapon Firerate Ammo
Capacity
Ammunition Magazine
size
Afflictions Penetration Severance
Chance
Error 1054: Unknown column 'Items.ammo' in 'order clause'

Function: CargoSQLQuery::run Query: SELECT `cargo__Installations`.`_pageID` AS `cargo_backlink_page_id_Installations`,`name` AS `name`,`reload` AS `reload` FROM `cargo__Installations` WHERE weapontype="turret" ORDER BY Items.ammo DESC,Items.weapondamagemodifier,Items.name LIMIT 100

Large Turret

{{SubmarineWeaponsTable|tabletype=largeturret}}
Weapon Firerate Ammo
Capacity
Ammunition Magazine
size
Afflictions Penetration Severance
Chance
Error 1054: Unknown column 'Items.ammo' in 'order clause'

Function: CargoSQLQuery::run Query: SELECT `cargo__Installations`.`_pageID` AS `cargo_backlink_page_id_Installations`,`name` AS `name`,`reload` AS `reload` FROM `cargo__Installations` WHERE weapontype="largeturret" ORDER BY Items.ammo DESC,Items.weapondamagemodifier,Items.name LIMIT 100

Other

{{SubmarineWeaponsTable|tabletype=other}}
Weapon Firerate Ammo
Capacity
Ammunition Magazine
size
Afflictions Penetration Severance
Chance
Error 1054: Unknown column 'Items.ammo' in 'order clause'

Function: CargoSQLQuery::run Query: SELECT `cargo__Installations`.`_pageID` AS `cargo_backlink_page_id_Installations`,`name` AS `name`,`reload` AS `reload` FROM `cargo__Installations` WHERE weapontype="other" ORDER BY Items.ammo DESC,Items.weapondamagemodifier,Items.name LIMIT 100