Template:Food: Difference between revisions

From The Cataclysm: Dark Days Ahead Wiki
Jump to navigation Jump to search
(Created page with "{|- 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:light...")
 
(Make headers readable on DarkVector)
 
(13 intermediate revisions by 2 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: 190px; 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_ltcyan}}}
|datastyle = background-color:#FFFFff; width: 70%;
|volume={{{volume|2}}}
|headerstyle = color:#999999;
|weight={{{weight|1}}}
 
|rarity={{{rarity|0}}}
|title={{igs|{{{glyph|/}}}|{{{color|c_ltred}}}}} {{{name|{{PAGENAME}}}}}<br/>{{#if:{{{id|}}}|{{Infobox/Itembrowser|id={{{id|}}}|name={{{name|}}} }} }}
|price={{{price|0}}}
   
|mat1={{{mat1|liquid}}}
|header1=General
|mat2={{{mat2|MNULL}}}
 
|func={{{func|}}}
|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={{Weight|{{{weight|0}}}}}
 
|header5=As Food
 
|label5=Portions
|data5={{{charges|1}}}
 
|label6=Container
|data6={{{container|}}}
 
|label7=Fresh for
|data7={{{spoils|}}}{{#if:{{{spoils|}}}|hours|}}
 
|label8=Quench Bonus
|data8={{{quench|}}}
 
|label9=Nutrition Bonus
|data9={{{nutrition|}}}
 
|header10=As a Drug
 
|label10=Health Bonus
|data10={{{health|}}}
 
|label11=Stimulant Bonus
|data11={{{stim|}}}
 
|label12=Morale Bonus
|data12={{{fun|}}}
 
|label13=Add. Type
|data13={{{addictiontype|}}}
 
|label14=Addiction Bonus
|data14={{{addiction|}}}
 
|header15=Other
 
|label15=Price
|data15={{#expr:{{{price|0}}}/100}} $
 
|label16=Stack Size
|data16={{{stack_size|}}}
 
|label17=Use Action
|data17={{{use_action|}}}
 
|label18=Tool Needed
|data18={{{tool|}}}
 
|label19=Flags
|data19={{#if:{{{flag1|}}}|<abbr title="{{foodflags|{{{flag1}}}}}">{{uc:{{{flag1}}}}}</abbr>|}}{{#if:{{{flag2|}}}|, <abbr title="{{foodflags|{{{flag2}}}}}">{{uc:{{{flag2}}}}}</abbr>|}}{{#if:{{{flag3|}}}|, <abbr title="{{foodflags|{{{flag3}}}}}">{{uc:{{{flag3}}}}}</abbr>|}}{{#if:{{{flag4|}}}|, <abbr title="{{foodflags|{{{flag4}}}}}">{{uc:{{{flag4}}}}}</abbr>|}}{{#if:{{{flag5|}}}|, <abbr title="{{foodflags|{{{flag5}}}}}">{{uc:{{{flag5}}}}}</abbr>|}}{{#if:{{{flag6|}}}|, <abbr title="{{foodflags|{{{flag6}}}}}">{{uc:{{{flag6}}}}}</abbr>|}}
 
 
|header20=As a Melee Weapon
 
|label20=Bash Dmg
|data20={{{bash|0}}}
 
|label21=Cut Dmg
|data121={{{cut|0}}}
 
|label22=To Hit
|data22={{{tohit|<nowiki>+0</nowiki>}}}
 
}}
}}
|- style=""
__NOTOC__
|
{{quote|{{{description|A food item}}}}}
{{Infobox/Food
 
|charges={{{charges|1}}}
|container={{{container|}}}
|quench={{{quench|0}}}
|nutrition={{{nutrition|0}}}
|spoils={{{spoils|0}}}
|stim={{{stim|0}}}
|health={{{health|0}}}
|addiction={{{addiction|0}}}
|addictiontype={{{addictiontype|}}}
|fun={{{fun|0}}}
}}
|}


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

Latest revision as of 19:19, 21 February 2021

/ Food
General
Materials unknown
Volume 0 liters
Weight 0 lbs or 0 g
As Food
Portions 1
As a Drug
Other
Price 0 $
As a Melee Weapon
Bash Dmg 0
To Hit +0
 A food item