Jump to content

Template:Card: Difference between revisions

From Swarthmore Knowledge Base
No edit summary
No edit summary
Line 5: Line 5:
"content": {
"content": {
"description": "The text to display inside the card.",
"description": "The text to display inside the card.",
"type": "string",
"type": "unbalanced-wikitext",
"required": true
"required": true,
"aliases": [
"Content",
"Body",
"body"
]
},
},
"variant": {
"variant": {
"description": "The style variant of the card (e.g., warning, success, info, danger).",
"description": "The style variant of the card (e.g., warning, success, info, danger).",
"type": "string",
"aliases": [
"Variant",
"type",
"Type"
],
"suggestedvalues": [
"success",
"danger",
"info"
]
},
"title": {
"aliases": [
"Title"
],
"description": "The title for the card",
"type": "string"
"type": "string"
}
}
Line 15: Line 37:
"paramOrder": [
"paramOrder": [
"content",
"content",
"variant"
"variant",
"title"
]
]
}
}

Revision as of 14:55, 11 May 2026

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
contentcontent Content Body body

The text to display inside the card.

Unbalanced wikitextrequired
variantvariant Variant type Type

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

Suggested values
success danger info
Stringoptional
titletitle Title

The title for the card

Stringoptional