|
|
(27 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| <noinclude>{{doc}}[[Category:Templates]]</noinclude> | | {| class="wikitable sortable" |
| <includeonly>{{#vardefine:match<!--
| | ! colspan = 3|Weapon Stats |
| // Versions match
| | ! colspan = 4|Ammunition Stats |
| -->|{{#ifeq:{{{1}}}|{{Current_version}}|true<!--
| | ! rowspan = 2|Notes |
| // First two version numbers match, ignore last two
| | |- |
| -->|{{#ifeq:{{#explode:{{{1}}}|.|0}}{{#explode:{{{1}}}|.|1}}|{{#explode:{{Current_version}}|.|0}}{{#explode:{{Current_version}}|.|1}}|true|false}}}}}}<!--
| | !Weapon Name |
| | !<abbr title="Rounds per Second">RPS</abbr> |
| | !Ammunition |
| | !Afflictions |
| | !Penetration |
| | {{#cargo_query: |
| | tables = Items,Ammunition |
| | | join on = Items.name = Ammunition.name |
|
| |
|
| --><indicator name="version1"><table class="version-control" style="border-color:{{#ifeq:{{#var:match}}|true|{{#if:{{{cleanup|}}}|#ffa007|{{#if:{{{stub|}}}|#ffa007|#3CB886}}}}|#993838}};max-width:{{#if:{{{cleanup|}}}|{{#if:{{{stub|}}}|9|6}}|{{#if:{{{stub|}}}|6|3}}}}0%;">
| | | 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>
| |
| {{#if: {{{cleanup|}}}|
| |
| <td style="width:{{#if:{{{stub|}}}|6|8}}%;">[[File:Cleanup.svg|60px]]</td>
| |
| <td style="width:{{#if:{{{stub|}}}|27|42}}%;padding-left:0;padding-right:0.5em;border-right: 1px solid #303436;"><div style="font-size:1.2em;">'''Cleanup Required'''</div><span style="font-size:89%;">This article requires '''cleanup''' to meet this wiki's [[Official Barotrauma Wiki:Guidelines|quality standards]].{{#if:{{{cleanupnote|}}}|<br>NOTE: {{{cleanupnote}}}|}}</span></td>
| |
| |}}
| |
| {{#if: {{{stub|}}}|
| |
| <td style="width:{{#if:{{{cleanup|}}}|6|8}}%;">[[File:Icon-stub.png|60px]]</td>
| |
| <td style="width:{{#if:{{{cleanup|}}}|27|42}}%;padding-left:0;padding-right:0.5em;border-right: 1px solid #303436;"><div style="font-size:1.2em;">'''Stub'''</div><span style="font-size:89%;">This article is a '''[[:Category:Stubs|stub]].''' Help the {{SITENAME}} by [{{fullurl:{{FULLPAGENAME}}|action=edit}} expanding it].{{#if:{{{stubnote|}}}|<br>NOTE: {{{stubnote}}}|}}</span></td>
| |
| |}}
| |
| <td style="width:{{#if:{{{cleanup|}}}|{{#if:{{{stub|}}}|7|8}}|{{#if:{{{stub|}}}|8|10}}}}%;">[[File:Version Checkmark{{Space}}{{#ifeq:{{#var:match}}|true|True|False}}.png|60px]]</td>
| |
| <td style="width:{{#if:{{{cleanup|}}}|{{#if:{{{stub|}}}|27|42}}|{{#if:{{{stub|}}}|42|90}}}}%;padding-left:0;padding-right:0;"><div style="font-size:1.2em; border-bottom: 1px solid #303436;">'''{{#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
| |
| -->|Last updated for {{#if:{{{1|}}}|version '''[[Version history/Alpha#{{{1}}}{{!}}v{{{1}}}]]'''|'''an unknown version'''}}<br>}}<!--
| |
|
| |
|
| -->The current game version is '''[[Version history/Alpha#{{Current_version}}{{!}}v{{Current_version}}]]'''
| | | where = Items.type = "weapon" AND Items.ammocount > 0 |
| {{#if:{{{2|}}}|<br>NOTE: {{{2}}}|}}
| | | format = template |
| </span></td>
| | | template = Sandbox/row |
| </tr>
| | | named args = yes |
| </table></indicator>{{#ifeq:{{NAMESPACE}}|Template||{{#ifeq:{{#var:match}}|true||[[Category:Potentially Outdated]]}}{{#if:{{{stub|}}}|{{#if:{{{cleanup|}}}|{{clr}}[[Category:Stubs]][[Category:Cleanup]][[Category:Problem articles]]|[[Category:Stubs]][[Category:Problem articles]]}}|{{#if:{{{cleanup|}}}|[[Category:Cleanup]][[Category:Problem articles]]|}}}}}}</includeonly>
| | }} |
| | |} |