Template:Infobox bar: Difference between revisions
Appearance
Bar infobox |
Add sell value + store payouts |
||
| Line 9: | Line 9: | ||
--><div class="sh-infobox-row"><div class="sh-infobox-label">Smelted at</div><div class="sh-infobox-value">[[Smelting|Craig's forge]]</div></div><!-- | --><div class="sh-infobox-row"><div class="sh-infobox-label">Smelted at</div><div class="sh-infobox-value">[[Smelting|Craig's forge]]</div></div><!-- | ||
-->{{#if:{{{hearts|}}}|<div class="sh-infobox-row"><div class="sh-infobox-label">Unlocks at</div><div class="sh-infobox-value">Craig, {{{hearts}}} {{#ifeq:{{{hearts}}}|1|heart|hearts}}</div></div>|}}<!-- | -->{{#if:{{{hearts|}}}|<div class="sh-infobox-row"><div class="sh-infobox-label">Unlocks at</div><div class="sh-infobox-value">Craig, {{{hearts}}} {{#ifeq:{{{hearts}}}|1|heart|hearts}}</div></div>|}}<!-- | ||
-->{{#if:{{{value|}}}|<div class="sh-infobox-section">Selling</div><div class="sh-infobox-row"><div class="sh-infobox-label">Base value</div><div class="sh-infobox-value">{{Gold|{{{value}}}}}</div></div><div class="sh-infobox-section">Instant sell to store</div><div class="sh-infobox-row"><div class="sh-infobox-label">{{Quality|regular}}</div><div class="sh-infobox-value">{{Gold|{{#invoke:StepHarvest|storePayout|{{{value}}}|regular}}}}</div></div><div class="sh-infobox-row"><div class="sh-infobox-label">{{Quality|silver}}</div><div class="sh-infobox-value">{{Gold|{{#invoke:StepHarvest|storePayout|{{{value}}}|silver}}}}</div></div><div class="sh-infobox-row"><div class="sh-infobox-label">{{Quality|gold}}</div><div class="sh-infobox-value">{{Gold|{{#invoke:StepHarvest|storePayout|{{{value}}}|gold}}}}</div></div><div class="sh-infobox-row"><div class="sh-infobox-label">{{Quality|pristine}}</div><div class="sh-infobox-value">{{Gold|{{#invoke:StepHarvest|storePayout|{{{value}}}|pristine}}}}</div></div><div class="sh-infobox-note">Store payouts for a fresh sale by quality. See [[Marketplace]].</div>|}}<!-- | |||
--></div><!-- | --></div><!-- | ||
--></div>{{#cargo_store:_table=bars|name={{{name|{{PAGENAME}}}}}|ore={{{ore|}}}|fee={{{fee|}}}|hearts={{{hearts|}}}|description={{{description|}}}}}</includeonly><noinclude> | --></div>{{#cargo_store:_table=bars|name={{{name|{{PAGENAME}}}}}|ore={{{ore|}}}|fee={{{fee|}}}|hearts={{{hearts|}}}|value={{{value|}}}|description={{{description|}}}}}</includeonly><noinclude> | ||
{{#cargo_declare:_table=bars | {{#cargo_declare:_table=bars | ||
|name=String | |name=String | ||
| Line 16: | Line 17: | ||
|fee=Integer | |fee=Integer | ||
|hearts=Integer | |hearts=Integer | ||
|value=Integer | |||
|description=Text | |description=Text | ||
}} | }} | ||
Latest revision as of 18:14, 16 June 2026
This template defines the table "bars". View table.
Infobox for smelted metal bars. Every bar uses 5 ore plus 1 Coal, so the recipe row is built from the single ore parameter.
Data is also stored in the Cargo table bars for the recipe list on Smelting.
Usage
{{Infobox bar
|name=Iron Bar
|image=Iron Bar
|ore=Iron Ore
|fee=50
|hearts=2
|description=A strong bar of iron. Its quality reflects the average quality of the materials used to make it.
}}
feeis the gold cost to smelt one bar.heartsis the friendship level with Craig that unlocks the recipe. Leave empty if it is available from the start.