Template:Infobox Item

From Eco Wiki
Jump to: navigation, search


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. The Infobox_Item will generate the following information, using the Module:Infobox, Module:Itemdata and Module:CraftingRecipes.

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


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

Examples

Elk Carcass
Items
ElkCarcass Icon.png
Description
A dead elk.
General
Created at: N/A
Carried in: Backpack
Weight: 2 kg
Stack limit: 100
IDs
Item ID: ElkCarcassItem
ID Number: 373



Charcoal
Items
Charcoal Icon.png
Description
A black residue, consisting of carbon and any remaining ash.
General
Created at: Blast Furnace
Carried in: Backpack
Weight: 1 kg
Stack limit: 100
Fuel energy: 20000 J
Used as Currency: Yes
IDs
Item ID: CharcoalItem
ID Number: 362



Huckleberries
Food
Huckleberries Icon.png
Description
A handfull of small wild berries. I'm your huckleberry.
General
Created at: N/A
Calories: 80.0
Nutrients: Carbs: 2.0
Protein: 0.0
Fat: 0.0
Vitamins: 6.0
Nutrition Density: 10.0 per 100 cals
Carried in: Backpack
Weight: 0.01 kg
Stack limit: 100
Improve Gathering: Gathering
IDs
Item ID: HuckleberriesItem
ID Number: 307



Prepared Meat
Food
PreparedMeat Icon.png
Description
Carefully butchered meat, ready to cook.
General
Created at: Butchery Table
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: 323



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: 0.00kg
Stack limit: 100
IDs
Item ID: WorkbenchItem
ID Number: 791
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: 0.00kg
Stack limit: 100
IDs
Item ID: BloomeryItem
ID Number: 666
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: Log, Lumber, Charcoal, Arrow, Board, Coal



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: 0.00kg
Stack limit: 100
IDs
Item ID: BookshelfItem
ID Number: 667
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.7
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: 0.00kg
Stack limit: 100
IDs
Item ID: WindTurbineItem
ID Number: 783
World Object
NoImage.png
Placement
Dimensions (X,Y,Z): 3 X 10 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



Iron Axe
Tools
IronAxe Icon.png
Description
A broadheaded axe useful for felling trees.
General
Created at: Anvil
Carried in: Backpack
Weight: 1 kg
Stack limit: 1
Used as Currency: Yes
IDs
Item ID: IronAxeItem
ID Number: 622



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
Created at: N/A
Carried in: Hands
Weight: 30 kg
Stack limit: 20
Fuel energy: 20000 J
Used as Currency: Yes
IDs
Item ID: CoalItem
ID Number: 179
World Object
NoImage.png
Placement
Room Material: Tier 0
NoImage.png



Brick
Block Items
Brick Icon.png
Description
Durable building material made from fired blocks and mortar.
General
Created at: Kiln
Carried in: Hands
Weight: 10 kg
Stack limit: 20
Used as Currency: Yes
IDs
Item ID: BrickItem
ID Number: 177
World Object
NoImage.png
Placement
Room Material: Tier 2
Brick Form.png



Cooking Skill Book
Skill Books
CookingSkillBook Icon.png
Description
Creates Cooking Skill Scrolls that teach Cooking
General
Created at: Research Table
Carried in: Backpack
Weight: 0.00kg
Stack limit: 1
IDs
Item ID: CookingSkillBook
ID Number: 566



Cooking Skill Scroll
Skill Scrolls
NoImage.png
Description
Teaches Cooking
General
Created at: N/A
Carried in: Backpack
Weight: 0.00kg
Stack limit: 100
IDs
Item ID: CookingSkillScroll
ID Number: 567



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.1 kg
Stack limit: 1
IDs
Item ID: TrousersItem
ID Number: 236



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: 0.00kg
Stack limit: 100
IDs
Item ID: StockpileItem
ID Number: 759
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: 15 kg
Stack limit: 100
IDs
Item ID: WoodCartItem
ID Number: 657
World Object
NoImage.png
Placement
Vehicle/Mobile Object: Yes
Storage
Inventory Slots: 12
Inventory Max Weight: 2000 Kg



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: 0.00kg
Stack limit: 100
IDs
Item ID: BlastFurnaceItem
ID Number: 665
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: Log, Lumber, Charcoal, Arrow, Board, Coal
Liquid/Gas
Input: Water at 0.3 L
Output: Smog at 1 L, Sewage at Rate of Input L



Water
Block Items
Water Icon.png
Description
None
General
Created at: N/A
Carried in: Hands
Weight: 0.00kg
Stack limit: 10
IDs
Item ID: WaterItem
ID Number: 795
World Object
NoImage.png
Placement
Room Material: Tier 0
NoImage.png



Asphalt Ramp
Road Items
AsphaltRamp Icon.png
Description
4 x 1 Asphalt Ramp.
General
Created at: Wainwright Table
Carried in: Hands
Weight: 60 kg
Stack limit: 10
IDs
Item ID: AsphaltRampItem
ID Number: 799
Road Object
AsphaltRamp Placed.png