Template:Sandbox: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
No edit summary
(Replaced content with "<noinclude>{{doc}}Category:Templates</noinclude> <includeonly> {{str|{{{name}}}|{{{magnitude|}}}|{{{magnitudefail|}}}||{{{skill|}}}}} </includeonly>")
Tag: Replaced
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>

Revision as of 20:07, 8 January 2022

Documentation

This template can be used to test templates. This is useful when making significant changes to a broadly used template, so as to not impact the wiki during tests. User pages cannot be used for that purpose.