Template:Sandbox/row: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
No edit summary
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{doc}}</noinclude><onlyinclude>
<noinclude>{{doc}}</noinclude><onlyinclude>
|-
|-
| style="text-align:center;" | [[File:{{{name}}}.png|50px]] <br> [[{{{name}}}]]
| 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}}}
| {{{attackspeed}}}
| style="text-align:center;" | [[File:{{{name}}}.png|50px]] <br> [[{{{name}}}]]
{{#cargo_query:
| {{#if: {{{bluntforcetrauma|}}}|{{Affliction|Blunt Force Trauma|||{{{bluntforcetrauma}}}}} <small>({{#expr: {{{bluntforcetrauma}}}*{{{attackspeed}}} }} DPS)</small><br>|}}<!--
tables = Items,Ammunition
-->{{#if: {{{lacerations|}}}|{{Affliction|Lacerations|||{{{lacerations}}}}} <small>({{#expr: {{{lacerations}}}*{{{attackspeed}}} round 1}} DPS)</small><br>|}}<!--
| join on = Items.name = Ammunition.name
-->{{#if: {{{gunshotwound|}}}|{{Affliction|Gunshot Wound|||{{{gunshotwound}}}}} <small>({{#expr: {{{gunshotwound}}}*{{{attackspeed}}} round 1}} DPS)</small><br>|}}<!--
 
-->{{#if: {{{deeptissueinjury|}}}|{{Affliction|Deep Tissue Injury|||{{{deeptissueinjury}}}}} <small>({{#expr: {{{deeptissueinjury}}}*{{{attackspeed}}} round 1}} DPS)</small><br>|}}<!--
| 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,
-->{{#if: {{{organdamage|}}}|{{Affliction|Organ Damage|||{{{organdamage}}}}}<br>|}}<!-- no dps needed
 
-->{{#if: {{{burn|}}}|{{Affliction|Burn|||{{{burn}}}}} <small>({{#expr: {{{burn}}}*{{{attackspeed}}} round 1}} DPS)</small><br>|}}<!--
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
-->{{#if: {{{bleeding|}}}|{{Affliction|Bleeding|||{{{bleeding}}}}} <small>({{#expr: {{{bleeding}}}*{{{attackspeed}}} round 1}} DPS)</small><br>|}}<!--
 
-->{{#if: {{{oxygenlow|}}}|{{Affliction|Oxygen Low|||{{{oxygenlow}}}}} <small>({{#expr: {{{oxygenlow}}}*{{{attackspeed}}} round 1}} DPS)</small><br>|}}<!--
| where = Items.type = "ammo" AND Ammunition.usedby LIKE "%{{{name}}}%" OR Ammunition.usedby2 LIKE "%{{{name}}}%" OR Ammunition.usedby3 LIKE "%{{{name}}}%"
-->{{#if: {{{huskinfection|}}}|{{Affliction|Husk Infection|||{{{huskinfection}}}}}<br>|}}<!-- no dps needed
| format = template
-->{{#if: {{{psychosis|}}}|{{Affliction|Psychosis|||{{{psychosis}}}}} <small>({{#expr: {{{psychosis}}}*{{{attackspeed}}} round 1}} DPS)</small><br>|}}<!--
| template = Sandbox/row/row2
-->{{#if: {{{morbusinepoisoning|}}}|{{Affliction|Morbusine Poisoning|||{{{morbusinepoisoning}}}}}<br>|}}<!-- no dps needed
| named args = yes
-->{{#if: {{{sufforinpoisoning|}}}|{{Affliction|Sufforin Poisoning|||{{{sufforinpoisoning}}}}}<br>|}}<!-- no dps needed
| delimiter = \n{{!}}-\n
-->{{#if: {{{deliriuminepoisoning|}}}|{{Affliction|Deliriumine Poisoning|||{{{deliriuminepoisoning}}}}}<br>|}}<!-- no dps needed
}}
-->{{#if: {{{cyanidepoisoning|}}}|{{Affliction|Cyanide Poisoning|||{{{cyanidepoisoning}}}}}<br>|}}<!-- no dps needed
-->{{#if: {{{radiationsickness|}}}|{{Affliction|Radiation Sickness|||{{{radiationsickness}}}}} <small>({{#expr: {{{radiationsickness}}}*{{{attackspeed}}} round 1}} DPS)</small><br>|}}<!--
-->{{#if: {{{paralysis|}}}|{{Affliction|Paralysis|||{{{paralysis}}}}}<br>|}}<!-- no dps needed
-->{{#if: {{{progressivestun|}}}|{{Affliction|Progressive Stun|||{{{progressivestun}}}}}<br>|}}<!-- no dps needed
-->{{#if: {{{stun|}}}|{{Affliction|Stun|||{{#expr: {{{stun}}} round 1}}s}}|}}
| {{#if: {{{penetration|}}}|{{{penetration}}}%|0%}}
</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".