Template:CampaignWidget/Block
Jump to navigation
Jump to search
Usage Examples
| Template Call | Output | ||
|---|---|---|---|
{{CampaignWidget/Block
|header = Community Challenge:
|title = Secrets of the Water Shippers
|subheader = Work together to earn Weapon skins!
|image = May26_SecretsOfTheWaterShippers.jpg
|type = Reward
|end = 2199-06-21T10:00:00+02:00
}}
|
| ||
TemplateData
This subtemplate renders a single campaign block for use inside Template:CampaignWidget.
It automatically adapts based on the current time relative to the specified start and end timestamps:
- Displays "STARTING ON" before the campaign begins
- Displays "ENDING ON" once the campaign is active
- Entire block is omitted once the campaign has ended
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Header Text | header | Optional text displayed above the campaign title. | String | optional |
| Campaign Title | title | Name of the campaign. | String | required |
| Campaign Image | image | Full file name with extension. | File | required |
| Subheader Text | subheader | Optional text displayed below the campaign title. | String | optional |
| Campaign Type | type | Type of campaign.
| String | required |
| Start Date | start | The starting date and time in ISO 8601 format, including timezone offset.
| String | optional |
| End Date | end | The ending date and time in ISO 8601 format, including timezone offset.
| String | required |
