Template:Infobox item custom
Usage
To use this template in an article, copy the template below, then paste the template into an article.
All parameters are optional – those you do not populate with data will not show up in the infobox when the article is saved.
It is strongly advised to only include variables that are relevant to the specific item in question, i.e. parameters that do not display as false or 0.
name | ||||||
---|---|---|---|---|---|---|
| ||||||
General | ||||||
Category | category | |||||
Encumbrance | weight | |||||
Main function | function | |||||
variant1 | ||||||
func1 | data1 | |||||
func2 | data2 | |||||
func3 | data3 | |||||
variant2 | ||||||
func1 | data4 | |||||
func2 | data5 | |||||
func3 | data6 | |||||
variant3 | ||||||
func1 | data7 | |||||
func2 | data8 | |||||
func3 | data9 | |||||
Technical details | ||||||
Item ID | Item IDs |
{{Infobox item custom |name= |image= |image_width= |alternate_image= |alternate_name= |alternate_link= |alternate_image2= |alternate_name2= |alternate_link2= |alternate_image3= |alternate_name3= |alternate_link3= |alternate_image4= |alternate_name4= |alternate_link4= |alternate_image5= |alternate_name5= |alternate_link5= |category= |weight= |function= |tool= |func1= |func2= |func3= |variant1= |data1= |data2= |data3= |variant2= |data4= |data5= |data6= |variant3= |data7= |data8= |data9= |item_id = }}
Parameters
General
- display_name
- The display name of the item as it appears in-game. Leaving blank will display the pagename.
- name_colour
- The background colour for the display name. Codes can be found at Template:Infobox nc.
- name_text_colour
- The text colour for the display name. Codes can be found at Template:Infobox nc.
- image
- An image of the icon displayed at 128px.
- alternate_image
- An alternate image displayed at 32px. Can be an empty, packaged, open or any other variant.
- alternate_name
- The name of the alternate item image. Leaving blank will display no name when the image is hovered over.
- alternate_link
- An optional link to the alternate image page. Leaving blank will have no link.
- category
- The in-game category the item is displayed as in the inventory. Usually "Item".
- weight
- The base weight of the item.
- function
- The item's main function. (remove if value is empty)
- class_name
- The item's class name.
Part varaints
- varriant(1 to 3)
- This is a header and should be the full in-game display name of the item, e.g. Dirty Bandage. (remove if value is empty)
- func(1 to 3)
- The item's parameters, such as bandage power and max units. '(remove if value is empty)
- data(1 to 9)
- The value for the given variant. (remove if value is empty)
Editors can experiment in this template's sandbox (create)