Template:Infobox: Difference between revisions
From Against the Storm Official Wiki
m (adding workplaces to infobox) |
m (adding trading and fuel sections to infoboxes) |
||
(4 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 -------> | <!------- Start header section -------> | ||
<div id="ats-infobox-header | <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 18: | Line 18: | ||
{{#if: {{{workplaces|}}} | {{#if: {{{workplaces|}}} | ||
|<div id="ats-infobox-workplaces"> | |<div id="ats-infobox-workplaces"> | ||
<p>{{{workplaces}}} | <p>{{{workplaces}}} | ||
[[File:Worker round.png|{{ImgM}}|class=ats-border | [[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}}} >= 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}}} >= 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}}} >= 4| [[File:Worker round.png|{{ImgM}}|class=ats-circle-border-thick]] |}} | ||
{{#ifexpr: {{{workplaces}}} >= 5| + {{#expr: {{{workplaces}}}-4}} |}} | {{#ifexpr: {{{workplaces}}} >= 5| + {{#expr: {{{workplaces}}}-4}} |}} | ||
Workers</p> | Workers</p> | ||
</div> | </div> | ||
Line 30: | Line 30: | ||
<!------- Start conditional recipes section -------> | <!------- Start conditional recipes section -------> | ||
{{#if: {{{recipes|}}} | {{#if: {{{recipes|}}} | ||
|<div id="ats-infobox- | |<div id="ats-infobox-section" class="ats-double-border-with-header"> | ||
<p class="ats- | <p class="ats-double-border-with-header-title">Recipes</p> | ||
{{{recipes}}} | {{{recipes}}} | ||
</div> | </div> | ||
|}} | |}} | ||
<!-- End recipes --> | <!-- 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 48: | Line 78: | ||
|workplaces=3 | |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
Recipes
- Pie (★★)
- Skewers (★★)
- Copper Bars (★★)
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
Recipes
- Smelter (★)
- Bakery (★★)
- Furnace (★★)
- Pantry (★★)
- Flawless Smelter (★★★)
ID = `[Food Processed] Pie`
Recipes
- Brick Oven (★)
- Kiln (★★★)
- Mine (★★)
Fuel & Sacrificing
00:40 | New profile burn time |
ID = `[Crafting] Coal`