Template:KF2WeaponInfo: Difference between revisions

From Tripwire Interactive Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
| colspan="2" style="padding: 5px 10px;" | <small>''[[Killing Floor 2]] item''</small>
| colspan="2" style="padding: 5px 10px;" | <small>''[[Killing Floor 2]] item''</small>
|- style="background: #202224; border-top: #bd0000 solid 5px; color: #ffffff; text-align: center;"
|- style="background: #202224; border-top: #bd0000 solid 5px; color: #ffffff; text-align: center;"
| colspan="2" style="height: 30px; position: relative;" | '''{{{Name}}}'''<div style="position: absolute; top: 5px; left: 5px;">[[File:{{{PerkImage}}}|20px]]</div>
| colspan="2" style="height: 30px; position: relative;" | '''{{{Name}}}'''<div style="position: absolute; top: 5px; left: 5px;">[[File:{{{PerkImage}}}|20px|link=]]</div>
|- style="text-align: center;"
|- style="text-align: center;"
| colspan="2" style="padding: 10px;" | [[File:{{{WeaponImage}}}|300px]]
| colspan="2" style="padding: 10px;" | [[File:{{{WeaponImage}}}|300px]]
|- {{#if: {{{Damage}}} | style="height: 20px" | style="display: none;"}}
|- {{#if: {{{Damage|}}} | style="height: 20px" | style="display: none;"}}
| style="padding-left: 10px;" | '''Damage'''
| style="padding-left: 10px; width: 125px;" | '''Damage'''
| style="padding-right: 10px; text-align: right;" | <div style="background: #202224; border: #a6a7a9 solid 1px; box-shadow: inset 0 0 0 1px #000000; float: left; height: 12px; margin-top: 1px; width: 102px;"><div style="background: #ffffff; height: 10px; position: relative; top: 1px; left: 1px; width: {{#expr: (({{#ifeq: {{#expr: {{{Damage}}} / 820 <= 1}} | 1 | {{#expr: {{{Damage}}} / 820}} | 1 }}) ^ 0.5) * 100 }}px"></div></div> {{#expr: trunc {{{Damage}}}}}
| style="padding-right: 10px; text-align: right;" | <div style="background: #202224; border: #a6a7a9 solid 1px; box-shadow: inset 0 0 0 1px #000000; float: left; height: 12px; margin-top: 1px; width: 102px;"><div style="background: #ffffff; height: 10px; position: relative; top: 1px; left: 1px; width: {{#expr: (({{#ifeq: {{#expr: {{{Damage}}} / 820 <= 1}} | 1 | {{#expr: {{{Damage}}} / 820}} | 1 }}) ^ 0.5) * 100 }}px"></div></div> {{#expr: trunc {{{Damage}}}}}
|- {{#if: {{{FireRate}}} | style="height: 20px" | style="display: none;"}}
|- {{#if: {{{FireRate|}}} | style="height: 20px" | style="display: none;"}}
| style="padding-left: 10px;" | '''Fire Rate'''
| style="padding-left: 10px; width: 125px;" | '''Fire Rate'''
| style="padding-right: 10px; text-align: right;" | <div style="background: #202224; border: #a6a7a9 solid 1px; box-shadow: inset 0 0 0 1px #000000; float: left; height: 12px; margin-top: 1px; width: 102px;"><div style="background: #ffffff; height: 10px; position: relative; top: 1px; left: 1px; width: {{#expr: ({{#ifeq: {{#expr: {{{FireRate}}} / 800 <= 1}} | 1 | {{#expr: {{{FireRate}}} / 800}} | 1 }}) * 100 }}px"></div></div> {{#expr: trunc {{{FireRate}}}}}
| style="padding-right: 10px; text-align: right;" | <div style="background: #202224; border: #a6a7a9 solid 1px; box-shadow: inset 0 0 0 1px #000000; float: left; height: 12px; margin-top: 1px; width: 102px;"><div style="background: #ffffff; height: 10px; position: relative; top: 1px; left: 1px; width: {{#expr: ({{#ifeq: {{#expr: {{{FireRate}}} / 800 <= 1}} | 1 | {{#expr: {{{FireRate}}} / 800}} | 1 }}) * 100 }}px"></div></div> {{#expr: trunc {{{FireRate}}}}}
|- {{#if: {{{Accuracy}}} | style="height: 20px" | style="display: none;"}}
|- {{#if: {{{Accuracy|}}} | style="height: 20px" | style="display: none;"}}
| style="padding-left: 10px;" | '''Accuracy'''
| style="padding-left: 10px; width: 125px;" | '''Accuracy'''
| style="padding-right: 10px; text-align: right;" | <div style="background: #202224; border: #a6a7a9 solid 1px; box-shadow: inset 0 0 0 1px #000000; float: left; height: 12px; margin-top: 1px; width: 102px;"><div style="background: #ffffff; height: 10px; position: relative; top: 1px; left: 1px; width: {{#expr: (({{#ifeq: {{#expr: {{{Accuracy}}} / 100 <= 1}} | 1 | {{#expr: {{{Accuracy}}} / 100}} | 1 }}) ^ 0.5) * 100 }}px"></div></div> {{#expr: trunc {{{Accuracy}}}}}
| style="padding-right: 10px; text-align: right;" | <div style="background: #202224; border: #a6a7a9 solid 1px; box-shadow: inset 0 0 0 1px #000000; float: left; height: 12px; margin-top: 1px; width: 102px;"><div style="background: #ffffff; height: 10px; position: relative; top: 1px; left: 1px; width: {{#expr: (({{#ifeq: {{#expr: {{{Accuracy}}} / 100 <= 1}} | 1 | {{#expr: {{{Accuracy}}} / 100}} | 1 }}) ^ 0.5) * 100 }}px"></div></div> {{#expr: trunc {{{Accuracy}}}}}
|- {{#if: {{{Penetration}}} | style="height: 20px" | style="display: none;"}}
|- {{#if: {{{Penetration|}}} | style="height: 20px" | style="display: none;"}}
| style="padding-left: 10px;" | '''Penetration'''
| style="padding-left: 10px; width: 125px;" | '''Penetration'''
| style="padding-right: 10px; text-align: right;" | <div style="background: #202224; border: #a6a7a9 solid 1px; box-shadow: inset 0 0 0 1px #000000; float: left; height: 12px; margin-top: 1px; width: 102px;"><div style="background: #ffffff; height: 10px; position: relative; top: 1px; left: 1px; width: {{#expr: ({{#ifeq: {{#expr: {{{Penetration}}} / 4 <= 1}} | 1 | {{#expr: {{{Penetration}}} / 4}} | 1 }}) * 100 }}px"></div></div> {{#expr: trunc {{{Penetration}}}}}
| style="padding-right: 10px; text-align: right;" | <div style="background: #202224; border: #a6a7a9 solid 1px; box-shadow: inset 0 0 0 1px #000000; float: left; height: 12px; margin-top: 1px; width: 102px;"><div style="background: #ffffff; height: 10px; position: relative; top: 1px; left: 1px; width: {{#expr: ({{#ifeq: {{#expr: {{{Penetration}}} / 4 <= 1}} | 1 | {{#expr: {{{Penetration}}} / 4}} | 1 }}) * 100 }}px"></div></div> {{#expr: trunc {{{Penetration}}}}}
|- {{#if: {{{MagazineSize}}} | style="height: 20px" | style="display: none;"}}
|- {{#if: {{{MagazineSize|}}} | style="height: 20px" | style="display: none;"}}
| style="padding-left: 10px;" | '''Magazine Size'''
| style="padding-left: 10px; width: 125px;" | '''Magazine Size'''
| style="padding-right: 10px; text-align: right;" | {{{MagazineSize}}}
| style="padding-right: 10px; text-align: right;" | {{{MagazineSize}}} {{#ifexpr: not 0 || [[File:KF2_Magazine_Gray.png|baseline|12px|link=]]}}
|- {{#if: {{{AmmoCapacity}}} | style="height: 20px" | style="display: none;"}}
|- {{#if: {{{AmmoCapacity|}}} | style="height: 20px" | style="display: none;"}}
| style="padding-left: 10px;" | '''Ammo Capacity'''
| style="padding-left: 10px; width: 125px;" | '''Ammo Capacity'''
| style="padding-right: 10px; text-align: right;" | {{{AmmoCapacity}}}
| style="padding-right: 10px; text-align: right;" | {{{AmmoCapacity}}} {{#ifexpr: not 0 || [[File:KF2_Ammo_Gray.png|baseline|12px|link=]]}}
|- {{#ifexpr: {{#if: {{{Damage|}}} | 1 | 0}} or {{#if: {{{FireRate|}}} | 1 | 0}} or {{#if: {{{Accuracy|}}} | 1 | 0}} or {{#if: {{{Penetration|}}} | 1 | 0}} or {{#if: {{{MagazineSize|}}} | 1 | 0}} or {{#if: {{{AmmoCapacity|}}} | 1 | 0}} || style="display: none;"}}
| colspan="2" style="height: 10px;" |
|- {{#if: {{{Description|}}} || style="display: none;"}}
|- {{#if: {{{Description|}}} || style="display: none;"}}
| colspan="2" style="padding: 0 10px" | {{{Description}}}
| colspan="2" style="padding: 0 10px" | {{{Description}}}
|-  
|- {{#if: {{{Description|}}} || style="display: none;"}}
| colspan="2" style="height: 10px;" |  
| colspan="2" style="height: 10px;" |  
|- style="background: #202224; border-top: #bd0000 solid 5px; color: #ffffff; margin-top: 10px; text-align: center;"
|- {{#ifexpr: {{#if: {{{Perk|}}} | 1 | 0}} or {{#if: {{{Pricing|}}} | 1 | 0}} or {{#if: {{{Weight|}}} | 1 | 0}} | style="background: #202224; border-top: #bd0000 solid 5px; color: #ffffff; margin-top: 10px; text-align: center;" | style="display: none;"}}
| colspan="2" style="height: 30px;" | '''General Information'''
| colspan="2" style="height: 30px;" | '''General Information'''
|-  
|- {{#ifexpr: {{#if: {{{Perk|}}} | 1 | 0}} or {{#if: {{{Pricing|}}} | 1 | 0}} or {{#if: {{{Weight|}}} | 1 | 0}} || style="display: none;"}}
| colspan="2" style="height: 10px;" |  
| colspan="2" style="height: 10px;" |  
|- {{#if: {{{Perk}}} | style="height: 20px" | style="display: none;"}}
|- {{#if: {{{Perk|}}} | style="height: 20px" | style="display: none;"}}
| style="padding-left: 10px;" | '''Perk'''
| style="padding-left: 10px; width: 125px;" | '''Perk'''
| style="padding-right: 10px; text-align: right;" | [[{{{Perk}}}]]
| style="padding-right: 10px; text-align: right;" | [[{{{Perk}}}]]
|- {{#if: {{{Pricing}}} | style="height: 20px" | style="display: none;"}}
|- {{#if: {{{Pricing|}}} | style="height: 20px" | style="display: none;"}}
| style="padding-left: 10px;" | '''Pricing'''
| style="padding-left: 10px; width: 125px;" | '''Pricing'''
| style="padding-right: 10px; text-align: right;" | [[File:KF2_Dosh_Gray.png|baseline|12px]] {{{Pricing}}}
| style="padding-right: 10px; text-align: right;" | [[File:KF2_Dosh_Gray.png|baseline|12px|link=]] {{{Pricing}}}
|- {{#if: {{{Weight}}} | style="height: 20px" | style="display: none;"}}
|- {{#if: {{{Weight|}}} | style="height: 20px" | style="display: none;"}}
| style="padding-left: 10px;" | '''Weight'''
| style="padding-left: 10px; width: 125px;" | '''Weight'''
| style="padding-right: 10px; text-align: right;" | [[File:KF2_Weight_Gray.png|baseline|12px]] {{{Weight}}}
| style="padding-right: 10px; text-align: right;" | [[File:KF2_Weight_Gray.png|baseline|12px|link=]] {{{Weight}}}
|-  
|- {{#ifexpr: {{#if: {{{Perk|}}} | 1 | 0}} or {{#if: {{{Pricing|}}} | 1 | 0}} or {{#if: {{{Weight|}}} | 1 | 0}} || style="display: none;"}}
| colspan="2" style="height: 10px;" |  
| colspan="2" style="height: 10px;" |  
|- style="background: #202224; border-top: #bd0000 solid 5px; color: #ffffff; margin-top: 10px; text-align: center;"
|- {{#ifexpr: {{#if: {{{AmmoCost|}}} | 1 | 0}} or 0 | style="background: #202224; border-top: #bd0000 solid 5px; color: #ffffff; margin-top: 10px; text-align: center;" | style="display: none;"}}
| colspan="2" style="height: 30px;" | '''Weapon Information'''
| colspan="2" style="height: 30px;" | '''Weapon Information'''
|-  
|- {{#ifexpr: {{#if: {{{AmmoCost|}}} | 1 | 0}} or 0 || style="display: none;"}}
| colspan="2" style="height: 10px;" |  
| colspan="2" style="height: 10px;" |  
|- {{#if: {{{AmmoCost}}} | style="height: 20px" | style="display: none;"}}
|- {{#if: {{{AmmoCost|}}} | style="height: 20px" | style="display: none;"}}
| style="padding-left: 10px;" | '''Ammo cost'''
| style="padding-left: 10px; width: 125px;" | '''Ammo cost'''
| style="padding-right: 10px; text-align: right;" | [[File:KF2_Dosh_Gray.png|baseline|12px]] {{{AmmoCost}}}
| style="padding-right: 10px; text-align: right;" | [[File:KF2_Dosh_Gray.png|baseline|12px|link=]] {{{AmmoCost}}}
|-  
|- {{#ifexpr: {{#if: {{{AmmoCost|}}} | 1 | 0}} or 0 || style="display: none;"}}
| colspan="2" style="height: 10px;" |  
| colspan="2" style="height: 10px;" |  
|}</includeonly>
|}</includeonly>
<noinclude>{{KF2WeaponInfo
<noinclude>{{KF2WeaponInfo
|Name=SA80 L85A2 Bullpup
|Name=SA80 L85A2 Bullpup
|Perk=Commando (Killing Floor 2){{!}}Commando
|PerkImage=KF2_Perk_Commando_White.png
|PerkImage=KF2CMDO.png
|WeaponImage=KF2SA80_L85A2_Bullpup.png
|WeaponImage=KF2SA80_L85A2_Bullpup.png
|Damage=25.000000
|Damage=25.000000
Line 65: Line 66:
|AmmoCapacity=300
|AmmoCapacity=300
|Description=• Choice of full-auto and semi-auto fire modes.<br />• Alt-fire to toggle between fire modes.<br />• The SA80 was the British Army's standard weapon before the Army was, well, eaten.
|Description=• Choice of full-auto and semi-auto fire modes.<br />• Alt-fire to toggle between fire modes.<br />• The SA80 was the British Army's standard weapon before the Army was, well, eaten.
|
|Perk=Commando (Killing Floor 2){{!}}Commando
|Pricing=650
|Pricing=650
|Weight=6
|Weight=6
|
|AmmoCost=20
|AmmoCost=20
}}
}}
Line 73: Line 77:
<pre>{{KF2WeaponInfo
<pre>{{KF2WeaponInfo
|Name=SA80 L85A2 Bullpup
|Name=SA80 L85A2 Bullpup
|Perk=Commando (Killing Floor 2){{!}}Commando
|PerkImage=KF2_Perk_Commando_White.png
|PerkImage=KF2CMDO.png
|WeaponImage=KF2SA80_L85A2_Bullpup.png
|WeaponImage=KF2SA80_L85A2_Bullpup.png
|Damage=25.000000
|Damage=25.000000
Line 83: Line 86:
|AmmoCapacity=300
|AmmoCapacity=300
|Description=• Choice of full-auto and semi-auto fire modes.<br />• Alt-fire to toggle between fire modes.<br />• The SA80 was the British Army's standard weapon before the Army was, well, eaten.
|Description=• Choice of full-auto and semi-auto fire modes.<br />• Alt-fire to toggle between fire modes.<br />• The SA80 was the British Army's standard weapon before the Army was, well, eaten.
|
|Perk=Commando (Killing Floor 2){{!}}Commando
|Pricing=650
|Pricing=650
|Weight=6
|Weight=6
|
|AmmoCost=20
|AmmoCost=20
}}</pre>
}}</pre>
{{KF2NavBox}}
{{KF2NavBox}}
</noinclude>
</noinclude>

Revision as of 10:49, 22 July 2016


Killing Floor 2 item
SA80 L85A2 Bullpup
Damage
25
Fire Rate
660
Accuracy
68
Penetration
0
Magazine Size 30
Ammo Capacity 300
• Choice of full-auto and semi-auto fire modes.
• Alt-fire to toggle between fire modes.
• The SA80 was the British Army's standard weapon before the Army was, well, eaten.
General Information
Perk Commando
Pricing 650
Weight 6
Weapon Information
Ammo cost 20


Syntax

{{KF2WeaponInfo
|Name=SA80 L85A2 Bullpup
|PerkImage=KF2_Perk_Commando_White.png
|WeaponImage=KF2SA80_L85A2_Bullpup.png
|Damage=25.000000
|FireRate=660.066040
|Accuracy=68.000000
|Penetration=0.000000
|MagazineSize=30
|AmmoCapacity=300
|Description=• Choice of full-auto and semi-auto fire modes.<br />• Alt-fire to toggle between fire modes.<br />• The SA80 was the British Army's standard weapon before the Army was, well, eaten.
|
|Perk=Commando (Killing Floor 2){{!}}Commando
|Pricing=650
|Weight=6
|
|AmmoCost=20
}}