Difference between revisions of "Template:Item/Resource"

From RimWorld Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
{{  #vardefine: name          | {{{?Name          | Packaged Survival Meal}}}
 
{{  #vardefine: name          | {{{?Name          | Packaged Survival Meal}}}
 +
}}{{#vardefine: color        | {{{userparam|#080}}}
 
}}{{#vardefine: value        | {{Q| {{#var:name}} | Market Value Base }}
 
}}{{#vardefine: value        | {{Q| {{#var:name}} | Market Value Base }}
 
}}{{#vardefine: nutrition    | {{Q| {{#var:name}} | Nutrition }}
 
}}{{#vardefine: nutrition    | {{Q| {{#var:name}} | Nutrition }}
Line 7: Line 8:
 
}}{{#vardefine: lasts        | {{#ifexpr: {{#var:deterioration}} > 0 | {{#expr: {{#var:hitpoints}} / {{#var:deterioration}} }} days | forever }}
 
}}{{#vardefine: lasts        | {{#ifexpr: {{#var:deterioration}} > 0 | {{#expr: {{#var:hitpoints}} / {{#var:deterioration}} }} days | forever }}
 
}}<div style='float: left; width: 15em; margin: 1em; padding: 0.25em'
 
}}<div style='float: left; width: 15em; margin: 1em; padding: 0.25em'
><div style='border-bottom: 3px solid #080'
+
><div style='border-bottom: 3px solid {{#var:color}}'
 
><div style='float: right'
 
><div style='float: right'
 
>{{Icon Medium| {{#var:name}} }}</div
 
>{{Icon Medium| {{#var:name}} }}</div
 
>[[{{#var:name}}]]</div
 
>[[{{#var:name}}]]</div
><ul style='height: 5em; list-style: inside square !important; margin-right: 1.25em; font-size: 80%; color: #080; border-right: 3px solid #080'
+
><ul style='height: 5em; list-style: inside square !important; margin-right: 1.25em; font-size: 80%; color: {{#var:color}}; border-right: 3px solid'
 
><li style='float: left; white-space: nowrap; margin-right: 1em'><span style='color: #000'>{{#var:value}}{{Icon|silver}}</span></li
 
><li style='float: left; white-space: nowrap; margin-right: 1em'><span style='color: #000'>{{#var:value}}{{Icon|silver}}</span></li
 
><li style='float: left; white-space: nowrap; margin-right: 1em'><span style='color: #000'>{{#var:stacks}}/stack</span></li
 
><li style='float: left; white-space: nowrap; margin-right: 1em'><span style='color: #000'>{{#var:stacks}}/stack</span></li

Revision as of 14:51, 7 April 2015

[[|none|32px|link= Packaged Survival Meal ]]
Packaged Survival Meal
  • Silver
  • /stack
  • has nutrition
  • lasts Expression error: Unexpected > operator. outside