Template:SubmarineWeaponsTable: Difference between revisions
(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| | <includeonly>{| class="responsive-table" style="width:{{#if:{{{width|}}}|{{{width}}}%|auto}}" | ||
!Weapon | |||
!Firerate | |||
! | !<abbr title="Max number of ammunition stackable in the weapon">Ammo<br>Capacity</abbr> | ||
!<abbr title="Max number of | !Ammunition | ||
!Ammunition | !<abbr title="Max number of shots in a magazine">Magazine<br>size</abbr> | ||
!Afflictions | |||
!Penetration | |||
!<abbr title="Max number of shots in | ![[Armor Mechanics#Limb Severance|Severance<br>Chance]] | ||
! | {{#cargo_query: | ||
tables = Installations | |||
| fields = name, reload | |||
| where = weapontype="{{#switch: {{{tabletype}}}|turret=turret|largeturret=largeturret|other=other}}" | |||
| order by = Items.ammo DESC, Items.weapondamagemodifier, Items.name | |||
tables = | |||
| fields = | |||
| where = | |||
| format = template | | format = template | ||
| template = {{#switch: {{{ | | 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
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 |
---|
The above documentation is transcluded from Template:SubmarineWeaponsTable/doc. (edit | history)