6,366
editsMore actions
Template:Camp supplies table/row (view source)
Revision as of 15:00, 22 October 2023
, 22 October 2023guard against div0
(Create) |
(guard against div0) |
||
Line 3: | Line 3: | ||
<td>{{{supplies}}}</td> | <td>{{{supplies}}}</td> | ||
<td>{{{price}}}</td> | <td>{{{price}}}</td> | ||
<td>{{#expr:{{{supplies}}}/{{{price}}} round 3}}</td> | <td>{{#ifeq:{{{price}}}|0|-|{{#expr:{{{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: | ||
Line 9: | Line 9: | ||
<table class="wikitable"> | <table class="wikitable"> | ||
{{:Camp Supplies/table row|name=Owlbear Egg|supplies=40|price=750}} | {{:Camp Supplies/table row|name=Owlbear Egg|supplies=40|price=750}} | ||
{{:Camp Supplies/table row|name=Goodberry (Item)|supplies=1|price=0}} | |||
</table> | </table> | ||
</noinclude> | </noinclude> |