Template:Sandbox/row: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
No edit summary
No edit summary
 
(38 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<onlyinclude>
<noinclude>{{doc}}</noinclude><onlyinclude>
{{str|{{{name}}}|{{#expr: {{{magnitude}}} * {{#if:{{{duration}}}|{{{duration}}}|1}}}}|{{#if:{{{magnitudefail}}}|{{#expr: {{{magnitudefail}}} * {{{duration|1}}}}}|}}||{{{skill}}}}}
|-
| style="text-align:center;" rowspan=<!-- the following switch is only for testing purposes -->{{#switch:{{{name}}}|Deadeye Carbine|SMG|Revolver|Stun Gun|Grenade Launcher=2|Riot Shotgun|Boom Stick|Autoshotgun=3|Harpoon Gun=4|1}} | [[File:{{{name}}}.png|50px]] <br> [[{{{name}}}]]
| {{{attackspeed}}}
{{#cargo_query:
tables = Items,Ammunition
| join on = Items.name = Ammunition.name
 
| fields = Items.name, Items.type, Items.icon, Items.afflictions, Items.attackspeed, Items.penetration, Items.pellets, Ammunition.magazine, Ammunition.penetration, Ammunition.structuredamage, Items.explosionstructuredamage, Ammunition.explosionrange, Ammunition.usedby, Ammunition.usedby2, Ammunition.usedby3, Items.ammo, Items.ammocount, Items.magazine, Items.hands, Items.note,
 
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.explosionradiationsickness, Items.explosiondeeptissueinjury, Items.explosionburn, Items.explosionlacerations, Items.explosionbleeding, Items.explosionstun
 
| where = Items.type = "ammo" AND Ammunition.usedby LIKE "%{{{name}}}%" OR Ammunition.usedby2 LIKE "%{{{name}}}%" OR Ammunition.usedby3 LIKE "%{{{name}}}%"
| format = template
| template = Sandbox/row/row2
| named args = yes
| delimiter = \n{{!}}-\n
}}
</onlyinclude>
</onlyinclude>

Latest revision as of 20:16, 27 June 2022

Template:Sandbox/row/doc |- | style="text-align:center;" rowspan=1 | [[File:{{{name}}}.png|50px]]
[[{{{name}}}]] | {{{attackspeed}}}

Error: No field named "type" found for the database table "Items".