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 |
||
| Line 41: | Line 41: | ||
<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=" | <data source="produce"><label>Produces</label></data> | ||
</group> | </group> | ||
<group> | <group> | ||
Revision as of 04:50, 18 July 2024
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