Template:Card

Template page
Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Card/doc. Changes can be proposed in the talk page.

{{Card}} is a template for generating a single card. It is typically used with Template:Cards to create a grid or row layout on a page.

Parameters

Content parameters

column
The number of cards which should fit on a single row (max 6)
title
The title text on the card
text
The content text on the card
bottom
The text on the bottom section of the card. Usually used for actionable items like links.
page
The page linked by the button on the card. Only use it when there is only one action.
pagetext
The text displayed on the button on the card
bylinetop
The byline text above the title on the card
bylinebottom
The byline text below the title on the card

Styling parameters

colorbg
The background color of the card
colortext
The text color of the card
colorbyline
The color of the byline on the card
colortitle
The color of the title on the card
colorbgbottom
The background color of the bottom section of the card
colorbottom
The text color in the bottom section of the card
colorbgbutton
The background color of the button on the card, note that due to templating restrictions, the button text will always be grey. Please ensure there is enough contrast between the background color and the text.
== See also ==

This template is a template for generating a card, usually used in combination with the Cards template to create a grid or row layout on a page. Currently only a maximum of six cards are supported in Visual Editing, please refer to the template page for advanced syntax.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Number of columnscolumn

The number of cards which should fit on a single row (max 6)

Default
1
Example
4
Numbersuggested
Card titletitle

The title text on the card

Example
Red 1 Jared
Stringrequired
Card texttext

The content text on the card

Contentrequired
Card bottombottom

The text on the bottom section of the card

Contentoptional
Card button linkpage

The page linked by the button on the card

Example
Ships
Page nameoptional
pagelinkpagelink

no description

Unknownoptional
Card button textpagetext

The text displayed on the button on the card

Example
Don't click
Stringoptional
Card top bylinebylinetop

The byline text above the title on the card

Stringoptional
Card bottom bylinebylinebottom

The byline text below the title on the card

Stringoptional
Card background colorcolorbg

The background color of the card

Example
#ffffff
Unknownoptional
Card text colorcolortext

The text color of the card

Example
#000000
Unknownoptional
Card byline colorcolorbyline

The color of the byline on the card

Example
#72777d
Unknownoptional
Card title colorcolortitle

The color of the title on the card

Example
#222222
Unknownoptional
Card bottom background colorcolorbgbottom

The background color of the bottom section of the card

Example
#eaecf0
Unknownoptional
Card bottom text colorcolorbottom

The text color in the bottom section of the card

Example
#72777d
Unknownoptional
Card button background colorcolorbgbutton

The background color of the button on the card

Example
#eaecf0
Unknownoptional