Template:Infobox Item

From ECO - English Wiki


Documentation[edit]

{{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]

Parameters[edit]

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

Infobox Properies[edit]

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]

Elk Carcass
Items
ElkCarcass Icon.png
Description
A dead elk.
General
Carried in: Backpack
Weight: 3 kg
Stack limit: 100
IDs
Item ID: ElkCarcassItem
ID Number: 541
Tags
Medium Carcass, Carcass, Animal, Ingredient



Charcoal
Items
Charcoal Icon.png
Description
A black residue, consisting of carbon and any remaining ash.
General
Carried in: Backpack
Weight: 1 kg
Stack limit: 100
Fuel energy: 20000 J
Used as Currency: Yes
IDs
Item ID: CharcoalItem
ID Number: 525
Tags
Fuel, Coal, Burnable Fuel, Ingredient, Product



Huckleberries
Food
Huckleberries Icon.png
Description
A handfull of small wild berries. I'm your huckleberry.
General
Calories: 150.0
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.01 kg
Stack limit: 100
Improve Gathering: Gathering
IDs
Item ID: HuckleberriesItem
ID Number: 456
Tags
Crop, Fruit, Raw Food, Food, Object, Ingredient



Prepared Meat
Food
PreparedMeat Icon.png
Description
Carefully butchered meat, ready to cook.
General
Calories: 600.0
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.5 kg
Stack limit: 100
IDs
Item ID: PreparedMeatItem
ID Number: 477
Tags
Food, Object, Ingredient, Product



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



Bloomery
World Object Items
Bloomery Icon.png
Description
A chimney-shaped furnace for smelting ores.
General
Carried in: Backpack
Weight: 0.00kg
Stack limit: 1
IDs
Item ID: BloomeryItem
ID Number: 975
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
Tags
World Object, Object, Crafting Table, Storage Container, Housing Objects, Product



Bookshelf
World Object Items
Bookshelf Icon.png
Description
A place to store knowledge and information; leads to the town hall.
General
Carried in: Backpack
Weight: 0.00kg
Stack limit: 100
IDs
Item ID: BookshelfItem
ID Number: 976
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 %: 0.5
Storage
Inventory Slots: 8
Inventory Max Weight: Unlimited
Tags
Housing, World Object, Object, Housing Objects, Storage Container, Product



Wind Turbine
World Object Items
WindTurbine Icon.png
Description
Generates electrical power from the wind.
General
Carried in: Backpack
Weight: 0.00kg
Stack limit: 100
IDs
Item ID: WindTurbineItem
ID Number: 1284
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: 30 m
Energy Produced: 1000 J
Energy Used: 0 J
Tags
World Object, Object, Housing Objects, Product



Iron Axe
Tools
IronAxe Icon.png
Description
A broadheaded axe useful for felling trees.
General
Carried in: Backpack
Weight: 1 kg
Stack limit: 1
IDs
Item ID: IronAxeItem
ID Number: 852
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: 20 kg
Stack limit: 20
Fuel energy: 20000 J
Used as Currency: Yes
IDs
Item ID: CoalItem
ID Number: 265
World Object
Coal Placed.png
Placement
Room Material: Tier 0
NoImage.png
Tags
Fuel, Coal, Burnable Fuel, Block, Object, Ingredient



Brick
Block Items
Brick Icon.png
Description
Durable building material made from fired blocks and mortar.
General
Carried in: Hands
Weight: 10 kg
Stack limit: 20
Used as Currency: Yes
IDs
Item ID: BrickItem
ID Number: 262
World Object
Brick Placed.png
Placement
Room Material: Tier 2
Brick Form.png
Tags
Constructable, Block, Object, Product, Ingredient



Cooking Skill Scroll
Skill Scrolls
NoImage.png
Description
Teaches Cooking
General
Carried in: Backpack
Weight: 0.00kg
Stack limit: 100
IDs
Item ID: CookingSkillScroll
ID Number: 797
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
Carried in: Backpack
Weight: 0.1 kg
Stack limit: 1
IDs
Item ID: TrousersItem
ID Number: 366
Tags
Clothes, Object, Product



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



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



Blast Furnace
World Object Items
BlastFurnace Icon.png
Description
A superior replacement for the bloomery that can produce steel.
General
Carried in: Backpack
Weight: 0.00kg
Stack limit: 1
IDs
Item ID: BlastFurnaceItem
ID Number: 974
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
Liquid/Gas
Input: Water at 0.3 L
Output: Smog at 1 L, Sewage at Rate of Input L
Tags
World Object, 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: 0.00kg
Stack limit: 10
IDs
Item ID: WaterItem
ID Number: 75
World Object
NoImage.png
Placement
Room Material: Tier 0
NoImage.png
Tags
Liquid, Block, Object