Template:Item Infobox
跳到导航
跳到搜索
{{#if:
|
{{{content}}}
|- Overview
This is the item infobox template. It can be used on all items.
- Usage
{{Item Infobox |crafting = 2 [[Gold Nugget]]s, 4 [[Twig]] |researchCost = 200 |researchValue= 35 |damage = 25 per strike |durability = 0.25% lost per strike. }}
on Luxury Axe page would yield:
{{Item Infobox |hunger = 10 |health = 0 |droppedBy = Naturally occurring, 32% from [[Farm Plot]], [[Speedy Farm Plot]], or [[Turbo Farm Plot]] }}
on Carrot page would yield:
- Syntax
- Use the following code as reference when using this template. Note that one does not need all of these parameters in order to use this template.
{{Item Infobox |name= |image= |description= |ingredient1= |multiplier1= |ingredient2= |multiplier2= |ingredient3= |multiplier3= |numtogive= |tab= |tier= |hpRestored= |hungerRestored= |sanityRestored= |cooktime= |priority= |spoil= |damage= |damageAsWes= |damageAsWigfrid= |damageAsWolfgang= |waterResistance= |durability= |perk= |burnTime= |foodValue= |droppedBy= |soldBy= |stack= |spawnCode= }}
- Notes
- All of this template's parameters are optional. In addition, certain parameters can only have certain values.
- The
image
will always be of 64x64px size and use the Inventory Slot image as background image. - The
ingredient
andmultiplier
parameters must correspond to each number. For instance, 5 Logs and 3 Flint would be expressed as
[...] ingredient1= Log multiplier1= 5 ingredient2= Flint multiplier2= 3 [...]
numtogive
is the amount of items produced in a single crafting action. Typically used for walls and similar items.tab
must correspond to one of the Tabs in Don't Starve or its expansions. It may also be required to be capitalized depending on the icon that corresponds to it.damageAsWes
,damageAsWigfrid
, anddamageAsWolfgang
overwrite the value computed automatically based ondamage
.tier
must be a number between 0-11 included.droppedBy
must be images with full code (e.g.[[File:Placeholder.png|25px|link=]]
)
分类:
- Articles with missing item infobox stack value
- Infobox missing spawncodes
- 模板