Jump to content

Template:InfoCard/doc

From mediawiki.org

The example below sets heading and content to demo parameters, otherwise they would normally not show. It also uses style=background-color:var(--background-color-base);.

{{{heading}}}

{{{subheading}}}

{{{content}}}

{{{heading}}}

{{{content}}}

This template creates a styled information card.

Template parameters

ParameterDescriptionTypeStatus
Headingheading

The card's title.

Contentsuggested
Contentcontent 2

The card's content.

Contentrequired
Footerfooter

Optional footer area.

Contentoptional
Class(es)class

Additional CSS class(es) for the whole box.

Lineoptional
Stylestyle divstyle

Add CSS style of entire info card. (Style of <div> wrapper of entire card that contains the main parent CSS.

Example
background-color: var(--background-color-base, #fff);
Stringoptional
Subheadingsubheading

The card's subtitle

Contentsuggested
Title styleheadingstyle

CSS style for the title only. Do not put style=" "

Stringoptional
Subtitle stylesubheadingstyle

CSS style for the subtitle only. Do not put style=" ".

Stringoptional
Content stylecontentstyle

CSS style for the content only. Do not put style=" "

Stringoptional
Foote stylefooterstyle

CSS style for the footer only. Do not put style=" "

Stringoptional