Template:Infobox: Difference between revisions
From Against the Storm Official Wiki
(Created to move the view out of Lua into a more readable template; just started) |
m (adding trading and fuel sections to infoboxes) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div id="ats-infobox" class="ats-infobox ats- | <includeonly><div id="ats-infobox" class="ats-infobox-border ats-green-leather-background"> | ||
< | <!------- Start header section -------> | ||
<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 11: | Line 12: | ||
| <p id="ats-infobox-header-specialization" class="ats-flavor-text">Specialization bonus: {{{specialization}}}</p> | | <p id="ats-infobox-header-specialization" class="ats-flavor-text">Specialization bonus: {{{specialization}}}</p> | ||
|}} | |}} | ||
<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|}}} | |||
|<div id="ats-infobox-section" class="ats-double-border-with-header"> | |||
<p class="ats-double-border-with-header-title">Recipes</p> | |||
{{{recipes}}} | |||
</div> | |||
|}} | |||
<!-- 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> | ||
{{Infobox | {{Infobox | ||
Line 21: | Line 76: | ||
|specialization=Warmth | |specialization=Warmth | ||
|iconfilename=Furnace_icon.png | |iconfilename=Furnace_icon.png | ||
|workplaces=3 | |||
|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=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}} | |||
|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`