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: 968
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
IDs
Item ID: CharcoalItem
ID Number: 2177
Tags
Fuel, 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: 989
Tags
Crop, Harvestable, Fruit, Raw Food, Food, 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: 2872
Tags
Food, Ingredient, Product,



Workbench
World Object
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: 2827
Tags
World Object, Crafting Table, Product,



Bloomery
World Object
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: 3104
Tags
World Object, Crafting Table, Storage Container, Housing Objects, Product,



Bookshelf
World Object
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: 130
Tags
Housing, World Object, Housing Objects, Storage Container, Product,



Wind Turbine
World Object
WindTurbine Icon.png
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: 0kg
Stack limit: 100
IDs
Item ID: WindTurbineItem
ID Number: 912
Tags
World Object, Housing Objects, Product,



Iron Axe
Tools
IronAxe Icon.png
Description
None
General
Created at: Anvil
Carried in: Backpack
Weight: 1kg
Stack limit: 1
IDs
Item ID: IronAxeItem
ID Number: 217
Tags
Tool, Logging, Tools, Product,



Coal
Block Items
Coal Icon.png
Description
A combustible mineral that, 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
IDs
Item ID: CoalItem
ID Number: 1472
Tags
Fuel, Coal, Burnable Fuel, Excavatable, Block, 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, Research Table
Carried in: Hands
Weight: 10kg
Stack limit: 20
IDs
Item ID: BrickItem
ID Number: 2835
Tags
Constructable, Block, 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: 2698
Tag
Skill Scrolls,



Trousers
Avatar Part
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: 2433
Tags
Clothes, Product,



Stockpile
World Object
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: 3486
Tags
World Object, Storage Container, Product,



Wood Cart
World Object
WoodCart Icon.png
Description
Small cart for hauling small loads.
General
Created at: Wainwright Table
Carried in: Backpack
Weight: 15kg
Stack limit: 1
IDs
Item ID: WoodCartItem
ID Number: 1650
Tags
World Object, Storage Container, Vehicles, Ingredient, Product,



Blast Furnace
World Object
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: 2343
Tags
World Object, Polluter, Crafting Table, Storage Container, Housing Objects, Product,



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: 476
Tags
Liquid, Block,
World Object
NoImage.png
Placement
Room Material: 0
NoImage.png