|
|
Line 1: |
Line 1: |
| <noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly> | | <noinclude>{{doc}}[[Category:Templates]]</noinclude> |
| {| class="responsive-table" style="width:{{#if: {{{width|}}}|{{{width}}}|70}}%;"
| | <includeonly> |
| ! Item
| | {{str|{{{name}}}|{{{magnitude|}}}|{{{magnitudefail|}}}||{{{skill|}}}}} |
| ! Afflictions
| |
| {{#if: {{{showpenetration|}}}|! Armor Penetration|}}
| |
| {{#if: {{{showexplosionrange|}}}|! Explosion Range|}}
| |
| ! Structure Damage
| |
| ! [[Fabricator]] Materials
| |
| {{#if: {{{showpenetration|}}}|{{#if: {{{showexplosionrange|}}}|{{#cargo_query: | |
| tables = Ammunition,Items
| |
| | join on = Ammunition.name = Items.name
| |
| | fields = Ammunition.name, Items.icon, Ammunition.afflictions, Ammunition.penetration, Ammunition.explosionrange, Ammunition.structuredamage, Items.fabricatormaterials
| |
| | where = Ammunition.usedby = "{{PAGENAME}}" OR Ammunition.usedby2 = "{{PAGENAME}}" OR Ammunition.usedby3 = "{{PAGENAME}}"
| |
| | format = template
| |
| | template = Sandbox/row
| |
| | named args = yes
| |
| }} | |
| |{{#cargo_query: | |
| tables = Ammunition,Items
| |
| | join on = Ammunition.name = Items.name
| |
| | fields = Ammunition.name, Items.icon, Ammunition.afflictions, Ammunition.penetration, Ammunition.structuredamage, Items.fabricatormaterials
| |
| | where = Ammunition.usedby = "{{PAGENAME}}" OR Ammunition.usedby2 = "{{PAGENAME}}" OR Ammunition.usedby3 = "{{PAGENAME}}"
| |
| | format = template | |
| | template = Sandbox/rowpene
| |
| | named args = yes
| |
| }}
| |
| }}|{{#if: {{{showexplosionrange|}}}|{{#cargo_query: | |
| tables = Ammunition,Items
| |
| | join on = Ammunition.name = Items.name
| |
| | fields = Ammunition.name, Items.icon, Ammunition.afflictions, Ammunition.explosionrange, Ammunition.structuredamage, Items.fabricatormaterials
| |
| | where = Ammunition.usedby = "{{PAGENAME}}" OR Ammunition.usedby2 = "{{PAGENAME}}" OR Ammunition.usedby3 = "{{PAGENAME}}" | |
| | format = template
| |
| | template = Sandbox/rowexplo | |
| | named args = yes
| |
| }}
| |
| |{{#cargo_query: | |
| tables = Ammunition,Items
| |
| | join on = Ammunition.name = Items.name
| |
| | fields = Ammunition.name, Items.icon, Ammunition.afflictions, Ammunition.structuredamage, Items.fabricatormaterials
| |
| | where = Ammunition.usedby = "{{PAGENAME}}" OR Ammunition.usedby2 = "{{PAGENAME}}" OR Ammunition.usedby3 = "{{PAGENAME}}"
| |
| | format = template
| |
| | template = Sandbox/rownone
| |
| | named args = yes | |
| }}
| |
| }}}} | |
| |}
| |
| </includeonly> | | </includeonly> |