Template:Sandbox: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
No edit summary
No edit summary
 
(72 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
{| class="wikitable sortable"
{{doc}}[[Category:Templates]]
! colspan = 3|Weapon Stats
</noinclude><includeonly>{{#vardefine:match<!--
! colspan = 4|Ammunition Stats
// Versions match
! rowspan = 2|Notes
-->|{{#ifeq:{{{1}}}|{{Current_version}}|true<!--
|-
// Major and minor numbers match, ignore hotfix
!Weapon Name
-->|{{#ifeq:{{#explode:{{{1}}}|.|0}}{{#explode:{{{1}}}|.|1}}{{#explode:{{{1}}}|.|2}}|{{#explode:{{Current_version}}|.|0}}{{#explode:{{Current_version}}|.|1}}{{#explode:{{Current_version}}|.|2}}|true|false}}}}}}<!--
!<abbr title="Rounds per Second">RPS</abbr>
!Ammunition
!Afflictions
!Penetration
{{#cargo_query:
tables = Items,Ammunition
| join on = Items.name = Ammunition.name


--><table class="version-control" style="border-color:{{#ifeq:{{#var:match}}|true|{{#if:{{{cleanup|}}}|#ffa007|{{#if:{{{stub|}}}|#ffa007|#3CB886}}}}|#993838}};">
| 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,
<tr>
<td style="width:10%;">[[File:Version Checkmark{{Space}}{{#ifeq:{{#var:match}}|true|True|False}}.png|{{#if:{{{cleanup|}}}|{{#if:{{{stub|}}}|3|5}}|{{#if:{{{stub|}}}|5|7}}}}0px]]</td>
<td style="padding-left:0;padding-right:0;"><div style="font-size:1.2em;">'''{{#ifeq:{{#var:match}}|true|Data is Up-to-date|Data is Potentially Outdated}}'''</div>
<span style="font-size:89%;"><!--


-->{{#ifeq:{{#var:match}}|true|<!--
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 version is missing write unknown
-->|{{#if:{{{1|}}}|Last updated for version: [[Version history/Alpha#{{{1}}}{{!}}{{{1}}}]]|Last updated for unknown version}}<br>}}<!--


-->Current game version: [[Version history/Alpha#{{Current_version}}{{!}}{{Current_version}}]]
| where = Items.type = "weapon" AND Items.ammocount > 0
</span></td>
| format = template
</tr>
| template = Sandbox/row
 
| named args = yes
{{#if: {{{cleanup|}}}|
}}
<tr>
|}
<td style="width:10%;">[[File:Cleanup.svg|{{#if: {{{stub|}}}|3|5}}0px]]</td>
<td style="padding-left:0;padding-right:0;border-top: 1px solid #303436;"><div style="font-size:1.1em;">This article requires '''cleanup''' to meet this wiki's [[Official Barotrauma Wiki:Guidelines|quality standards]].</div></td>
</tr>
|}}
{{#if: {{{stub|}}}|
<tr>
<td style="width:10%;">[[File:Icon-stub.png|{{#if: {{{cleanup|}}}|3|5}}0px]]</td>
<td style="padding-left:0;padding-right:0;border-top: 1px solid #303436;"><div style="font-size:1.1em;">This article is a '''[[:Category:Stubs|stub]].''' Help the {{SITENAME}} by [{{fullurl:{{FULLPAGENAME}}|action=edit}} expanding it].</div></td>
</tr>
|}}
{{#if:{{{2|}}}|<tr><td></td><td><span style="font-size:89%;">NOTE: {{{2}}}</span></td></tr>|}}
</table>{{#ifeq:{{#var:match}}|true||{{#ifeq:{{NAMESPACE}}|Template||[[Category:Potentially Outdated]]}}}}{{#if:{{{stub|}}}||[[Category:Stubs]][[Category:Problem articles]]}}{{#if:{{{cleanup|}}}||[[Category:Cleanup]][[Category:Problem articles]]}}
</includeonly>

Latest revision as of 19:53, 27 June 2022

Weapon Stats Ammunition Stats Notes
Weapon Name RPS Ammunition Afflictions Penetration
Error: No field named "type" found for the database table "Items".