Aktuelle Version |
Dein Text |
Zeile 1: |
Zeile 1: |
| <includeonly> | | <noinclude><!-- See [[Template:Infobox_Object]] for object items (furniture, crafting stations) --> |
| {{#invoke:Infobox_Item|ItemMain}}
| |
| </includeonly>
| |
|
| |
|
| <noinclude>
| |
| == Documentation == | | == Documentation == |
| <pre>
| |
| {{Infobox_Item|name = 'Item name'}}
| |
| </pre>
| |
|
| |
| 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:
| |
| *[[Modul:Infobox_Item]]
| |
| *[[Modul:ItemData]]
| |
| *[[Modul: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:
| |
| <pre> | | <pre> |
| |name = The name of an item. | | {{Infobox_Item |
| |group = Item group | | |name = Item name |
| (Colours for groups:
| | |type = Item category/type (If category=WorldObject then Object; If group=Items then Item; If group=Food then Food; If Group=Tools then Tool; If Group=Block Items then Block) |
| #4b9130 for Food;
| | |subtype = Resource, Seed, Crafting Station, Storage, Furniture |
| #517ab2 for Items, World Object Items, Tools, Block Items, AvatarPart, Road Items;
| | |color = Item icon color (#4b9130 for Food; #517ab2 for Item, Object, Tool, Block; af8d33 for Skill Books, Skill Scrolls) |
| #af8d33 for Skill Books, Skill Scrolls,)
| | |icon = ItemName_Icon.png |
| |image = ItemName_Icon.png (Game Icon) | | |created = Crafting station(s) crafted at, or "Resource" |
| General
| | |calories = If type=Food then x,xxx otherwise hide |
| |created = Crafting station(s) crafted at, or N/A | | |carbs = If type=Food then x.x otherwise hide (print 0.0 if no carbs) |
| |calories = If group=Food then x,xxx otherwise hide | | |protein = If type=Food then x.x otherwise hide (print 0.0 if no protein) |
| |carbs = If group=Food then x.x otherwise hide (print 0.0 if no carbs) | | |fat = If type=Food then x.x otherwise hide (print 0.0 if no fat) |
| |protein = If group=Food then x.x otherwise hide (print 0.0 if no protein) | | |vitamins = If type=Food then x.x otherwise hide (print 0.0 if no vitamins) |
| |fat = If group=Food then x.x otherwise hide (print 0.0 if no fat) | | |carried = Backpack, Hands, Shovel |
| |vitamins = If group=Food then x.x otherwise hide (print 0.0 if no vitamins) | | |weight = If Has Value then xkg; If nil then 0kg |
| |nutritiondensity = If group=Food then xcal otherwise hide
| | |stacklimit = 1, 10, 100 |
| |carried = Backpack, Hands | | |fuel = If Has Value then x,xxxJ otherwise hide |
| |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 | | |itemid = ExampleItem |
| |itemidnumber = Item ID Number | | |itemidnumber = type ID |
| </pre>
| | |objectid = Object ID |
| If .footprint (Dimension) ~= nil, or group == 'Block Item' it will generate the following:
| | |recipeid = recipe ID |
| <pre>
| | }} |
| 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
| |
| </pre>
| |
| If .mobile ~= nil it will generate the following:
| |
| <pre>
| |
| 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
| |
| </pre>
| |
| If .itemTable.group == 'Road Items' it will generate the following:
| |
| <pre>
| |
| Road Object
| |
| |image = ItemName_Placed.png
| |
| </pre> | | </pre> |
|
| |
|
| |
|
| ''Note:'' Put the tag between <code><noinclude> </noinclude></code> tags for outdated transcluded pages. | | ''Note:'' Put the tag between <code><noinclude> </noinclude></code> tags for outdated transcluded pages. |
|
| |
|
| ==Examples== | | {{Infobox_Item |
| | | |name = Name |
| {{Infobox_Item|name = Elchkadaver}}
| | |type = Type |
| {{Infobox_Item|name = Holzkohle}}
| | |subtype = Subtype |
| | | |color = #517ab2 |
| {{Infobox_Item|name = Heidelbeeren}}
| | |icon = Paper.png |
| {{Infobox_Item|name = Vorbereitetes Fleisch}}
| | |created = [[Workbench]] |
| | | |calories = 150 |
| {{Infobox_Item|name = Werkbank}}
| | |carbs = 0.0 |
| {{Infobox_Item|name = Brennofen}}
| | |protein = 0.0 |
| {{Infobox_Item|name = Bücherregal}}
| | |fat = 0.0 |
| | | |vitamins = 0.0 |
| {{Infobox_Item|name = Windrad}}
| | |carried = [[Backpack]] |
| | | |weight = 10.00kg |
| {{Infobox_Item|name = Eisenaxt}}
| | |stacklimit = 100 |
| | |fuel = 2,000J |
| | |itemid = DerpItem |
| | |itemidnumber = 123 |
| | |objectid = DerpObject |
| | |recipeid = DerpRecipe |
| | }} |
|
| |
|
| {{Infobox_Item|name = Kohle}}
| | [[Category:Infobox Templates]] |
| {{Infobox_Item|name = Ziegel}}
| |
| | |
| {{Infobox_Item|name = Fertigkeitsschriftrolle: Kochen}}
| |
| | |
| {{Infobox_Item|name = Hosen}}
| |
| {{Infobox_Item|name = Lager}}
| |
| {{Infobox_Item|name = Holzkarren}}
| |
| {{Infobox_Item|name = Hochofen}}
| |
| | |
| {{Infobox_Item|name = Wasser}}
| |
| [[Kategorie:Infobox Vorage]] | |
| [[Kategorie:Vorlagen]] | | [[Kategorie:Vorlagen]] |
| | | </noinclude><includeonly>{{#invoke:Infobox|ItemMain}}</includeonly> |
| </noinclude> | |