Template:Firearm: Difference between revisions

From The Cataclysm: Dark Days Ahead Wiki
Jump to navigation Jump to search
No edit summary
m (Added lenght field; some edit still needs to be done)
 
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Infobox
{{Infobox
|bodystyle = width: 190px; background:#E6E6E6; color:#000000; border-color: #CFCFCF;
|bodystyle = width: 220px; background:#E6E6E6; color:#000000; border-color: #CFCFCF;
|titlestyle = text-align:center;
|titlestyle = text-align:center;
|labelstyle = color:#000000; background:#CFCFCF; padding-left:1em; padding-right:1em; text-align:right; font-weight: bold;
|labelstyle = color:#000000; background:#CFCFCF; padding-left:1em; padding-right:1em; text-align:right; font-weight: bold; white-space: nowrap;
|datastyle = background-color:#FFFFff; width: 70%;
|datastyle = background-color:#FFFFff; width: 70%;
|headerstyle = color:#000000;
|headerstyle = color:#000000;


|title={{igs|{{{glyph|/}}}|{{{color|c_ltred}}}}} {{{name|{{PAGENAME}}}}}
|title={{igs|{{{glyph|/}}}|{{{color|c_ltred}}}}} {{{name|{{PAGENAME}}}}}<br/>{{#if:{{{id|}}}|{{Infobox/Itembrowser|id={{{id|}}}|name={{{name|}}} }} }}
   
   
|header1=General
|header1=General


|label1=[[Materials]]
|label2=[[Materials]]
|data1={{lc:{{mtn|{{{mat1|null}}}}}}} {{#if: {{{mat2|}}} | {{#switch:{{lc:{{{mat2}}}}}|mnull=|null=|#default=/ {{lc:{{mtn|{{{mat2}}}}}}}}} }}
|data2={{lc:{{mtn|{{{mat1|null}}}}}}} {{#if: {{{mat2|}}} | {{#switch:{{lc:{{{mat2}}}}}|mnull=|null=|#default=/ {{lc:{{mtn|{{{mat2}}}}}}}}} }}


|label2=[[Volume]]
|label3=[[Volume]]
|data2={{{volume|0}}}
|data3={{Volume|{{{volume|0}}}}}


|label3=[[Weight]]
|label4=[[Weight]]
|data3={{#ifexpr: ({{{weight|0}}}*0.001) < 1 | {{{weight|0}}} gr | {{#expr:{{{weight|0}}}*0.001}} kg }}
|data4={{Weight|{{{weight|0}}}}}


|label4=Durability
|label5=[[Lenght]]
|data4=<!--{{{durability|0}}}-->
|data5={{Lenght|{{{lenght|0}}}}}


|header6=As a Firearm


|header5=As a Firearm
|label6=Skill
|data6={{SKtoname1|{{{skill|}}}}}


|label5=[[Skill]]
|label7=<abbr title="Cutting damage bonus">Damage Bonus</abbr>
|data5={{SKtoname1|{{{skill|}}}}}
|data7=<span style="color:{{#ifexpr: {{{damage|0}}} > 0 |green|{{#ifexpr: {{{damage|0}}} < 0 |darkred|lightgray}}}}">{{#ifexpr:{{{damage|0}}}>0|+}}{{{damage|0}}}</span>


|label6=Damage
|label8=<abbr title="Armor piercing bonus">AP Bonus</abbr>
|data6=<span style="{{#ifexpr:{{{damage|0}}} = 0|color: lightgray;}}">{{{damage|0}}}</span>
|data8=<span style="color:{{#ifexpr: {{{pierce|0}}} > 0 |green|{{#ifexpr: {{{pierce|0}}} < 0 |darkred|lightgray}}}}">{{#ifexpr:{{{pierce|0}}}>0|+}}{{{pierce|0}}}</span>


|label7=Range
|label9=<abbr title="Bonus to the maximum distance (in tiles) the fired round can travel.">Range Bonus</abbr>
|data7=<span style="{{#ifexpr:{{{range|0}}} = 0|color: lightgray;}}">{{{range|0}}}</span>
|data9=<span style="color:{{#ifexpr: {{{range|0}}} > 0 |green|{{#ifexpr: {{{range|0}}} < 0 |darkred|lightgray}}}}">{{#ifexpr:{{{range|0}}}>0|+}}{{{range|0}}}</span>


|label8=Dispersion
|label10=[[Dispersion|Dispersion]]
|data8=<span style="{{#ifexpr:{{{dispersion|0}}} or {{{accuracy|0}}} = 0|color: lightgray;}}">{{{dispersion|}}}{{{accuracy|}}}</span>
|data10=<span style="color:{{#ifexpr: {{{dispersion|0}}} > 0 or {{{accuracy|0}}} > 0 |darkred|{{#ifexpr: {{{dispersion|0}}} < 0 or {{{accuracy|0}}} < 0|green|lightgray}}}}">{{#ifexpr:{{{dispersion|0}}}>0 or {{{accuracy|0}}}>0|+}}{{#if:{{{dispersion|}}}|{{{dispersion|0}}}|{{{accuracy|0}}}}}</span>


|label9=Recoil
|label11=[[Dispersion|Sight Dispersion]]
|data9=<span style="{{#ifexpr:{{{recoil|0}}} = 0|color: lightgray;}}">{{{recoil|0}}}</span>
|data11=<span style="color:{{#ifexpr: {{{sight_dispersion|0}}} > 0 |darkred|{{#ifexpr: {{{sight_dispersion|0}}} < 0 |green|lightgray}}}}">{{#ifexpr:{{{sight_dispersion|0}}} > 0 >0|+}}{{{sight_dispersion|0}}}</span>


|label10=[[Ammunition]]
|label12=[[Dispersion|Aim Speed]]
|data10={{ATtoname1|{{{ammotype|none}}}}}
|data12=<span style="color:{{#ifexpr: {{{aim_speed|0}}} > 0 |darkred|{{#ifexpr: {{{aim_speed|0}}} < 0 |green|lightgray}}}}">{{#ifexpr:{{{aim_speed|0}}} > 0 >0|+}}{{{aim_speed|0}}}</span>


|label11=Clip size
|label13=[[Recoil|Recoil Bonus]]
|data11={{{clip|1}}}
|data13=<span style="color:{{#ifexpr: {{{recoil|0}}} > 0 |darkred|{{#ifexpr: {{{recoil|0}}} < 0 |green|lightgray}}}}">{{#ifexpr:{{{recoil|0}}}>0|+}}{{{recoil|0}}}</span>


|label12=Burst
|label14=Ammunition
|data12={{#if: {{{burst|}}}|{{#ifexpr: {{{burst|}}}>0|{{{burst|}}} rounds}}}}
|data14={{ATtoname1|{{{ammotype|none}}}}}


|label13=Reload time
|label15=Clip size
|data13={{{reloadtime|}}} {{#if: {{{reloadtime|}}}|turns}}
|data15={{{clip|0}}} rounds


|label16=Burst
|data16={{#if: {{{burst|}}}|{{#ifexpr: {{{burst|}}}>0|{{{burst|}}} rounds}}}}


|header14=Other
|label17=Reload time
|data17={{{reloadtime|}}} {{#if: {{{reloadtime|}}}|turns}}


|label14=Price
|label18=[[Skills#Archery|Minimum Strength]]
|data14={{#expr:{{{price|0}}}/10}} $
|data18={{{min_strength|}}} {{#if: {{{min_strength|}}}|strength}}


|label15=Flags
|header19=Other
|data15={{#if:{{{flag1|}}}|<abbr title="{{firearmflags|{{{flag1}}}}}">{{uc:{{{flag1}}}}}</abbr>|}}{{#if:{{{flag2|}}}|, <abbr title="{{firearmflags|{{{flag2}}}}}">{{uc:{{{flag2}}}}}</abbr>|}}{{#if:{{{flag3|}}}|, <abbr title="{{firearmflags|{{{flag3}}}}}">{{uc:{{{flag3}}}}}</abbr>|}}{{#if:{{{flag4|}}}|, <abbr title="{{firearmflags|{{{flag4}}}}}">{{uc:{{{flag4}}}}}</abbr>|}}{{#if:{{{flag5|}}}|, <abbr title="{{firearmflags|{{{flag5}}}}}">{{uc:{{{flag5}}}}}</abbr>|}}{{#if:{{{flag6|}}}|, <abbr title="{{firearmflags|{{{flag6}}}}}">{{uc:{{{flag6}}}}}</abbr>|}}


|label16=Ammo Effects
|label19=Price
|data16={{#if:{{{ammo_effect1|}}}|<abbr title="{{ammoeffects|{{{ammo_effect1}}}}}">{{uc:{{{ammo_effect1}}}}}</abbr>|}}{{#if:{{{ammo_effect2|}}}|, <abbr title="{{ammoeffects|{{{ammo_effect2}}}}}">{{uc:{{{ammo_effect2}}}}}</abbr>|}}{{#if:{{{ammo_effect3|}}}|, <abbr title="{{ammoeffects|{{{ammo_effect3}}}}}">{{uc:{{{ammo_effect3}}}}}</abbr>|}}{{#if:{{{ammo_effect4|}}}|, <abbr title="{{ammoeffects|{{{ammo_effect4}}}}}">{{uc:{{{ammo_effect4}}}}}</abbr>|}}{{#if:{{{ammo_effect5|}}}|, <abbr title="{{ammoeffects|{{{ammo_effect5}}}}}">{{uc:{{{ammo_effect5}}}}}</abbr>|}}{{#if:{{{ammo_effect6|}}}|, <abbr title="{{ammoeffects|{{{ammo_effect6}}}}}">{{uc:{{{ammo_effect6}}}}}</abbr>|}}
|data19={{#expr:{{{price|0}}}/100}} $


|header17=As a Melee Weapon
|label20=Flags
|data20={{#if:{{{flag1|}}}|<abbr title="{{firearmflags|{{{flag1}}}}}">{{uc:{{{flag1}}}}}</abbr>|}}{{#if:{{{flag2|}}}|, <abbr title="{{firearmflags|{{{flag2}}}}}">{{uc:{{{flag2}}}}}</abbr>|}}{{#if:{{{flag3|}}}|, <abbr title="{{firearmflags|{{{flag3}}}}}">{{uc:{{{flag3}}}}}</abbr>|}}{{#if:{{{flag4|}}}|, <abbr title="{{firearmflags|{{{flag4}}}}}">{{uc:{{{flag4}}}}}</abbr>|}}{{#if:{{{flag5|}}}|, <abbr title="{{firearmflags|{{{flag5}}}}}">{{uc:{{{flag5}}}}}</abbr>|}}{{#if:{{{flag6|}}}|, <abbr title="{{firearmflags|{{{flag6}}}}}">{{uc:{{{flag6}}}}}</abbr>|}}


|label17=Bash Dmg
|label21=Ammo Effects
|data17=<span style="{{#ifexpr:{{{bash|0}}} = 0|color: lightgray;}}">{{{bash|0}}}</span>
|data21={{#if:{{{ammo_effect1|}}}|<abbr title="{{ammoeffects|{{{ammo_effect1}}}}}">{{uc:{{{ammo_effect1}}}}}</abbr>|}}{{#if:{{{ammo_effect2|}}}|, <abbr title="{{ammoeffects|{{{ammo_effect2}}}}}">{{uc:{{{ammo_effect2}}}}}</abbr>|}}{{#if:{{{ammo_effect3|}}}|, <abbr title="{{ammoeffects|{{{ammo_effect3}}}}}">{{uc:{{{ammo_effect3}}}}}</abbr>|}}{{#if:{{{ammo_effect4|}}}|, <abbr title="{{ammoeffects|{{{ammo_effect4}}}}}">{{uc:{{{ammo_effect4}}}}}</abbr>|}}{{#if:{{{ammo_effect5|}}}|, <abbr title="{{ammoeffects|{{{ammo_effect5}}}}}">{{uc:{{{ammo_effect5}}}}}</abbr>|}}{{#if:{{{ammo_effect6|}}}|, <abbr title="{{ammoeffects|{{{ammo_effect6}}}}}">{{uc:{{{ammo_effect6}}}}}</abbr>|}}


|label18=Cut Dmg
|header22=As a Melee Weapon
|data18=<span style="{{#ifexpr:{{{cut|0}}} = 0|color: lightgray;}}">{{{cut|0}}}</span>


|label19=To Hit
|label22=Bash Dmg
|data19=<span style="{{#ifexpr:{{{tohit|0}}} = 0|color: lightgray;}}">{{{tohit|<nowiki>+0</nowiki>}}}</span>
|data22=<span style="color:{{#ifexpr: {{{bash|0}}} > 0 |green|{{#ifexpr: {{{bash|0}}} < 0 |darkred|lightgray}}}}">{{{bash|0}}}</span>
 
|label23=Cut Dmg
|data23=<span style="color:{{#ifexpr: {{{cut|0}}} > 0 |green|{{#ifexpr: {{{cut|0}}} < 0 |darkred|lightgray}}}}">{{{cut|0}}}</span>
 
|label24=To Hit
|data24=<span style="color:{{#ifexpr: {{{tohit|0}}} > 0 |green|{{#ifexpr: {{{tohit|0}}} < 0 |darkred|lightgray}}}}">{{{tohit|<nowiki>+0</nowiki>}}}</span>


}}
}}
__NOTOC__
__NOTOC__
{{quote|{{{description|A weapon}}}}}


<div style="display: table; margin: 0 auto;">{{{image|}}}</div>
<div style="font-family:Georgia, serif; background: #EBEBEB; color: dimgray; padding:0em; margin-left: 2em; margin-right: 20em; text-align:justify;">{{quote|{{{description|A ranged weapon}}}}}</div>
 
<div style="display: table; margin: 0 auto; text-align:center;">{{#if: {{{image|}}}|<p style="font-family:Georgia, serif; color: gray; font-weight:bold">Visual reference</p>}}{{{image|}}}</div>


<noinclude>
<noinclude>
== Template Documentation ==
Documentation incomplete.
Possible arguments
* accuracy <integer> - '''Deprecated'''. Legacy field, should be removed after all firearms are updated to the most recent version. ({{inlineVer|0.D}} or later). If accuracy and dispersion are both set, only dispersion will be shown.
* dispersion <integer>
* min_strength <integer> - Optional - Minimum required strength, cannot fire if the strength is lower than this value. Only used for [[bows]].
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 23:09, 17 January 2022

/ Firearm
General
Materials unknown
Volume 0 liters
Weight 0 lbs or 0 g
Lenght 0 inches or 0 cm
As a Firearm
Damage Bonus 0
AP Bonus 0
Range Bonus 0
Dispersion 0
Sight Dispersion 0
Aim Speed 0
Recoil Bonus 0
Ammunition none
Clip size 0 rounds
Other
Price 0 $
As a Melee Weapon
Bash Dmg 0
Cut Dmg 0
To Hit +0


 A ranged weapon 


Template Documentation

Documentation incomplete.

Possible arguments

  • accuracy <integer> - Deprecated. Legacy field, should be removed after all firearms are updated to the most recent version. (0.D (Danny) or later). If accuracy and dispersion are both set, only dispersion will be shown.
  • dispersion <integer>
  • min_strength <integer> - Optional - Minimum required strength, cannot fire if the strength is lower than this value. Only used for bows.