Template:Ammo: Difference between revisions

From The Cataclysm: Dark Days Ahead Wiki
Jump to navigation Jump to search
No edit summary
m (fusion blaster ammo gives an error, I think this should fix it.)
 
(28 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{|- class="va-table" cellpadding="2" style="margin-left:20px; margin-bottom:15px; float:right; border-style:solid; border-color:black; border-width:1px; background-color:lightgray; width:200px"
{{Infobox
{{Infobox/Item
|bodystyle = width: 220px; background:#E6E6E6; color:#000000; border-color: #CFCFCF;
|name={{{name|{{PAGENAME}}}}}
|titlestyle = text-align:center;
  |glyph={{{glyph|=}}}
|labelstyle = color:#000000; background:#CFCFCF; padding-left:1em; padding-right:1em; text-align:right; font-weight: bold; white-space:nowrap;
|color={{{color|c_green}}}
|datastyle = background-color:#FFFFff; width: 70%;
|volume={{#expr: {{{volume|0}}}}}
|headerstyle = color:#000000;
|weight={{#expr: {{{weight|0}}}}}
 
|rarity={{{rarity|0}}}
|title={{igs|{{{glyph|/}}}|{{{color|c_ltred}}}}} {{{name|{{PAGENAME}}}}}<br/>{{#if:{{{id|}}}|{{Infobox/Itembrowser|id={{{id|}}}|name={{{name|}}} }} }}
|price={{#expr: {{{price|0}}}}}
   
|mat1={{{mat1|PAPER}}}
|header1=General
|mat2={{{mat2|MNULL}}}
 
|label2=[[Materials]]
|data2={{lc:{{mtn|{{{mat1|null}}}}}}} {{#if: {{{mat2|}}} | {{#switch:{{lc:{{{mat2}}}}}|mnull=|null=|#default=/ {{lc:{{mtn|{{{mat2}}}}}}}}} }}
 
|label3=[[Volume]]
|data3={{Volume|{{{volume|0}}}}}
 
|label4=[[Weight]]
|data4={{#ifexpr:({{{weight|0}}} < 1000) | {{#number_format:{{#expr:{{{weight|0}}}}}|2}} gr|
{{#number_format:{{#expr:{{{weight|0}}}/1000}}|2}} kg}} (unit)
<br />
{{#ifexpr:({{{weight|0}}}*{{{count|1}}} < 1000) | {{#number_format:{{#expr:{{{weight|0}}}*{{{count|1}}}}}|2}} gr|
{{#number_format:{{#expr:{{{weight|0}}}*{{{count|1}}}/1000}}|2}} kg}} (stack)
 
|header5=As Ammo
 
|label5=<abbr title="Default damage done to unarmored targets.">Damage</abbr>
|data5=<span style="color:{{#ifexpr: {{{damage|0}}} > 0 |green|{{#ifexpr: {{{damage|0}}} < 0 |darkred|lightgray}}}}">{{{damage|0}}}</span>
 
|label6=<abbr title="Ability to penetrate armored targets. The higher this value is, the better.">Armor Piercing</abbr>
|data6=<span style="color:{{#ifexpr: {{{ap|0}}} > 0 |green|{{#ifexpr: {{{ap|0}}} < 0 |darkred|lightgray}}}}">{{{ap|0}}}</span>
 
|label7=<abbr title="Maximum distance (in tiles) this round can travel when fired. The weapon used and any applied modifications might affect the final value of this parameter.">Range</abbr>
|data7=<span style="color:{{#ifexpr: {{{range|0}}} > 0 |green|{{#ifexpr: {{{range|0}}} < 0 |darkred|lightgray}}}}">{{{range|0}}}</span>
 
|label8=[[Dispersion]]
|data8={{#if:{{{dispersion|}}}|<span style="color:{{#ifexpr: {{{dispersion|0}}} > 0 |darkred|{{#ifexpr: {{{dispersion|0}}} < 0|green|lightgray}}}}">{{{dispersion|}}}</span>|{{#if:{{{accuracy|}}}|<span style="color:{{#ifexpr: {{{accuracy|0}}} > 0 |darkred|{{#ifexpr: {{{accuracy|0}}} < 0|green|lightgray}}}}">{{{accuracy|}}}</span>|}}}}
 
|label9=[[Recoil]]
|data9={{#if: {{{recoil|}}}|<span style="color:{{#ifexpr: {{{recoil|0}}} > 0 |darkred|{{#ifexpr: {{{recoil|0}}} < 0 |green|lightgray}}}}">{{{recoil|}}}</span>|}}
 
|header10=Other
 
|label10=Price
|data10=$ {{#expr:{{{price|0}}} / ({{#if: {{{stack|}}}|{{{stack|}}}/{{{count|1}}} |1}}) / 100}}
 
|label11=Stack (start/max)
|data11={{{count|0}}} / {{#if: {{{stack|}}}|{{{stack|}}} |unlimited }}
 
|label12=Casing
|data12={{casingtoname|{{{casing|}}}}}
 
|label13=Flags
|data13={{#if:{{{flag1|}}}|<abbr title="{{ammoflags|{{{flag1}}}}}">{{uc:{{{flag1}}}}}</abbr>|}}{{#if:{{{flag2|}}}|, <abbr title="{{ammoflags|{{{flag2}}}}}">{{uc:{{{flag2}}}}}</abbr>|}}{{#if:{{{flag3|}}}|, <abbr title="{{ammoflags|{{{flag3}}}}}">{{uc:{{{flag3}}}}}</abbr>|}}{{#if:{{{flag4|}}}|, <abbr title="{{ammoflags|{{{flag4}}}}}">{{uc:{{{flag4}}}}}</abbr>|}}{{#if:{{{flag5|}}}|, <abbr title="{{ammoflags|{{{flag5}}}}}">{{uc:{{{flag5}}}}}</abbr>|}}{{#if:{{{flag6|}}}|, <abbr title="{{ammoflags|{{{flag6}}}}}">{{uc:{{{flag6}}}}}</abbr>|}}
 
|label14=Effects
|data14={{#if:{{{effect1|}}}|<abbr title="{{ammoeffects|{{{effect1}}}}}">{{uc:{{{effect1}}}}}</abbr>|}}{{#if:{{{effect2|}}}|, <abbr title="{{ammoeffects|{{{effect2}}}}}">{{uc:{{{effect2}}}}}</abbr>|}}{{#if:{{{effect3|}}}|, <abbr title="{{ammoeffects|{{{effect3}}}}}">{{uc:{{{effect3}}}}}</abbr>|}}{{#if:{{{effect4|}}}|, <abbr title="{{ammoeffects|{{{effect4}}}}}">{{uc:{{{effect4}}}}}</abbr>|}}{{#if:{{{effect5|}}}|, <abbr title="{{ammoeffects|{{{effect5}}}}}">{{uc:{{{effect5}}}}}</abbr>|}}{{#if:{{{effect6|}}}|, <abbr title="{{ammoeffects|{{{effect6}}}}}">{{uc:{{{effect6}}}}}</abbr>|}}
 
|header15=As a Melee Weapon
 
|label15=Bash Dmg
|data15=<span style="color:{{#ifexpr: {{{bash|0}}} > 0 |green|{{#ifexpr: {{{bash|0}}} < 0 |darkred|lightgray}}}}">{{{bash|0}}}</span>
 
|label16=Cut Dmg
|data16=<span style="color:{{#ifexpr: {{{cut|0}}} > 0 |green|{{#ifexpr: {{{cut|0}}} < 0 |darkred|lightgray}}}}">{{{cut|0}}}</span>
 
|label17=To Hit
|data17=<span style="color:{{#ifexpr: {{{tohit|0}}} > 0 |green|{{#ifexpr: {{{tohit|0}}} < 0 |darkred|lightgray}}}}">{{{tohit|<nowiki>+0</nowiki>}}}</span>
 
}}
}}
|- style=""
__NOTOC__
|
 
{{Infobox/Melee weapon
<div style="font-family:Georgia, serif; background: #EBEBEB; color: dimgray; padding:0em; margin-left: 2em; margin-right: 20em; text-align:justify;">{{quote|{{{description|Some ammunition}}}}}</div>
|bash={{{bash|0}}}
 
|cut={{{cut|0}}}
<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>
|tohit={{{tohit|<nowiki>+0</nowiki>}}}
 
|flag={{{flags}}}
}}
|- style=""
|
{{Infobox/Ammo
|damage={{{damage|0}}}
|ap={{{ap|0}}}
|range={{{range|0}}}
|accuracy={{{accuracy|0}}}
|recoil={{{recoil|0}}}
|stack={{{stack|0}}}
}}
|}
<noinclude>
<noinclude>
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 11:19, 14 May 2020

/ Ammo
General
Materials unknown
Volume 0 liters
Weight 0.00 gr (unit)


0.00 gr (stack)

As Ammo
Damage 0
Armor Piercing 0
Range 0
Other
Price $ 0
Stack (start/max) 0 / unlimited
As a Melee Weapon
Bash Dmg 0
Cut Dmg 0
To Hit +0


 Some ammunition