Template:Infobox machine: Difference between revisions
From Everafter Falls Wiki
Created page with "<noinclude>{{#cargo_attach:table=Items}}</noinclude><includeonly><!-- // Storing the inputs into the Cargo table --><!-- ifeq namespace check to prevent documentation examples being stored in CargoTable --> {{#ifeq: {{NAMESPACENUMBER}} | 0 | {{#cargo_store: _table=Items |Name={{{name|{{PAGENAME}}}}} |Image={{{name|{{PAGENAME}}}}}.png |Description={{{description|}}} |Type=Machine |Source={{{source|}}} |Machine=0 |Mat1={{{mat1|0}}} |Amt1={{{amt1|0}}} |Mat2={{{mat2|0}}} |A..." |
mNo edit summary |
||
| (21 intermediate revisions by the same user not shown) | |||
| Line 9: | Line 9: | ||
|Image={{{name|{{PAGENAME}}}}}.png | |Image={{{name|{{PAGENAME}}}}}.png | ||
|Description={{{description|}}} | |Description={{{description|}}} | ||
|Type=Machine | |Type={{{type|Machine}}} | ||
|Source={{{source|}}} | |Source={{#if:{{{store|}}}|[[{{{store|}}}]] {{#if:{{{buy|}}}|({{{buy|}}})}} | ||
|Machine= | |{{{source|[[Crafting]]}}}}} | ||
|Machine={{#if:{{{mat1|}}}|Crafting}} | |||
|Mat1={{{mat1|0}}} | |Mat1={{{mat1|0}}} | ||
|Amt1={{{amt1|0}}} | |Amt1={{{amt1|0}}} | ||
| Line 22: | Line 23: | ||
|Mat5={{{mat5|0}}} | |Mat5={{{mat5|0}}} | ||
|Amt5={{{amt5|0}}} | |Amt5={{{amt5|0}}} | ||
|AmtCrafted={{{amt_crafted|1}}} | |||
|Mat1Alt={{{mat1_alt|0}}} | |||
|Amt1Alt={{{amt1_alt|0}}} | |||
|Mat2Alt={{{mat2_alt|0}}} | |||
|Amt2Alt={{{amt2_alt|0}}} | |||
|CraftTime={{{time|0}}} | |CraftTime={{{time|0}}} | ||
|BuyPrice={{{buy|}}} | |BuyPrice={{{buy|}}} | ||
|SellPrice={{{sell|}}} | |SellPrice={{{sell|1}}} | ||
|SoldAt={{{store|}}} | |||
|Size={{{size|1x1}}} | |||
|Stats={{{produces|}}} | |||
|Misc={{{fuel|''None''}}} | |||
|Rarity={{{rarity|0}}} | |||
|StacksTo={{{stack|999}}} | |||
}} }}<!-- | }} }}<!-- | ||
| Line 41: | Line 53: | ||
<data source="type"><label>Type</label><default>[[Machine]]</default></data> | <data source="type"><label>Type</label><default>[[Machine]]</default></data> | ||
<data source="source"><label>Source</label></data> | <data source="source"><label>Source</label></data> | ||
<data source="source"><label>Produces</label></data> | <data source="store"><label>Sold at</label><format>[[{{{store|}}}]]</format></data> | ||
<data source="produces"><label>Produces</label></data> | |||
<data source="fuel"><label>Fuel</label></data> | |||
<data source="size"><label>Footprint</label><default>1x1</default></data> | |||
<data source="stack"><label>Stack size</label><default>999</default></data> | |||
</group> | </group> | ||
<group> | <group> | ||
<header>Crafting</header> | <header>Crafting</header> | ||
<data source="unlock"><label>Unlocked by</label></data> | |||
<data source="mat1"><label>Recipe</label><format>{{i|{{{mat1}}}|{{{amt1|1}}}}}{{#if:{{{mat2|}}}|{{i|{{{mat2}}}|{{{amt2|1}}}}}}}{{#if:{{{mat3|}}}|{{i|{{{mat3}}}|{{{amt3|1}}}}}}}{{#if:{{{mat4|}}}|{{i|{{{mat4}}}|{{{amt4|1}}}}}}}{{#if:{{{mat5|}}}|{{i|{{{mat5}}}|{{{amt5|1}}}}}}}</format></data> | <data source="mat1"><label>Recipe</label><format>{{i|{{{mat1}}}|{{{amt1|1}}}}}{{#if:{{{mat2|}}}|{{i|{{{mat2}}}|{{{amt2|1}}}}}}}{{#if:{{{mat3|}}}|{{i|{{{mat3}}}|{{{amt3|1}}}}}}}{{#if:{{{mat4|}}}|{{i|{{{mat4}}}|{{{amt4|1}}}}}}}{{#if:{{{mat5|}}}|{{i|{{{mat5}}}|{{{amt5|1}}}}}}}</format></data> | ||
</group> | </group> | ||
| Line 50: | Line 67: | ||
<header>Economy</header> | <header>Economy</header> | ||
<data source="buy"><label>Buy price</label></data> | <data source="buy"><label>Buy price</label></data> | ||
<data source="sell"><label>Sell price</label><format>{{formatnum:{{{sell|}}}}}{{coin}}</format | <data source="sell"><label>Sell price</label><format>{{formatnum:{{{sell|}}}}}{{coin}}</format></data> | ||
</group> | </group> | ||
</infobox>[[Category:Machines]]</includeonly><noinclude>{{documentation}}[[Category:Infobox templates|machine]]</noinclude> | </infobox>[[Category:Machines]]</includeonly><noinclude>{{documentation}}[[Category:Infobox templates|machine]]</noinclude> | ||
Latest revision as of 17:51, 2 April 2025
This template adds rows to the table "Items", which is declared by the template Item declare. View table.
| Template documentation |
|---|
| Note: portions of the template sample may not be visible without values provided. |
| View or edit this documentation. (About template documentation) |
| Editors can experiment in this template's sandbox and test case pages. |
Description
This template is used to create infoboxes on machines pages and populate the Items cargo table.
The template also assigns machines category to pages it is used on.
Syntax
{{infobox machine
|name =
|description =
|source =
|produces =
|fuel =
|unlock =
|mat1 =
|amt1 =
|mat2 =
|amt2 =
|mat3 =
|amt3 =
|mat4 =
|amt4 =
|mat5 =
|amt5 =
|sell =
}}
- name field should match the in-game item name
- source, fuel, produces, and unlock fields may contain formatted wikitext
- Please list all ingredients in mat (ingredient name, case sensitive) and amt (amount of ingredient used). Plain text, no wikitext formatting or templates.
- Sell price in sell should contain numbers only, no other symbols like dots or commas