Template:Camp supplies table/row: Difference between revisions
Jump to navigation
Jump to search
(guard against div0) |
No edit summary |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><tr> | <includeonly><tr> | ||
<td>{{LgItemIcon|{{{name}}} }}</td> | <td>{{LgItemIcon|{{{name}}} }}</td> | ||
<td>{{{supplies}}}</td> | <td>{{{camp supplies}}}</td> | ||
<td>{{{price}}}</td> | <td>{{{price}}}</td> | ||
<td>{{#ifeq:{{{price}}}|0|-|{{#expr:{{{supplies}}}/{{{price}}} round 3}} }}</td> | <td>{{#ifeq:{{{price}}}|0|-|{{#expr:{{{camp supplies}}}/{{{price}}} round 3}} }}</td> | ||
</tr></includeonly><noinclude> | </tr></includeonly><noinclude> | ||
Formats a row for camp supply efficiency table. Example: | Formats a row for camp supply efficiency table. Example: | ||
<table class="wikitable"> | <table class="wikitable"> | ||
{{ | {{Camp supplies table/row|name=Owlbear Egg|camp supplies=40|price=750}} | ||
{{ | {{Camp supplies table/row|name=Goodberry (Item)|camp supplies=1|price=0}} | ||
</table> | </table> | ||
</noinclude> | </noinclude> |
Latest revision as of 17:21, 5 June 2024
Formats a row for camp supply efficiency table. Example:
Owlbear Egg | 40 | 750 | 0.053 |
Goodberry (Item) | 1 | 0 | - |