Difference between revisions of "Template:Item/Resource"

From RimWorld Wiki
Jump to navigation Jump to search
m
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{  #vardefine: name          | {{{?Name          | Packaged Survival Meal}}}
+
{{Obsolete|reason=unused}}
 +
{{  #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 9:
 
}}{{#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 Big| {{#var:name}} |size=32}}</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 Small|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
><li style='float: left; white-space: nowrap; margin-right: 1em'><span style='color: #000'>has '''{{#var:nutrition}} nutrition'''</span></li
+
{{#if: {{#var:nutrition}} |><li style='float: left; white-space: nowrap; margin-right: 1em'><span style='color: #000'>has '''{{#var:nutrition}} nutrition'''</span></li}}
><li style='float: left; white-space: nowrap; margin-right: 1em'><span style='color: #000'>lasts '''{{#var:lasts}}''' outside</span></li
+
{{#if: {{#var:hitpoints}} |><li style='float: left; white-space: nowrap; margin-right: 1em'><span style='color: #000'>lasts '''{{#var:lasts}}''' outside</span></li}}
 
></ul
 
></ul
 
></div
 
></div
 
>
 
>

Latest revision as of 12:19, 31 July 2023

  • 24 Silver
  • 10/stack
  • has 0.9 nutrition