Template:Banner/doc: Difference between revisions
Appearance
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
| 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!