Jump to content

Template:Banner/doc: Difference between revisions

From VassarWiki
creating documentation page
 
expanded
 
(One intermediate revision by the same user not shown)
Line 47: Line 47:
"default": "var(--vw-border)",
"default": "var(--vw-border)",
"example": "#f0c040"
"example": "#f0c040"
},
"expanded": {
"label": "Expanded",
"description": "When true, heading and description are two paragraphs",
"type": "boolean",
"default": "False"
}
}
}
},
"paramOrder": [
"header",
"description",
"icon",
"icon_file",
"icon_invert",
"background_color",
"border_color",
"expanded"
]
}
}
</templatedata>
</templatedata>

Latest revision as of 20:05, 30 May 2026

Template/meta-template for banners above pages

Template parameters

ParameterDescriptionTypeStatus
Headerheader

no description

Stringrequired
Descriptiondescription

no description

Stringrequired
Iconicon

Emoji or character icon (used if icon file is not set)

Example
🏗️
Stringoptional
Icon fileicon_file

Wiki filename for an image icon (overrides icon if set)

Example
Tabler-icons info-circle.svg
Fileoptional
Invert icon in dark modeicon_invert

If set, applies a CSS invert filter to the icon for dark mode compatibility

Example
1
Stringoptional
Background colorbackground_color

no description

Default
var(--vw-bg-subtle)
Example
#fff8e1
Stringoptional
Border colorborder_color

no description

Default
var(--vw-border)
Example
#f0c040
Stringoptional
Expandedexpanded

When true, heading and description are two paragraphs

Default
False
Booleanoptional

Example

{{Banner
|icon = 🏗️
|header = This page is currently under construction. It may be inaccurate or incomplete. 
|description = [[Special:EditPage/{{FULLPAGENAME}}|You can help!]]
|background_color = var(--vw-gold-subtle)
|border_color = var(--vw-gold)
}}
🏗️
This page is currently under construction. It may be inaccurate or incomplete. You can help!