Template:Infobox

From Dark and Light Wiki
Jump to: navigation, search
{{{name}}}

No image yet


Template-info.png Documentation

This is a custom tailored infobox with several fields. Some generic, some more elaborate.

Most sections have their own Template, but render within the Infobox. Edit each section separately.

Usage

{{Infobox

Main Infobox

	Images -- rendered via Template:Infobox img section

	| image     = Uses [[File:]]
	| imgcrop   = Uses {{Css Image crop}}

	| weight    = Weight Number -- Displays as an icon next to item image.
	| dmg       = Damage Number -- Displays as an icon next to item image.
	| dur       = Durability Number -- Displays as an icon next to item image.

Details Header

| name      = Always write the correct name with correct capitalization.
| tools     = Tools used to harvest this item / Only needed for Resource types.
| knowledge = Which knowledge is this -- Adventuring, Magic or Architecture
| source    = How this item is obtained ex. Crafting / Workbench
| category  = Category of item ex. Weapons
| type      = Subcategory of item ex. Bows
| type name = Name of type to display ex. Bow
| stack     = Stack size Number
| slots     = How many items can be stored inside of this structure
| mana cost = Amount of mana used per use/cast
| ar        = Armor Resist provided by this item
| mr        = Magic Resist provided by this item
| cold      = Cold Resist provided by this item or structure
| heat      = Heat Resist provided by this item or structure
| slot      = Equip slot
| ammo      = Ammo used by this item or structure

Information Header

| effect    = Buff/Effect applied by this item
| effect duration = Duration of this effect
| quest     = This item is used in what quest
| desc      = Description

Crafting Infobox -- rendered via Template:Infobox crafting section

| ing       = List of ingredients. Use {{Ingredient}} template

	Prerequisites Header (Child of Crafting Infobox)

	| skill       = What specific skill is this ex. Survival, Melee Crafting, Cooking, etc.
	| rank      = List which specific knowledge
	| pl        = Player Level

Recipe Infobox -- rendered via Template:Infobox recipe section

| recipes   = Items that this item produc. Use {{Item Icon}} template (no description)

Data Infobox -- rendered via Template:Infobox data section

| id        = The item id for console commands ex. 5
| class     = The item class for server configuration
| path      = The relative blueprint path for console commands ex. Mods/DarkAndLight/PrimalEarth/CoreBlueprints/Weapons/Dal_PrimalItem_WeaponPowerBow.Dal_PrimalItem_WeaponPowerBow
}}

Example

Stick
Craftable_druid_staff.jpg

Weight
0.5

Damage
1337.0

Durability
1337.0

Details
Knowledge
Adventurzing
Source
Crafting
Type
Fun
Stack Size
4
Inventory Size
9001
Information
Quest
The one true quest
Description
Describe me
Crafting
Prerequisites
Skill
Staffz (Rank 9)
Player Level
27
Ingredients
Schematics
Icon wood.png
Icon grass.png
Icon fur.png
Data
ID
55
Spawn Command
Cheat GiveItemNum 55 1 0 0
{{Infobox
|name = Stick
|imgcrop = {{Css Image crop
|Image = Craftable_druid_staff.jpg
|cWidth = 115
|cHeight = 115
|oTop = 62
|oLeft = 22
}}

|dmg = 1337.0
|source = [[Crafting]]
|type = Fun
|knowledge = Adventuring
|skill = Staffs
|pl = 27
|rank = 9
|dur= 1337.0
|stack = 4
|slots = 9001
|equip = Pants
|quest = [[The one true quest]]
|desc = Describe me
|ing = {{Ingredient|50|gold coin}}

{{Ingredient|10|mithril ore}}

{{Ingredient|50|fire essence}}
|weight = 0.5
|recipes = {{Item icon|Wood}}

{{Item icon|Grass}}

{{Item icon|Fur}}
|id = 55
|spawn = spawn.item L33t Stick
}}

Related

These templates do not have help documentation as they are purely for rendering the data.

Author

Originally created by Xianith

If you have questions or if this isn't working right, please leave a note here