Template:AlertBanner/Layout
Jump to navigation
Jump to search
Usage Examples
| Template Call | Output |
|---|---|
{{AlertBanner/Layout
|text = '''SAMPLE HEADER'''
SAMPLE TEXT
|start = 2026-06-03T08:00:00+08:00
|end = 2199-07-02T08:00:00+08:00
}}
|
TemplateData
This subtemplate defines the layout of the banner rendered by Template:AlertBanner.
It automatically adapts based on the current time relative to the specified start and end timestamps:
- Displays the
starttimestamp before the start time - Displays "NOW" while the alert is active
- The banner is omitted once the specified
endtimestamp has passed
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Alert Content | text | Text to display as the main content of the banner. | Content | required |
| Start Date | start | The starting date and time in ISO 8601 format, including timezone offset.
| String | required |
| End Date | end | The ending date and time in ISO 8601 format, including timezone offset.
| String | required |