Template:Sandbox: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
No edit summary
No edit summary
Line 6: Line 6:
{{#if: {{{showexplosionrange|}}}|! Explosion Range|}}
{{#if: {{{showexplosionrange|}}}|! Explosion Range|}}
! Structure Damage
! Structure Damage
! [[Fabricator]] Materials{{#cargo_query:
! [[Fabricator]] Materials{{#if: {{{showpenetration|}}}|{{#if: {{{showexplosionrange|}}}|{{#cargo_query:
tables = Ammunition,Items
tables = Ammunition,Items
| join on = Ammunition.name = Items.name
| join on = Ammunition.name = Items.name
Line 13: Line 13:
| format = template
| format = template
| template = Sandbox/row
| template = Sandbox/row
| named args = yes
}}<!--{{#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  both
| named args = yes
| named args = yes
}}|{{#cargo_query:
}}|{{#cargo_query:
Line 28: Line 20:
| where = Ammunition.usedby = "{{PAGENAME}}" OR Ammunition.usedby2 = "{{PAGENAME}}" OR Ammunition.usedby3 = "{{PAGENAME}}"
| where = Ammunition.usedby = "{{PAGENAME}}" OR Ammunition.usedby2 = "{{PAGENAME}}" OR Ammunition.usedby3 = "{{PAGENAME}}"
| format = template
| format = template
| template = Sandbox/row  penetration
| template = Sandbox/rowpene
| named args = yes
| named args = yes
}}}}|{{#cargo_query:
}}}}|{{#cargo_query:
Line 36: Line 28:
| where = Ammunition.usedby = "{{PAGENAME}}" OR Ammunition.usedby2 = "{{PAGENAME}}" OR Ammunition.usedby3 = "{{PAGENAME}}"
| where = Ammunition.usedby = "{{PAGENAME}}" OR Ammunition.usedby2 = "{{PAGENAME}}" OR Ammunition.usedby3 = "{{PAGENAME}}"
| format = template
| format = template
| template = Sandbox/row  none
| template = Sandbox/rownone
| named args = yes
| named args = yes
}}}}{{#if: {{{showexplosionrange|}}}|{{#cargo_query:
}}}}{{#if: {{{showexplosionrange|}}}|{{#cargo_query:
Line 44: Line 36:
| where = Ammunition.usedby = "{{PAGENAME}}" OR Ammunition.usedby2 = "{{PAGENAME}}" OR Ammunition.usedby3 = "{{PAGENAME}}"
| where = Ammunition.usedby = "{{PAGENAME}}" OR Ammunition.usedby2 = "{{PAGENAME}}" OR Ammunition.usedby3 = "{{PAGENAME}}"
| format = template
| format = template
| template = Sandbox/row  explo
| template = Sandbox/rowexplo
| named args = yes
| named args = yes
}}|}}-->
}}|}}
|}
|}
</includeonly>
</includeonly>

Revision as of 16:20, 11 November 2021

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.