Jump to content

Template:Card/doc

From Creopedia

This is the documentation page for Template:Card.

This template renders a generic card component. It is commonly used by other templates and modules.

Usage

Basic

{{Card
|title = Monkopod
|description = Loves rolling down grassy hills and eating soft grass in the summer.
}}
Monkopod
Loves rolling down grassy hills and eating soft grass in the summer.

With thumbnail

{{Card
|title = Monkopod
|description = Loves rolling down grassy hills and eating soft grass in the summer.
|thumbnail = Creo monkopod icon.png
}}
Monkopod
Loves rolling down grassy hills and eating soft grass in the summer.

With internal link

{{Card
|title = Monkopod
|description = Loves rolling down grassy hills and eating soft grass in the summer.
|page = Monkopod
}}

With external link

{{Card
|title = Monkopod
|description = Loves rolling down grassy hills and eating soft grass in the summer.
|url = https://example.com
}}

TemplateData

Renders a generic card component

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Titletitle

Card title

Stringsuggested
Descriptiondescription

Card description

Stringsuggested
Thumbnailthumbnail

Page name without namespace for the file

Example
Example.png
Filesuggested
Iconicon

Page name without namespace for the icon. Rendered in a smaller size compared to thumbnail.

Example
Icon.png
Fileoptional
Pagepage

Wiki page to link to

Example
Page
Page namesuggested
URLurl

External link to link to

Example
https://example.com
URLsuggested