Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Recipe: Difference between revisions

Template page
Created page with "<noinclude>WIP Template, don't use yet!</noinclude> {| class="wikitable" !Manufactory !Materials !Time !Energy {{ #if: {{{r1|}}}| r1}}{{ #if: {{{r2|}}}| r2}}{{ #if: {{{r3|}}}|..."
 
Neouni (talk | contribs)
mNo edit summary
 
(18 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>WIP Template, don't use yet!</noinclude>
<noinclude>
{| class="wikitable"
{{/Doc}}
!Manufactory
</noinclude>
!Materials
{| class="wikitable large"
!Time
|-
!Energy
! Manufactory
{{ #if: {{{r1|}}}| r1}}{{ #if: {{{r2|}}}| r2}}{{ #if: {{{r3|}}}| r3}}{{ #if: {{{r4|}}}| r4}}{{ #if: {{{r5|}}}| r5}}{{ #if: {{{r6|}}}| r6}}
! Materials
! Time
! Energy
{{Ifnotempty|{{{1|}}}|
{{{1}}} }}{{Ifnotempty|{{{2|}}}|
{{{2}}} }}{{Ifnotempty|{{{3|}}}|
{{{3}}} }}{{Ifnotempty|{{{4|}}}|
{{{4}}} }}{{Ifnotempty|{{{5|}}}|
{{{5}}} }}{{Ifnotempty|{{{6|}}}|
{{{6}}} }}{{Ifnotempty|{{{7|}}}|
{{{7}}} }}{{Ifnotempty|{{{8|}}}|
{{{8}}} }}
|}
|}
<includeonly>
[[Category:Recipes]]
</includeonly>

Latest revision as of 12:10, 23 June 2018

A table with up to 8 different recipes. The Recycler recipe is automatically styled to indicate return rather than price.

Example

{{Recipe
|{{Recipe/row |machine = Autolathe  |mats = 10g [[Iron]], 2g [[Copper]] |time = 10 |energy = 500}}
|{{Recipe/row |machine = Fabricator |mats = 10g [[Iron]], 2g [[Copper]] |time = 1 |energy = 500}}
|{{Recipe/row |machine = Recycler   |mats = 5g [[Iron]], 1g [[Copper]]  |time = 10 |energy = 1000}}
}}

Result

Manufactory Materials Time Energy
Autolathe 10g Iron, 2g Copper 10 500
Fabricator 10g Iron, 2g Copper 1 500
Recycler 5g Iron, 1g Copper 10 1000
Manufactory Materials Time Energy
Contents