Jump to content

Template:Card2: Difference between revisions

From Swarthmore Knowledge Base
Created page with "<noinclude> <templatedata> { "params": { "content": { "description": "The text to display inside the card.", "type": "unbalanced-wikitext", "aliases": [ "Content", "Body", "body" ] }, "variant": { "description": "The style variant of the card (e.g., warning, success, info, danger).", "type": "string", "aliases": [ "Variant", "type", "Type" ], "suggestedvalues": [ "success", "danger", "info", "warni..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 103: Line 103:
</templatedata>
</templatedata>
</noinclude>
</noinclude>
[{{{href|}}}{{#tag:react | |  
<span class="plainlinks">[{{{href|}}}{{#tag:react | |  
   component=Card
   component=Card
   |orientation={{{orientation|vertical}}}
   |orientation={{{orientation|vertical}}}
Line 111: Line 111:
   |title={{{title}}}
   |title={{{title}}}
   |content={{{content|}}}
   |content={{{content|}}}
}}]
}}]</span>

Latest revision as of 14:50, 19 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
alignalign

no description

Suggested values
left right center
Stringoptional
hrefhref

no description

URLoptional
[
]