Template:Firearm: Difference between revisions

From The Cataclysm: Dark Days Ahead Wiki
Jump to navigation Jump to search
mNo edit summary
(added min strength field, and some documentation.)
Line 37: Line 37:


|label9=[[Dispersion|Dispersion]]
|label9=[[Dispersion|Dispersion]]
|data9=<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|+}}{{{dispersion|0}}}</span>
|data9=<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>


|label10=[[Dispersion|Sight Dispersion]]
|label10=[[Dispersion|Sight Dispersion]]
Line 60: Line 60:
|data16={{{reloadtime|}}} {{#if: {{{reloadtime|}}}|turns}}
|data16={{{reloadtime|}}} {{#if: {{{reloadtime|}}}|turns}}


|header17=Other
|label17=[[Skills#Archery|Minimum Strength]]
|data17={{{min_strength|}}} {{#if: {{{min_strength|}}}|strength}}


|label17=Price
|header18=Other
|data17={{#expr:{{{price|0}}}/100}} $


|label18=Flags
|label18=Price
|data18={{#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>|}}
|data18={{#expr:{{{price|0}}}/100}} $


|label19=Ammo Effects
|label19=Flags
|data19={{#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={{#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>|}}


|header20=As a Melee Weapon
|label20=Ammo Effects
|data20={{#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>|}}


|label20=Bash Dmg
|header21=As a Melee Weapon
|data20=<span style="color:{{#ifexpr: {{{bash|0}}} > 0 |green|{{#ifexpr: {{{bash|0}}} < 0 |darkred|lightgray}}}}">{{{bash|0}}}</span>


|label21=Cut Dmg
|label21=Bash Dmg
|data21=<span style="color:{{#ifexpr: {{{cut|0}}} > 0 |green|{{#ifexpr: {{{cut|0}}} < 0 |darkred|lightgray}}}}">{{{cut|0}}}</span>
|data21=<span style="color:{{#ifexpr: {{{bash|0}}} > 0 |green|{{#ifexpr: {{{bash|0}}} < 0 |darkred|lightgray}}}}">{{{bash|0}}}</span>


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


}}
}}
Line 90: Line 93:


<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>

Revision as of 20:06, 31 March 2019

/ Firearm
General
Materials unknown
Volume 0 liters
Weight 0 lbs or 0 g
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 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.