Template:Tool: Difference between revisions

From The Cataclysm: Dark Days Ahead Wiki
Jump to navigation Jump to search
mNo edit summary
(Leading spaces are removed for #if)
 
(17 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; white-space:nowrap;
|labelstyle = color:#000000; background:#CFCFCF; padding-left:1em; padding-right:1em; text-align:right; font-weight: bold; white-space:nowrap;
Line 6: Line 6:
|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)/100) < 1 | {{{weight|0}}} gr | {{#expr:({{{weight|0}}}*0.001)/100}} kg }}
|data4={{Weight|{{{weight|0}}}}}


|header5=As a Tool


|header4=As a Tool
|label5=Function
|data5={{{func|}}}


|label4=Function
|label6=Ammo (start/max)
|data4={{{func|}}}
|data6={{#if:{{{maxammo|}}}|({{{startammo|0}}} / {{{maxammo|0}}})|}}


|label5=Ammo (start/max)
|label7=Ammo Type
|data5=({{{startammo|0}}} / {{{maxammo|0}}})
|data7={{ATtoname1|{{{ammotype|NULL}}}}}


|label6=Ammo Type
|label8=Duration
|data6={{ATtoname1|{{{ammotype|NULL}}}}}
|data8={{{drainturns|}}} {{#if:{{{drainturns|}}}|turns|}}


|label7=Duration
|label9={{#if:{{{charges_per_use|}}}|Charges per use|}}
|data7={{{drainturns|0}}} turns
|data9={{#if:{{{charges_per_use|}}}|{{{charges_per_use|0}}}|}}


|header10=Other


|header8=Other
|label10=Price
|data10={{#expr:{{{price|0}}}/100}} $


|label8=Price
|label11=Use Action
|data8={{#expr:{{{price|0}}}/10}} $
|data11={{{use_action|}}}


|label9=Flags
|label12=Flags
|data9={{#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>|}}
|data12={{#if:{{{flag1|}}}|<abbr title="{{toolflags|{{{flag1}}}}}">{{uc:{{{flag1}}}}}</abbr>|}}{{#if:{{{flag2|}}}|, <abbr title="{{toolflags|{{{flag2}}}}}">{{uc:{{{flag2}}}}}</abbr>|}}{{#if:{{{flag3|}}}|, <abbr title="{{toolflags|{{{flag3}}}}}">{{uc:{{{flag3}}}}}</abbr>|}}{{#if:{{{flag4|}}}|, <abbr title="{{toolflags|{{{flag4}}}}}">{{uc:{{{flag4}}}}}</abbr>|}}{{#if:{{{flag5|}}}|, <abbr title="{{toolflags|{{{flag5}}}}}">{{uc:{{{flag5}}}}}</abbr>|}}{{#if:{{{flag6|}}}|, <abbr title="{{toolflags|{{{flag6}}}}}">{{uc:{{{flag6}}}}}</abbr>|}}


|header10=As a Melee Weapon
|header13=As a Melee Weapon


|label10=Bash Dmg
|label13=Bash Dmg
|data10={{{bash|0}}}
|data13={{{bash|0}}}


|label11=Cut Dmg
|label14=Cut Dmg
|data11={{{cut|0}}}
|data14={{{cut|0}}}


|label12=To Hit
|label15=To Hit
|data12={{{tohit|<nowiki>+0</nowiki>}}}
|data15={{{tohit|<nowiki>+0</nowiki>}}}
 
|label16=Techniques
|data16={{#if:{{{technique1|}}}|<abbr title="{{techniquetodescr|{{{technique1}}}}}">{{uc:{{{technique1}}}}}</abbr>|}}{{#if:{{{technique2|}}}|, <abbr title="{{techniquetodescr|{{{technique2}}}}}">{{uc:{{{technique2}}}}}</abbr>|}}{{#if:{{{technique3|}}}|, <abbr title="{{techniquetodescr|{{{technique3}}}}}">{{uc:{{{technique3}}}}}</abbr>|}}{{#if:{{{technique4|}}}|, <abbr title="{{techniquetodescr|{{{technique4}}}}}">{{uc:{{{technique4}}}}}</abbr>|}}{{#if:{{{technique5|}}}|, <abbr title="{{techniquetodescr|{{{technique5}}}}}">{{uc:{{{technique5}}}}}</abbr>|}}{{#if:{{{technique6|}}}|, <abbr title="{{techniquetodescr|{{{technique6}}}}}">{{uc:{{{technique6}}}}}</abbr>|}}


}}
}}
__NOTOC__
__NOTOC__
{{quote|{{{description|A tool}}}}}
{{#if: {{{description_on|}}}|Inactive:<br />}}{{quote|{{{description|A tool.}}}}}{{#if: {{{description_on|}}}|Active:<br />}}{{#if: {{{description_on|}}}|{{quote|{{{description_on|}}}}} }}


{{#ifexist: crafting/{{PAGENAME}} | {{:crafting/{{PAGENAME}}}} }}


<noinclude>
<noinclude>
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 01:44, 28 April 2021

/ Tool
General
Materials unknown
Volume 0 liters
Weight 0 lbs or 0 g
As a Tool
Ammo Type none
Other
Price 0 $
As a Melee Weapon
Bash Dmg 0
Cut Dmg 0
To Hit +0
 A tool.