Jump to content

Template:Banner: Difference between revisions

From Swarthmore Knowledge Base
No edit summary
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 3: Line 3:
{
{
"params": {
"params": {
"title": {},
"content": {},
"variant": {
"variant": {
"type": "string",
"type": "string",
"suggestedvalues": [
"suggestedvalues": [
"success",
"warning",
"warning",
"info",
"danger",
"danger",
"info"
"success"
]
],
},
"default": "info"
"icon": {
"type": "string"
},
"title": {
"type": "string"
},
"content": {
"type": "unbalanced-wikitext"
},
},
"align": {
"icon": {}
"suggestedvalues": [
"left",
"right",
"center"
],
"default": "center"
}
},
},
"format": "block"
"format": "block"
Line 34: Line 21:
</templatedata>
</templatedata>
</noinclude>
</noinclude>
<div style="width:100%;">{{#tag:react | |  
{{#tag:react | |  
   component=Card
   component=BaseBanner
  |orientation=horizontal
   |icon={{{icon|}}}
   |icon={{{icon|}}}
  |align={{{align|center}}}
   |variant={{{variant|}}}
   |variant={{{variant|}}}
   |title={{{title}}}
   |title={{{title}}}
   |content={{{content|}}}
   |content={{{content|}}}
}}</div>
}}

Latest revision as of 17:11, 7 July 2026

No description.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
titletitle

no description

Unknownoptional
contentcontent

no description

Unknownoptional
variantvariant

no description

Suggested values
warning info danger success
Default
info
Stringoptional
iconicon

no description

Unknownoptional