Template:Infobox Item

From Eco - English Wiki


Documentation[edit source]

{{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[edit source]

Parameters[edit source]

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

Infobox Properies[edit source]

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


Note: Put the tag between <noinclude> </noinclude> tags for outdated transcluded pages.

Examples[edit source]

Elk Carcass
Items
ElkCarcass Icon.png
Description
A dead elk.
General
Used at: Butchery Table
Carried in: Backpack
Weight: 3kg
Stack limit: 100
IDs
Item ID: ElkCarcassItem
ID Number: 590
Tags
Medium Carcass, Medium Leather Carcass, Ingredient,



Charcoal
Items
Charcoal Icon.png
Description
A black residue, consisting of carbon and any remaining ash.
General
Created at: Kiln
Carried in: Backpack
Weight: 1kg
Stack limit: 100
Fuel energy: 20,000J
Can back a currency
IDs
Item ID: CharcoalItem
ID Number: 571
Tags
Fuel, Currency, Coal, Burnable Fuel, Ingredient, Product,



Huckleberries
Food
Huckleberries Icon.png
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.0
Protein: 0.0
Fat: 0.0
Vitamins: 6.0
Nutrition Density: 5.3 per 100 cals
Carried in: Backpack
Weight: 0.01kg
Stack limit: 100
Improve Gathering: Gathering
IDs
Item ID: HuckleberriesItem
ID Number: 502
Tags
Crop, Harvestable, Fruit, Raw Food, Food, Object, Ingredient,



Prepared Meat
Food
PreparedMeat Icon.png
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.0
Protein: 4.0
Fat: 6.0
Vitamins: 0.0
Nutrition Density: 1.7 per 100 cals
Carried in: Backpack
Weight: 0.4kg
Stack limit: 100
IDs
Item ID: PreparedMeatItem
ID Number: 523
Tags
Food, Object, Ingredient, Product,



Workbench
World Object Items
Workbench Icon.png
Description
A bench for the basics and making even more benches.
General
Created at: Campsite
Carried in: Backpack
Weight: 0kg
Stack limit: 1
IDs
Item ID: WorkbenchItem
ID Number: 89
Tags
World Object, Object, Crafting Table, Product,
World Object
Workbench Placed.png
Placement
Dimensions (X,Y,Z): 2 X 2 X 1



Bloomery
World Object Items
Bloomery Icon.png
Description
A chimney-shaped furnace for smelting ores.
General
Created at: Kiln
Carried in: Backpack
Weight: 0kg
Stack limit: 1
IDs
Item ID: BloomeryItem
ID Number: 1037
Tags
World Object, Object, Crafting Table, Storage Container, Housing Objects, Product,
World Object
Bloomery Placed.png
Placement
Dimensions (X,Y,Z): 2 X 2 X 1
Housing
Room Category: Industrial
ALL ROOM VALUE LOST
Fuel
Fuels Used: Burnable Fuel Tag



Bookshelf
World Object Items
Bookshelf Icon.png
Description
A place to store knowledge and information; leads to the town hall.
General
Created at: Sawmill
Carried in: Backpack
Weight: 0kg
Stack limit: 100
IDs
Item ID: BookshelfItem
ID Number: 1038
Tags
Housing, World Object, Object, Housing Objects, Storage Container, Product,
World Object
Bookshelf Placed.png
Placement
Dimensions (X,Y,Z): 1 X 2 X 1
Housing
Room Category: General
Furniture Type: Shelves
Value: 2
Dim. Return %: 50%
Storage
Inventory Slots: 8
Inventory Max Weight: Unlimited



Wind Turbine
World Object Items
WindTurbine Icon.png
Description
Generates electrical power from the wind.
General
Created at: Robotic Assembly Line
Carried in: Backpack
Weight: 0kg
Stack limit: 100
IDs
Item ID: WindTurbineItem
ID Number: 1380
Tags
World Object, Object, Housing Objects, Product,
World Object
NoImage.png
Placement
Dimensions (X,Y,Z): 7 X 11 X 3
Housing
Room Category: Industrial
ALL ROOM VALUE LOST
Power
Energy Type: Electric
Grid Radius: 30m
Energy Produced: 1,000w
Energy Used: 0w



Iron Axe
Tools
IronAxe Icon.png
Description
A broadheaded axe useful for felling trees.
General
Created at: Anvil
Carried in: Backpack
Weight: 1kg
Stack limit: 1
IDs
Item ID: IronAxeItem
ID Number: 911
Tags
Tool, Logging, Tools, Object, Product,



Coal
Block Items
Coal Icon.png
Description
A combustible mineral which when used as a fuel provides lots of energy but generates lots of pollution.
General
Carried in: Hands
Weight: 4kg
Stack limit: 20
Fuel energy: 20,000J
Can back a currency
IDs
Item ID: CoalItem
ID Number: 270
Tags
Fuel, Currency, Coal, Burnable Fuel, Excavatable, Block, Object, Ingredient,
World Object
Coal Placed.png
Placement
Room Material: 0
NoImage.png



Brick
Block Items
Brick Icon.png
Description
Durable building material made from fired blocks and mortar.
General
Created at: Kiln
Used at: Anvil, Assembly Line, Kiln, Masonry Table, Research Table
Carried in: Hands
Weight: 10kg
Stack limit: 20
Can back a currency
IDs
Item ID: BrickItem
ID Number: 267
Tags
Currency, Constructable, Block, Object, Product, Ingredient,
World Object
Brick Placed.png
Placement
Room Material: 2
Brick Form.png



Cooking Skill Scroll
Skill Scrolls
Description
Teaches Cooking
General
Carried in: Backpack
Weight: 0kg
Stack limit: 100
IDs
Item ID: CookingSkillScroll
ID Number: 856
Tags
Skill Scrolls, Object,



Trousers
AvatarPart
Trousers Icon.png
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: 0.1kg
Stack limit: 1
IDs
Item ID: TrousersItem
ID Number: 412
Tags
Clothes, Object, Product,



Stockpile
World Object Items
Stockpile Icon.png
Description
Designates a 5x5x5 area as storage for large items.
General
Created at: Workbench
Carried in: Backpack
Weight: 0kg
Stack limit: 100
IDs
Item ID: StockpileItem
ID Number: 116
Tags
World Object, Object, Storage Container, Product,
World Object
Stockpile Placed.png
Placement
Dimensions (X,Y,Z): 5 X 5 X 5
Storage
Inventory Slots: 25
Inventory Max Weight: Unlimited



Wood Cart
World Object Items
WoodCart Icon.png
Description
Small cart for hauling small loads.
General
Created at: Wainwright Table
Carried in: Backpack
Weight: 15kg
Stack limit: 100
IDs
Item ID: WoodCartItem
ID Number: 953
Tags
World Object, Object, Storage Container, Vehicles, Product,
World Object
WoodCart Placed.png
Placement
Vehicle/Mobile Object: Yes
Storage
Inventory Slots: 12
Inventory Max Weight: 2,100kg



Blast Furnace
World Object Items
BlastFurnace Icon.png
Description
A superior replacement for the bloomery that can produce steel.
General
Created at: Assembly Line
Carried in: Backpack
Weight: 0kg
Stack limit: 1
IDs
Item ID: BlastFurnaceItem
ID Number: 1036
Tags
World Object, Object, Polluter, Crafting Table, Storage Container, Housing Objects, Product,
World Object
BlastFurnace Placed.png
Placement
Dimensions (X,Y,Z): 3 X 5 X 3
Housing
Room Category: Industrial
ALL ROOM VALUE LOST
Fuel
Fuels Used: Burnable Fuel Tag
Liquid/Gas
Input: Water at 0.3L,
Output: Smog at 1L, Sewage at Rate of InputL,



Water
Block Items
Water Icon.png
Description
Water is an abundant resource. Fresh water can be found in rivers and lakes while salt water is found in the ocean. In addition to being a home to fish, water is needed for a variety of objects to function.
General
Carried in: Hands
Weight: 0kg
Stack limit: 10
IDs
Item ID: WaterItem
ID Number: 83
Tags
Liquid, Block, Object,
World Object
NoImage.png
Placement
Room Material: 0
NoImage.png