ATTENTION! The process of updating WiKi to version Eco 10.x has begun. Those wishing to participate can find out more Information on our ECO Contribution Wiki Discord.

Template:Infobox Item: Difference between revisions

From Eco - English Wiki
[checked revision][checked revision]
No edit summary
No edit summary
Line 14: Line 14:
*[[Module:ItemData]]
*[[Module:ItemData]]
*[[Module:CraftingRecipes]].
*[[Module:CraftingRecipes]].
== Usage==
== Usage==
===Parameters===
===Parameters===
; name
; name
: The name of an item. This pulls the description for that item.
: The name of an item. This pulls the description for that item.
===Infobox Properies===
===Infobox Properies===
If .name is found it will generate the following:
If .name is found it will generate the following:
Line 45: Line 47:
     |itemidnumber = Item ID Number  
     |itemidnumber = Item ID Number  
</pre>  
</pre>  
If .footprint (Dimension) ~= nil, or group == 'Block Item' it will generate the following:
If .footprint (Dimension) ~= nil, or group == 'Block Item' it will generate the following:
<pre>
<pre>
World Object
World Object
Line 69: Line 73:
     Fuels Used: List of items the objects use as fuel
     Fuels Used: List of items the objects use as fuel
</pre>
</pre>
If .mobile ~= nil it will generate the following:
If .mobile ~= nil it will generate the following:
<pre>
<pre>
Vehicle Object
Vehicle Object
Line 76: Line 82:
     Fuels Used: List of items the objects use as fuel
     Fuels Used: List of items the objects use as fuel
</pre>
</pre>
If .itemTable.group == 'Road Items' it will generate the following:
If .itemTable.group == 'Road Items' it will generate the following:
<pre>
<pre>
Road Object
Road Object
     |image = ItemName_Placed.png
     |image = ItemName_Placed.png
</pre>
</pre>
''Note:'' Put the tag between <code>&lt;noinclude&gt; &lt;/noinclude&gt;</code> tags for outdated transcluded pages.
 
 
==Examples==
==Examples==
{{Infobox_Item|name = Elk Carcass}}
<noinclude>{{Infobox_Item|name = Elk Carcass}}</noinclude>
{{Infobox_Item|name = Charcoal}}
<noinclude>{{Infobox_Item|name = Charcoal}}</noinclude>
{{Infobox_Item|name = Huckleberries}}
<noinclude>{{Infobox_Item|name = Huckleberries}}</noinclude>
{{Infobox_Item|name = Prepared Meat}}
<noinclude>{{Infobox_Item|name = Prepared Meat}}</noinclude>
{{Infobox_Item|name = Workbench}}
<noinclude>{{Infobox_Item|name = Workbench}}</noinclude>
{{Infobox_Item|name = Bloomery}}
<noinclude>{{Infobox_Item|name = Bloomery}}</noinclude>
{{Infobox_Item|name = Bookshelf}}
<noinclude>{{Infobox_Item|name = Bookshelf}}</noinclude>
{{Infobox_Item|name = Wind Turbine}}
<noinclude>{{Infobox_Item|name = Wind Turbine}}</noinclude>
{{Infobox_Item|name = Iron Axe}}
<noinclude>{{Infobox_Item|name = Iron Axe}}</noinclude>
{{Infobox_Item|name = Coal}}
<noinclude>{{Infobox_Item|name = Coal}}</noinclude>
{{Infobox_Item|name = Brick}}
<noinclude>{{Infobox_Item|name = Brick}}</noinclude>
{{Infobox_Item|name = Cooking Skill Scroll}}
<noinclude>{{Infobox_Item|name = Cooking Skill Scroll}}</noinclude>
{{Infobox_Item|name = Trousers}}
<noinclude>{{Infobox_Item|name = Trousers}}</noinclude>
{{Infobox_Item|name = Stockpile}}
<noinclude>{{Infobox_Item|name = Stockpile}}</noinclude>
{{Infobox_Item|name = Wood Cart}}
<noinclude>{{Infobox_Item|name = Wood Cart}}</noinclude>
{{Infobox_Item|name = Blast Furnace}}
<noinclude>{{Infobox_Item|name = Blast Furnace}}</noinclude>
{{Infobox_Item|name = Water}}
<noinclude>{{Infobox_Item|name = Water}}</noinclude>
</noinclude>
</noinclude>

Revision as of 01:35, 22 February 2021


Documentation

{{Infobox_Item|name = 'Item name'}}

This template can be used to grab details relevant to an item. It formats the results into an infobox. If the template is passed, this module creates a table using details from the following Modules:

Usage

Parameters

name
The name of an item. This pulls the description for that item.

Infobox Properies

If .name is found it will generate the following:

    |name = The name of an item.
    |group = Item group
             (Colours for groups: 
             #4b9130 for Food;
             #517ab2 for Items, World Object Items, Tools, Block Items, AvatarPart, Road Items; 
             #af8d33 for Skill Books, Skill Scrolls,)
    |image = ItemName_Icon.png (Game Icon)
General
    |created = Crafting station(s) crafted at, or N/A
    |calories = If group=Food then x,xxx otherwise hide
    |carbs = If group=Food then x.x otherwise hide (print 0.0 if no carbs)
    |protein = If group=Food then x.x otherwise hide (print 0.0 if no protein)
    |fat = If group=Food then x.x otherwise hide (print 0.0 if no fat)
    |vitamins = If group=Food then x.x otherwise hide (print 0.0 if no vitamins)
    |nutritiondensity = If group=Food then xcal otherwise hide    
    |carried = Backpack, Hands
    |weight =  If weight ~= nil then xkg; If nil then 0kg
    |stacklimit = If maxStack ~= nil the x (1, 10, 100)
    |fuel = If fuel ~= nil then x,xxxJ otherwise hide
    |currency = If currency ~= nil then Yes otherwise hide
IDs    
    |itemid = ExampleItem
    |itemidnumber = Item ID Number 

If .footprint (Dimension) ~= nil, or group == 'Block Item' it will generate the following:

World Object
    |image = ItemName_Placed.png
Placement
    |Dimensions = If footprint ~= nil then x x x x x (X x Y x Z) otherwise hide
    |Material Tier = If materialTier ~= nil then Tier x otherwise hide (This is block Tiers)
    |Room Required = If ContainReq ~= nil then Yes otherwise hide
    |Room Size = if roomSizeReq ~= nil then xm³ otherwise hide
    |Room Materials = if itemTable.roomMatReq ~= nil then x otherwise hide
Housing (.roomCategory ~= nil this section will be created otherwise hide)
    |Room Category = Bedroom, Bathroom, Kitchen, General, or Industrial
    (If not Industrial, the following will appear. Industrial will say ALL ROOM VALUE LOST)
    |Furniture Type = Type of furniture (such as light, shelves, seating...)
    |Value = Items Room Value
    |Dim. Return % = Dim. return of the object
Power (If .engeryType ~= nil this section will appear otherwise hide all)
    |Energy Type:  Mechanical, Electrical...
    |Grid Radius: xm
    |Engery Produced: xJ
    |Engery Used: xJ
Fuel (If .fuelsUsed ~= nil this section will appear otherwise hide all)
    Fuels Used: List of items the objects use as fuel

If .mobile ~= nil it will generate the following:

Vehicle Object
    |image = ItemName_Placed.png
Fuel (If .fuelsUsed ~= nil this section will appear otherwise hide all)
    Fuels Used: List of items the objects use as fuel

If .itemTable.group == 'Road Items' it will generate the following:

Road Object
    |image = ItemName_Placed.png


Examples

Elk Carcass
Natural Resources
Description
A dead elk.
General
Used at: Butchery Table
Carried in: Backpack
Weight: 30kg
Stack limit: 100
IDs
Item ID: ElkCarcassItem
Tags
Medium Carcass, Medium Leather Carcass,










</noinclude>

Charcoal
Items
Description
A black residue, consisting of carbon and any remaining ash.
General
Created at: Kiln
Used at: Blast Furnace
Carried in: Backpack
Weight: 10kg
Stack limit: 100
Fuel energy: 20,000J
IDs
Item ID: CharcoalItem
Tags
Burnable Fuel, Coal,










</noinclude>

Huckleberries
Food
Description
A handfull of small wild berries. I'm your huckleberry.
General
Used at: Bakery Oven, Campfire, Cast Iron Stove, Farmers Table, Mill
Calories: 150cal
Nutrients: Carbs: 2
Protein: 0
Fat: 0
Vitamins: 6
Nutrition Density: 5.3333333333333 per 100 cals
Carried in: Backpack
Weight: 0.5kg
Stack limit: 100
IDs
Item ID: HuckleberriesItem
Tags
Food, Fruit, Raw Food,










</noinclude>

Prepared Meat
Food
Description
Carefully butchered meat, ready to cook.
General
Created at: Butchery Table
Used at: Bakery Oven, Cast Iron Stove, Stove
Calories: 600cal
Nutrients: Carbs: 0
Protein: 4
Fat: 6
Vitamins: 0
Nutrition Density: 1.6666666666667 per 100 cals
Carried in: Backpack
Weight: 4kg
Stack limit: 100
IDs
Item ID: PreparedMeatItem
Tag
Food,










</noinclude>

Workbench
Work Stations
Description
A bench for the basics and making even more benches.
General
Created at: Campsite
Carried in: Backpack
Weight: 10kg
Stack limit: 1
IDs
Item ID: WorkbenchItem
Tag
Crafting Table,










</noinclude>

Bloomery
Work Stations
Description
A chimney-shaped furnace for smelting ores.
General
Created at: Kiln
Carried in: Backpack
Weight: 50kg
Stack limit: 1
IDs
Item ID: BloomeryItem
Tag
Crafting Table,










</noinclude>

Bookshelf
Housing Objects
Description
A place to store knowledge and information; leads to the town hall.
General
Created at: Sawmill
Carried in: Backpack
Weight: 20kg
Stack limit: 1
IDs
Item ID: BookshelfItem
Tag
Housing,










</noinclude>

Wind Turbine
Crafted Objects
Description
Uses wind to produce electrical power. Requires clear space for 10 blocks in front of the blades for full power generation. Gains a small output boost when placed at higher elevations.
General
Created at: Robotic Assembly Line
Carried in: Backpack
Weight: 100kg
Stack limit: 1
IDs
Item ID: WindTurbineItem
Tags










</noinclude>

Iron Axe
Items
Description
A sturdy iron axe made for cutting down trees.
General
Created at: Anvil
Carried in: Backpack
Weight: 10kg
Stack limit: 1
IDs
Item ID: IronAxeItem
Tag
Tool,










</noinclude>

Coal
Natural Resources
Description
A combustible mineral which needs to be crushed into usable fuel.
General
Used at: Arrastra, Jaw Crusher, Stamp Mill
Carried in: Hands
Weight: 40kg
Stack limit: 20
IDs
Item ID: CoalItem
Tags
Excavatable, Ore,










</noinclude>

Brick
Blocks
Description
Durable building material made from fired blocks and mortar.
General
Created at: Kiln
Used at: Anvil, Assembly Line, Kiln, Laboratory, Settlement Crafting Table
Carried in: Hands
Weight: 100kg
Stack limit: 20
IDs
Item ID: BrickItem
Tag
Constructable,










</noinclude>

Cooking Skill Scroll
Skill Scrolls
Description
Cooking Skill Scroll
General
Carried in: Backpack
Weight: 0.1kg
Stack limit: 10
IDs
Item ID: Cooking Skill ScrollItem
Tag
Skill Scrolls,










</noinclude>

Trousers
Clothing
Description
Sturdy pair of slim-fit pants. Trousers are an item of clothing worn from the waist to the ankles, covering both legs separately (rather than with cloth extending across both legs as in robes, skirts, and dresses).
General
Created at: Tailoring Table
Carried in: Backpack
Weight: 1kg
Stack limit: 100
IDs
Item ID: TrousersItem
Tag
Clothes,










</noinclude>

Stockpile
Crafted Objects
Description
Designates a 5x5x5 area as storage for large items.
General
Created at: Workbench
Carried in: Backpack
Weight: 10kg
Stack limit: 1
IDs
Item ID: StockpileItem
Tags










</noinclude>

Wood Cart
Crafted Objects
Description
Small cart for hauling small loads.
General
Created at: Wainwright Table
Used at: Wainwright Table
Carried in: Backpack
Weight: 100kg
Stack limit: 100
IDs
Item ID: WoodCartItem
Tag
Vehicles,










</noinclude>

Blast Furnace
Work Stations
Description
A superior replacement for the bloomery that can produce steel.
General
Created at: Assembly Line
Carried in: Backpack
Weight: 100kg
Stack limit: 1
IDs
Item ID: BlastFurnaceItem
Tag
Crafting Table,










</noinclude>

Water could not be found in Module:ItemData.










</noinclude>