Template:CharacterBox

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
link={{{3}}}
[[:{{{3}}}|{{{3}}}]]



Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)

This template is used on Browse:Characters to create the character 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):

{{CharacterBox| 1 | 2 | 3 | 4 | l= | b= | p= | h= | css= }}

TemplateData

Character boxes used within Browse:Characters

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Image1

Image name (include file extension, don't include "File:")

Default
Ash JN.png
Example
Ash JN.png
Filerequired
Image size2

Size of the image (Must include "px")

Default
80px
Example
80px
Stringrequired
Link3

The article that the image links to.

Example
Ash Ketchum
Page namerequired
Link label4

(Optional) Text to be displayed instead of article title

Stringoptional
Line heightl

(Optional) Sets the line height of the link text (use if the link falls over multiple lines)

Stringoptional
Backgroundb

The background color of the box (don't include "#")

Default
FFF
Example
E0F2B6
Stringsuggested
Paddingp

The padding of the box (Must include "px")

Default
5px
Example
2px 0
Stringsuggested
Heighth

The height of the box (Must include "px")

Default
50px
Example
60px
Stringsuggested
Other CSScss

Any other CSS to include

Example
border: 1px solid #000;
Stringoptional