Template:Infobox: Difference between revisions

From Against the Storm Official Wiki
m (WIP building recipe section)
m (adding trading and fuel sections to infoboxes)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div id="ats-infobox" class="ats-infobox-border">
<includeonly><div id="ats-infobox" class="ats-infobox-border ats-green-leather-background">
 
<!------- Start header section ------->
<div id="ats-infobox-header" class="ats-thin-border-semitransparent-background">
<div id="ats-infobox-header">
<p id="ats-infobox-header-title">{{{title|In-game name}}}</p>
<p id="ats-infobox-header-title">{{{title|In-game name}}}</p>
<!--If a subtitle was given, then show that line, otherwise skip-->
<!--If a subtitle was given, then show that line, otherwise skip-->
Line 13: Line 13:
|}}
|}}
<div id="ats-infobox-header-icon-container" class="ats-thin-border-bright">[[File: {{{iconfilename|Furnace_icon.png}}} ]]</div>
<div id="ats-infobox-header-icon-container" class="ats-thin-border-bright">[[File: {{{iconfilename|Furnace_icon.png}}} ]]</div>
</div><!-- End header -->
</div>
 
<!-- End header -->
<!------- Start conditional workplaces section ------->
{{#if: {{{workplaces|}}}
|<div id="ats-infobox-workplaces">
<p>{{{workplaces}}}
[[File:Worker round.png|{{ImgM}}|class=ats-circle-border-thick]]
{{#ifexpr: {{{workplaces}}} >= 2| [[File:Worker round.png|{{ImgM}}|class=ats-circle-border-thick]] |}}
{{#ifexpr: {{{workplaces}}} >= 3| [[File:Worker round.png|{{ImgM}}|class=ats-circle-border-thick]] |}}
{{#ifexpr: {{{workplaces}}} >= 4| [[File:Worker round.png|{{ImgM}}|class=ats-circle-border-thick]] |}}
{{#ifexpr: {{{workplaces}}} >= 5| + {{#expr: {{{workplaces}}}-4}} |}}
Workers</p>
</div>
|}}
<!-- End workplaces -->
<!------- Start conditional recipes section ------->
{{#if: {{{recipes|}}}
{{#if: {{{recipes|}}}
|<div id="ats-infobox-recipes" class="ats-thin-border-with-header">
|<div id="ats-infobox-section" class="ats-double-border-with-header">
<p class="ats-thin-border-with-header-title">Recipes</p>
<p class="ats-double-border-with-header-title">Recipes</p>
{{{recipes}}}
{{{recipes}}}
</div>
</div>
|}}<!-- End conditional recipes section -->
|}}
 
<!-- End recipes -->
<!------- Start conditional construction section ------->
{{#if: {{{construction|}}}
|<div id="ats-infobox-section" class="ats-double-border-with-header">
<p class="ats-double-border-with-header-title">Construction</p>
{{{construction}}}
<table><tr><td>{{{cityscore|?}}}</td><td>City score</td></tr>
<tr><td>{{{constructiontime|?}}}</td><td>Build time</td></tr>
<tr><td>{{{constructionsize|?}}}</td><td>Building size</td></tr></table>
</div>
|}}
<!-- End construction -->
<!------- Start conditional fuel & sacrificing section ------->
{{#if: {{{burntime|}}}
|<div class="ats-infobox-section ats-double-border-with-header">
<p class="ats-double-border-with-header-title">Fuel & Sacrificing</p>
<table><tr><td>{{{burntime|?}}}</td><td>New profile burn time</td></tr></table>
</div>
|}}
<!-- End fuel -->
<!------- Start conditional trading section ------->
{{#if: {{{sellvalue|}}}
|<div id="ats-infobox-section" class="ats-double-border-with-header">
<p class="ats-double-border-with-header-title">Trading</p>
<table><tr><td>{{{sellvalue|?}}}</td><td>{{Amber}}</td><td>Value when sold</td></tr>
<tr><td>{{{sellvaluep10|?}}}</td><td>{{Amber}}</td><td>Value after P10</td></tr>
<tr><td>{{{buyvalue|?}}}</td><td>{{Amber}}</td><td>Traders' price</td></tr></table>
</div>
|}}
<!-- End trading -->
<p id="ats-infobox-id">ID = `{{{id|?}}}`</p>
</div></includeonly><noinclude>
</div></includeonly><noinclude>


Line 32: Line 76:
|specialization=Warmth
|specialization=Warmth
|iconfilename=Furnace_icon.png
|iconfilename=Furnace_icon.png
|workplaces=3
|recipes={{Recipe|building=Furnace|display=list}}
|recipes={{Recipe|building=Furnace|display=list}}
|construction={{Construction|5|2}}
|constructiontime=00:40
|constructionsize=3 × 2
|id=Furnace
}}
}}


{{Infobox
{{Infobox
|title=Pie
|title=Pie
|subtitle=Food
|subtitle=Complex Food
|description=A savory delicacy. Liked by: Humans, Lizards, Frogs. Villagers with a satisfied need for pie have an increased chance of producing double yields. Produced in: Bakery, Pantry, Furnace, Smelter
|description=A savory delicacy. Liked by: Humans, Lizards, Frogs. Villagers with a satisfied need for pie have an increased chance of producing double yields. Produced in: Bakery, Pantry, Furnace, Smelter
|iconfilename=Icon Resource Pie.png
|iconfilename=Icon Resource Pie.png
|recipes={{Recipe|product=Pie|display=list}}
|recipes={{Recipe|product=Pie|display=list}}
|sellvalue=0.18
|sellvaluep10=0.09
|buyvalue=0.35
|id=[Food Processed] Pie
}}
{{Infobox
|title=Coal
|subtitle=Fuel & Exploration
|description=Efficient fuel. Obtained in: Kiln, Mine, Brick Oven
|iconfilename=Icon Resource Coal.png
|recipes={{Recipe|product=Coal|display=list}}
|burntime=00:40
|sellvalue=0.29
|sellvaluep10=0.18
|buyvalue=0.50
|id=[Crafting] Coal
}}
}}


</noinclude>
</noinclude>

Latest revision as of 21:41, 5 October 2024



Furnace

Production Building

Can produce: Pie (**), Skewers (**), Copper Bars (**). Can use: Drizzle Water.

Specialization bonus: Warmth

Furnace icon.png

3 Worker round.png Worker round.png Worker round.png Workers

Recipes

Construction

5Planks Planks
2Bricks Bricks
?City score
00:40Build time
3 × 2Building size


ID = `Furnace`

Pie

Complex Food

A savory delicacy. Liked by: Humans, Lizards, Frogs. Villagers with a satisfied need for pie have an increased chance of producing double yields. Produced in: Bakery, Pantry, Furnace, Smelter

Icon Resource Pie.png

Recipes


Trading

0.18AmberValue when sold
0.09AmberValue after P10
0.35AmberTraders' price

ID = `[Food Processed] Pie`

Coal

Fuel & Exploration

Efficient fuel. Obtained in: Kiln, Mine, Brick Oven

Icon Resource Coal.png

Recipes

Fuel & Sacrificing

00:40New profile burn time

Trading

0.29AmberValue when sold
0.18AmberValue after P10
0.50AmberTraders' price

ID = `[Crafting] Coal`