Difference between revisions of "Template:Item/Resource"
Jump to navigation
Jump to search
(Created page with "{{ #vardefine: name | {{{?Name | Packaged Survival Meal}}} }}{{#vardefine: value | {{Q| {{#var:name}} | Market Value Base }} }}{{#vardefine: nutrit...") |
m |
||
(8 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ #vardefine: name | {{{?Name | Packaged | + | {{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 5: | Line 7: | ||
}}{{#vardefine: deterioration | {{Q| {{#var:name}} | Deterioration Rate Base }} | }}{{#vardefine: deterioration | {{Q| {{#var:name}} | Deterioration Rate Base }} | ||
}}{{#vardefine: hitpoints | {{Q| {{#var:name}} | Max Health Base }} | }}{{#vardefine: hitpoints | {{Q| {{#var:name}} | Max Health Base }} | ||
− | }}{{#vardefine: lasts | {{#expr: {{#var:hitpoints}} / {{#var:deterioration}} }} | + | }}{{#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 # | + | ><div style='border-bottom: 3px solid {{#var:color}}' |
><div style='float: right' | ><div style='float: right' | ||
− | >{{Icon | + | >{{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: # | + | ><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'> | + | ><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'> | + | ><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: | + | {{#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}}''' | + | {{#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
Template:Item/Resource has been deprecated or removed from the wiki; it is no longer updated or in use. Reason: unused |