Jump to content

Template:NavCard

From Creopedia

This documentation is transcluded from Template:NavCard/doc.

This template renders a navigation card component.

Images are scaled with nearest-neighbor interpolation by default, which keeps pixel art crisp. For smooth, high-resolution artwork this looks blocky — pass smooth=1 to turn it off and request a larger thumbnail.

Usage

{{NavCard|Deor|Creo deor icon.png}}
{{NavCard|Deor|Creo deor icon.png|MOAR evolutions}}
{{NavCard|Deor|Creo deor icon.png|MOAR evolutions|bgImage=Main page creo navcard.webp|bgImageSize=240px}}
{{NavCard|Creo|Main page creo icon.webp|smooth=1}}
{{NavCard|Creo|Main page creo icon.webp|smooth=1|imageSize=96px}}

TemplateData

Render a navigation card

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Page name1

Page name to link to

Page namerequired
Image2

Image to be used. The image should have a transparent background.

Filerequired
Label3

Label text

Stringsuggested
Smooth imagesmooth

Set to any value to disable pixelated (nearest-neighbor) scaling and request a larger thumbnail. Use for smooth, high-resolution artwork; leave unset for pixel art.

Example
1
Stringoptional
Image sizeimageSize

Thumbnail size to request. Defaults to 48px, or 160px when smooth is set. The card displays the image at 80px tall, so a value of 160px keeps it crisp on high-density screens.

Example
160px
Stringoptional