Template:Infobox sap: Difference between revisions
From Everafter Falls Wiki
Created page with "<noinclude>{{#cargo_attach:table=Items}}</noinclude><includeonly><!-- // Storing the inputs into the declared 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={{{type|Tree sap}}} |Source={{i|{{{tree|}}} Tree|alt={{{tree|}}} Tree Sapling}} |Collection..." |
mNo edit summary |
||
| (4 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={{{type| | |Type={{{type|Raw tree sap}}} | ||
|Source={{i|{{{tree|}}} Tree|alt={{{tree|}}} Tree Sapling}} | |Source={{#switch:{{lc:{{{tree|}}}}} | ||
| cherry blossom = [[Cherry Blossom Tree]] | |||
| #default = {{i|{{{tree|}}} Tree|alt={{{tree|}}} Tree Sapling}}}} | |||
|Collection={{{collection|Tree Sap}}} | |Collection={{{collection|Tree Sap}}} | ||
|Machine={{{machine|}}} | |Machine={{{machine|}}} | ||
| Line 32: | Line 34: | ||
|SellPrice={{{sell|}}} | |SellPrice={{{sell|}}} | ||
|SoldAt={{{store|}}} | |SoldAt={{{store|}}} | ||
|StacksTo={{{stack|999}}} | |||
}} }}<!-- | }} }}<!-- | ||
| Line 50: | Line 53: | ||
<data source="source"><label>Source</label></data> | <data source="source"><label>Source</label></data> | ||
<data source="store"><label>Sold at</label><format>[[{{{store|}}}]]</format></data> | <data source="store"><label>Sold at</label><format>[[{{{store|}}}]]</format></data> | ||
<data source="stack"><label>Stack size</label><default>999</default></data> | |||
</group> | </group> | ||
<group> | <group> | ||
<header> | <header>Tapping</header> | ||
<data source="machine"><label>Tapper</label><format>{{i|{{{machine}}}}}</format></data> | <data source="machine"><label>Tapper</label><format>{{i|{{{machine}}}}}</format></data> | ||
<data source="tree"><label>Tree</label><format>{{i|{{{tree|}}} Tree|alt={{{tree|}}} Tree Sapling}}</format></data> | <data source="tree"><label>Tree</label><format>{{#switch:{{lc:{{{tree|}}}}} | ||
| cherry blossom = [[Cherry Blossom Tree]] | |||
| #default = {{i|{{{tree|}}} Tree|alt={{{tree|}}} Tree Sapling}}}}</format></data> | |||
<data source="time"><label>Time</label></data> | <data source="time"><label>Time</label></data> | ||
</group> | </group> | ||
Latest revision as of 18:58, 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 individual tree sap pages and store data in Special:CargoTables/Items.
The template also assigns Tree sap category to the pages it is used on.
Syntax
{{infobox sap
|name =
|description =
|type =
|collection =
|tree =
|machine =
|time =
|sell =
}}
- collection and type are optional and get filled automatically if omitted
- tree is the name of the tree without the word tree (e.g. Fire, Water), that field is formatted by the template
- machine should be either Delicate Tapping Kit or Tapping Kit
- time is for the base non-pixie tapper
- sell should be number only, no icons or other symbols