Jump to content

Template:Card: Difference between revisions

From Swarthmore Knowledge Base
Created page with "<noinclude> <templatedata> { "params": { "content": { "description": "The text to display inside the card.", "type": "string", "required": true }, "variant": { "description": "The style variant of the carad (e.g., warning, success, info, danger).", "type": "string" } }, "paramOrder": [ "content", "variant" ] } </templatedata> </noinclude> {{#tag:react|{{{content}}}|component=Card|variant={{{variant|info}}}|content="{{{content}}}"}}"
 
No edit summary
Line 21: Line 21:
</noinclude>
</noinclude>
{{#tag:react|{{{content}}}|component=Card|variant={{{variant|info}}}|content="{{{content}}}"}}
{{#tag:react|{{{content}}}|component=Card|variant={{{variant|info}}}|content="{{{content}}}"}}
{{#tag:react|component=Card|variant={{{variant|info}}}|content="{{{content}}}"}}

Revision as of 20:54, 8 May 2026

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
contentcontent

The text to display inside the card.

Stringrequired
variantvariant

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

Stringoptional
React tag missing required "component" attribute.