Template:Infobox item custom/doc: Difference between revisions

From PZwiki
mNo edit summary
mNo edit summary
Line 14: Line 14:
|name_text_colour=name_text_colour
|name_text_colour=name_text_colour
|image=image.png
|image=image.png
|image_width=200px
|alternate_image=image.png{{!}}32px
|alternate_image=image.png{{!}}32px
|alternate_name=alternate_name
|alternate_name=alternate_name
|alternate_link=
|alternate_link=
|alternate_image2=image.png{{!}}32px
|alternate_name2=alternate_name2
|alternate_link2=
|alternate_image3=image.png{{!}}32px
|alternate_name3=alternate_name3
|alternate_link3=
|alternate_image4=image.png{{!}}32px
|alternate_name4=alternate_name3
|alternate_link4=
|alternate_image5=image.png{{!}}32px
|alternate_name5=alternate_name3
|alternate_link5=
|category=category
|category=category
|weight=weight
|weight=weight
Line 43: Line 56:
|name_text_colour=
|name_text_colour=
|image=
|image=
|image_width=
|alternate_image=
|alternate_image=
|alternate_name=
|alternate_name=
|alternate_link=
|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=
|category=
|weight=
|weight=

Revision as of 15:44, 7 March 2019

Notebook.png
This is a documentation subpage for Template:Infobox item custom.
It contains usage information and other content that is not part of the original template page.

This template is used to create a customisable infobox for items.

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
{{{display_name}}}
alternate_name alternate_name2 alternate_name3 alternate_name3 alternate_name3
General
Category category
Encumbrance
Heavy Load
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 class_name
{{Infobox item custom
|name=
|name_colour=
|name_text_colour=
|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=
|class_name=
}}


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 120px. A 120px variant should be used if it has one.
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)