Template:ItemBox

[[File:Bag {{{1}}} SV Sprite.png|{{{1}}}|60px|link={{{1}}}]]
[[:{{{1}}}|{{{1}}}]]

Template documentation
Note: portions of the template sample may not be visible without values provided.

This template is used on Browse:Items to create the item image boxes. It is used within {{ColorBox}} and {{ContentGrid}} templates to set the correct width.

Syntax

The following syntax is used (see TemplateData below for full parameters):

{{ItemBox| 1 | 2 | 3 | g= | s= | l= | b= | p= | h= | css= }}

TemplateData

This template is used on Browse:Items to create the item image boxes.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Bag sprite1

The bag sprite image to appear

Example
Potion
Stringrequired
Item link2

The item / category to link to (defaults to match "Bag sprite") (Don't include ":")

Example
Category:HP-restoring items
Stringsuggested
Item link text3

(Optional) Link text to display

Example
HP-restoring items
Stringsuggested
Gameg

Which game the bag sprite should come from (for default sprite, type " ")

Suggested values
BDSP LA III
Default
SV
Example
LA
Stringoptional
Sizes

Bag sprite size (Must include "px")

Default
60px
Example
50px
Stringoptional
Line heightl

(Optional) Text line height (used if the text will fall over multiple lines)

Stringoptional
Backgroundb

Box background color (Don't include "#")

Default
FFF
Example
CCC
Stringoptional
Paddingp

Padding of the box (Must include "px")

Default
0
Example
5px
Stringoptional
Heighth

Height of the box (Must include "px")

Default
60px
Example
70px
Stringoptional
Other CSScss

Any other CSS to be added

Example
border: 1px solid #000;
Stringoptional