Template:Infobox Item

From Eco Wiki
This is the approved revision of this page, as well as being the most recent.
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
General
Created at: N/A
Carried in: Backpack
Weight: 2kg
Stack limit: 100
IDs
Item ID: ElkCarcassItem
ID Number: 205



Charcoal
Items
Charcoal Icon.png
General
Created at: Blast Furnace
Carried in: Backpack
Weight: 1kg
Stack limit: 100
Fuel energy: 20000J
Used as Currency: Yes
IDs
Item ID: CharcoalItem
ID Number: 191



Huckleberries
Food
Huckleberries Icon.png
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.01kg
Stack limit: 100
Improve Gathering: Forest Forager
IDs
Item ID: HuckleberriesItem
ID Number: 137



Prepared Meat
Food
PreparedMeat Icon.png
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.5kg
Stack limit: 100
IDs
Item ID: PreparedMeatItem
ID Number: 150



Workbench
World Object Items
Workbench Icon.png
General
Created at: Campsite
Carried in: Backpack
Weight: 0.00kg
Stack limit: 100
IDs
Item ID: WorkbenchItem
ID Number: 699
World Object
Workbench Placed.png
Placement
Dimensions (X,Y,Z): 2 X 2 X 1



Bloomery
World Object Items
Bloomery Icon.png
General
Created at: Kiln
Carried in: Backpack
Weight: 0.00kg
Stack limit: 100
IDs
Item ID: BloomeryItem
ID Number: 580
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
General
Created at: Sawmill
Carried in: Backpack
Weight: 0.00kg
Stack limit: 100
IDs
Item ID: BookshelfItem
ID Number: 581
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



Wind Turbine
World Object Items
WindTurbine Icon.png
General
Created at: Robotic Assembly Line
Carried in: Backpack
Weight: 0.00kg
Stack limit: 100
IDs
Item ID: WindTurbineItem
ID Number: 692
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: 30m
Energy Produced: 1000J
Energy Used: 0J



Iron Axe
Tools
IronAxe Icon.png
General
Created at: Anvil
Carried in: Backpack
Weight: 1kg
Stack limit: 1
Used as Currency: Yes
IDs
Item ID: IronAxeItem
ID Number: 537



Coal
Block Items
Coal Icon.png
General
Created at: N/A
Carried in: Hands
Weight: 30kg
Stack limit: 20
Fuel energy: 20000J
Used as Currency: Yes
IDs
Item ID: CoalItem
ID Number: 195
World Object
NoImage.png
Placement
NoImage.png



Brick
Block Items
Brick Icon.png
General
Created at: Kiln
Carried in: Hands
Weight: 10kg
Stack limit: 20
Used as Currency: Yes
IDs
Item ID: BrickItem
ID Number: 189
World Object
NoImage.png
Placement
Brick Form.png



Cooking Skill Book
Skill Books
CookingSkillBook Icon.png
General
Created at: Research Table
Carried in: Backpack
Weight: 0.00kg
Stack limit: 1
IDs
Item ID: CookingSkillBook
ID Number: 387



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



Trousers
AvatarPart
Trousers Icon.png
General
Created at: Tailoring Table
Carried in: Backpack
Weight: 0.1kg
Stack limit: 1
IDs
Item ID: TrousersItem
ID Number: 77



Asphalt Ramp
Road Items
AsphaltRamp Icon.png
General
Created at: Wainwright Table
Carried in: Backpack
Weight: 0.00kg
Stack limit: 100
IDs
Item ID: AsphaltRampItem
ID Number: 703
Road Object
AsphaltRamp Placed.png