Template:Item

From Ylvapedia
Documentation icon Template documentation[view] [edit] [history] [purge]

*Note* Not all item images are uploaded, so many are not displayed.

Template for displaying item images, item names, etc.This template calls Module:Item, Module:Item/IDAliases and Module:Item/Materials.

template parameter
Parameter Type Description
1 String Item name. if img has no value, this value will be the image file name.
Furthermore, if you continue by entering "@material name", the material will be converted to its ID, which will then be added to the end of the image file name.
2 or x Number A number enclosed in parentheses () after the item name. It can be a string, but mainly refers to the number of items.
size String Specifies the image size; units of px are also required. Default:32x32px
ext String Specify the extension.Default:png
img String Specify an image.
link String Specify the link destination. Don't forget namespace, etc. Specifying no, N, or false will not link.
v Number Specify a variation of the item image of the same name.
id String Item id specifies the variation of image.
grid String Specify 1,yes,Y,true to change the way it is displayed.

サンプル

result syntax description
MilkMilk
{{Item|Milk}}
 Basic type.
LogLog carbon
{{Item|Log@carbon}}
 Adding “@material name to Parameter 1 will result in a material image of the item before @. However, the image will only be displayed if it exists.
CabbageCabbage(2)
{{Item|Cabbage|2}}
 By entering 1 for parameter 2 or x, 1 is enclosed in ().
Pot of HoneyPot of Honey
{{Item|Pot of Honey|size=64px|link=Elin:Bee}}
 Set the image size to 64px and link to 'Elin:Bee'.
 Note that the larger the image, the larger the margins.
Pile of BreadPile of Bread(2)
{{Item|Pile of Bread|x=2|link=no}}
 If 'no' is entered for the link parameter in the basic type, the image and item name will not be linked.
Pile of BreadPile of Bread
{{Item|Pile of Bread|link=no|img=Elin_Item_Sprite_Pile of Bread 2}}
 The image can be displayed by entering the file name without the file extension in the img parameter.
The priority of the image is img>id>v>name.
Pile of BreadPile of Bread
{{Item|Pile of Bread|v=3}}
 Display image 3 of a pile of bread. If name substitution is possible, the image is displayed.
Burnable GarbageBurnable Garbage
{{Item|Burnable Garbage|grid=1}}
 Change the display method.
Bottle of AleBottle of Ale
{{Item|Bottle of Ale|id=50}}
 Automatic determination of images with the Bottle of Ale id of 50.