Jump to content

Template:Card: Difference between revisions

From Swarthmore Knowledge Base
No edit summary
No edit summary
Line 35: Line 35:
"type": "string",
"type": "string",
"required": true
"required": true
},
"href": {
"aliases": [
"link",
"Href",
"Link",
"linkTo"
]
},
},
"orientation": {
"orientation": {
Line 91: Line 83:
"variant",
"variant",
"title",
"title",
"href",
"orientation",
"orientation",
"icon"
"icon"
Line 102: Line 93:
   component=Card
   component=Card
   |orientation={{{orientation|vertical}}}
   |orientation={{{orientation|vertical}}}
  |href={{{href|}}}
   |icon={{{icon|}}}
   |icon={{{icon|}}}
   |variant={{{variant|}}}
   |variant={{{variant|}}}

Revision as of 13:48, 15 May 2026

No description.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
contentcontent Content Body body

The text to display inside the card.

Unbalanced wikitextoptional
variantvariant Variant type Type

The style variant of the card (e.g., warning, success, info, danger).

Suggested values
success danger info warning brand
Stringoptional
titletitle Title

The title for the card

Stringrequired
orientationorientation Orientation layout Layout

no description

Suggested values
horizontal vertical
Stringoptional
iconicon Icon

no description

Suggested values
academic-cap star command-line pencil gift bank-notes bolt cake calendar computer-desktop device-phone-mobile envelope-open key phone printer question-mark-circle sparkles shield-check shield-exclamation wifi video-camera variable
Stringoptional