Template:Banner/doc: Difference between revisions
Appearance
added condensed |
expanded |
||
| Line 48: | Line 48: | ||
"example": "#f0c040" | "example": "#f0c040" | ||
}, | }, | ||
" | "expanded": { | ||
"label": " | "label": "Expanded", | ||
"description": "When true, heading and description are | "description": "When true, heading and description are two paragraphs", | ||
"type": "boolean" | "type": "boolean", | ||
"default": "False" | |||
} | } | ||
}, | }, | ||
| Line 62: | Line 63: | ||
"background_color", | "background_color", | ||
"border_color", | "border_color", | ||
" | "expanded" | ||
] | ] | ||
} | } | ||
Latest revision as of 20:05, 30 May 2026
Template/meta-template for banners above pages
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Header | header | no description | String | required |
| Description | description | no description | String | required |
| Icon | icon | Emoji or character icon (used if icon file is not set)
| String | optional |
| Icon file | icon_file | Wiki filename for an image icon (overrides icon if set)
| File | optional |
| Invert icon in dark mode | icon_invert | If set, applies a CSS invert filter to the icon for dark mode compatibility
| String | optional |
| Background color | background_color | no description
| String | optional |
| Border color | border_color | no description
| String | optional |
| Expanded | expanded | When true, heading and description are two paragraphs
| Boolean | optional |
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!