Please note that some information on this wiki is still based on the demo version.
If you notice any errors, feel free to correct them.

Template:Production: Difference between revisions

From Super Fantasy Kingdom Official Wiki
wgg>Cadaei
using flex instead of table
wgg>Cadaei
using css classes
Line 1: Line 1:
<includeonly><div class="pixel-border" style="padding: .2em .5em; display: inline-flex; align-items: center; background-color: var(--wiki-content-background-color--tertiary);">
<includeonly><div class="pixel-border production-container">
<div>
<div class="production-in-out">
{{#if:{{{i1|}}}|{{itemLink|{{{i1}}}|quantity={{{in1|1}}}}}}}<!--
{{#if:{{{i1|}}}|{{itemLink|{{{i1}}}|quantity={{{in1|1}}}}}}}<!--
-->{{#if:{{{i2|}}}|<br/>{{itemLink|{{{i2}}}|quantity={{{in2|1}}}}}}}<!--
-->{{#if:{{{i2|}}}|<br/>{{itemLink|{{{i2}}}|quantity={{{in2|1}}}}}}}<!--
Line 6: Line 6:
-->{{#if:{{{i4|}}}|<br/>{{itemLink|{{{i4}}}|quantity={{{in4|1}}}}}}}
-->{{#if:{{{i4|}}}|<br/>{{itemLink|{{{i4}}}|quantity={{{in4|1}}}}}}}
</div>
</div>
{{#if:{{{b|}}}| <div style="font-size:4em;padding-bottom:0.15em">&rsaquo;</div>
{{#if:{{{b|}}}| <div class="production-arrow">&rsaquo;</div>
<div>
<div>
<div style="text-align:center">[[{{{b}}}]]</div>
<div style="text-align:center">[[{{{b}}}]]</div>
<div style="padding:2px 0.5em">[[File:{{{b|}}}.png|64px]]</div>
<div style="padding:2px 0.5em">[[File:{{{b|}}}.png|64px]]</div>
{{#if: {{{t|}}}|<div style="text-align:center; border: 1px solid var(--wiki-content-border-color); border-radius:7px;padding:0.4em;background: var(--wiki-content-background-color--secondary);">{{{t}}}</div>}}
{{#if: {{{t|}}}|<div class="production-building">{{{t}}}</div>}}
</div>
</div>
}}
}}
<div style="font-size:4em; padding-bottom: 0.15em;">&rsaquo;</div><div>
<div class="production-arrow">&rsaquo;</div><div class="production-in-out">
{{#if:{{{p1|}}}|{{itemLink|{{{p1}}}|quantity={{{pn1|1}}}}}}}<!--
{{#if:{{{p1|}}}|{{itemLink|{{{p1}}}|quantity={{{pn1|1}}}}}}}<!--
-->{{#if:{{{p2|}}}|<br/>{{itemLink|{{{p2}}}|quantity={{{pn2|1}}}}}}}<!--
-->{{#if:{{{p2|}}}|<br/>{{itemLink|{{{p2}}}|quantity={{{pn2|1}}}}}}}<!--

Revision as of 09:58, 28 September 2025

File:Template-info.svg Documentation Edit this documentation at Template:Production/doc.
(edit • history • purge)

Displays infos about a production, i.e. ingredients, building and products.

Parameters

  • i1 Ingredient 1 ...
  • i4 Ingredient 4
  • in1 ingredient amount 1 (defaults to 1) ...
  • in4 ingredient amount 4 (defaults to 1)
  • b building
  • t production time
  • p1 product 1 ...
  • p4 product 4
  • pn1 product amount 1 (defaults to 1) ...
  • pn4 product amount 4 (defaults to 1)

Examples

{{production|i1=Flour|i2=Water|b=Bakery|t=5 s|p1=Bread}}

1 ×  Flour
1 ×  Water

›
5 s
›

1 ×  Bread

{{production|i1=Flour|i2=Water|b=Bakery|t=5 s|p1=Bread|p2=Ingot|pn2=3}}

1 ×  Flour
1 ×  Water

›
5 s
›

1 ×  Bread
3 ×  Ingot