Template:NavCard
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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Page name | 1 | Page name to link to | Page name | required |
| Image | 2 | Image to be used. The image should have a transparent background. | File | required |
| Label | 3 | Label text | String | suggested |
| Smooth image | smooth | 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.
| String | optional |
| Image size | imageSize | 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.
| String | optional |