Template:Sandbox: Difference between revisions
From Official Barotrauma Wiki
(oops) |
No edit summary |
||
Line 1: | Line 1: | ||
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly> | <noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly> | ||
{| class="responsive-table" style="width:{{#if: {{{width|}}}|{{{width}}}|70}}%;" | {| class="responsive-table" style="width:{{#if: {{{width|}}}|{{{width}}}|70}}%;" | ||
! Item | ! Item | ||
Line 10: | Line 9: | ||
tables = Ammunition,Items | tables = Ammunition,Items | ||
| join on = Ammunition.name = Items.name | | join on = Ammunition.name = Items.name | ||
| fields = Ammunition.name, Items.icon, Ammunition.afflictions, | | 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}}" | | where = Ammunition.usedby = "{{PAGENAME}}" OR Ammunition.usedby2 = "{{PAGENAME}}" OR Ammunition.usedby3 = "{{PAGENAME}}" | ||
| format = template | | format = template | ||
| template = Sandbox/row | | template = Sandbox/row | ||
| named args = yes | | 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 | |||
}}|{{#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/row penetration | |||
| 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/row none | |||
| 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/row explo | |||
| named args = yes | |||
}}|}}--> | |||
|} | |} | ||
</includeonly> | </includeonly> | ||
Revision as of 16:05, 11 November 2021
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.
The above documentation is transcluded from Template:Sandbox/doc. (edit | history)