Difference between revisions of "Template:Item/Resource"

From RimWorld Wiki
Jump to navigation Jump to search
m
 
(5 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: color        | {{{userparam|#080}}}
 
}}{{#vardefine: value        | {{Q| {{#var:name}} | Market Value Base }}
 
}}{{#vardefine: value        | {{Q| {{#var:name}} | Market Value Base }}
Line 10: Line 11:
 
><div style='border-bottom: 3px solid {{#var:color}}'
 
><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: {{#var:color}}; border-right: 3px solid'
 
><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