Template:Appear on date: Difference between revisions
template>Tomoneill (Category:Favorite templates) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 15:39, 27 August 2024
You must set a start date using |start=
for this template.
The {{appear on date}}
template will display whatever content it is provided starting on a set date (and, if an end date is set, until the end date arrives). Before the start date (and, if the end date is specified, after the end date has passed) the content will be hidden.
Parameters
Name | Description | Notes |
---|---|---|
|start= |
Set the first date when the content provided to the template should be displayed. Prior to that date, the content will be hidden. | If the parameter name is not specified, this must be the first unnamed parameter. |
|end= |
(Optional) Set the last date when the content provided to the template should be displayed. After that date, the content will be hidden. | If the parameter name is not specified, this must be the second unnamed parameter. |
|content= |
Put whatever it is you want shown for a limited time here. | If the parameter name is not specified, this must be the third unnamed parameter. |
|before= |
(Optional) If you want something to appear before the start date arrives, put it here. | If the parameter name is not specified, this must be the fourth unnamed parameter. |
|after= |
(Optional) If you want something to appear after the end date passes, put it here. | If the parameter name is not specified, this must be the fifth unnamed parameter. |
Examples
Code | Results (as of 1/23/2025) |
---|---|
{{ Appear on date | Start=1/24/2025 | Content=Watch this space for a message coming soon!}} |
|
{{ Appear on date | start=1/23/2025 | content=You've got content!}} |
You've got content! |
{{ Appear on date | January 23, 1926 | | Is this content still here?}} |
Is this content still here? |
{{ Appear on date | Start=January 24, 2025 | End=January 25, 2025 | Content=Stay tuned for a limited-time message!}} |
|
{{ Appear on date | start=January 23, 2025 | end=January 24, 2025 | content=This is a limited-time message!}} |
This is a limited-time message! |
{{ Appear on date | Jan 22, 25 | Jan 23, 25 | This is also a limited-time message!}} |
This is also a limited-time message! |
{{ Appear on date | Jan 21, 25 | Jan 22, 25 | Content=Did I miss it?}} |
|
{{ Appear on date | Start=January 24, 2025 | End=January 24, 2025 | Content=Don't surround yourself with yourself. Move on back two squares! | Before=Something's coming. I don't know what it is, but it is gonna be great! | After=I've seen all good people turn their heads each day, so satisfied I'm on my way.}} |
Something's coming. I don't know what it is, but it is gonna be great! |
{{ Appear on date | Start=January 23, 2025 | End=January 23, 2025 | Content=Don't surround yourself with yourself. Move on back two squares! | Before=Something's coming. I don't know what it is, but it is gonna be great! | After=I've seen all good people turn their heads each day, so satisfied I'm on my way.}} |
Don't surround yourself with yourself. Move on back two squares. |
{{ Appear on date | Start=January 22, 2025 | End=January 22, 2025 | Content=Don't surround yourself with yourself. Move on back two squares! | Before=Something's coming. I don't know what it is, but it is gonna be great! | After=I've seen all good people turn their heads each day, so satisfied I'm on my way.}} |
I've seen all good people turn their heads each day, so satisfied I'm on my way. |
Notes
- If this is used within a sortable table or other sortable content, it will sort based on the start date (yyyy-mm-dd) and then by the displayed content (if any).
See also
{{Disappear on date}}
: For a message that starts appearing immediately and disappears when a set date arrives. (Note that the date for {{disappear on date}} is the day the message disappears, while the end date for {{appear on date}} is the last day it is displayed.){{Show by date}}
: allows you to also specify a hour, check Special:Preferences#mw-prefsection-rendering for the server time to use
Template data
Displays content beginning on a specified start date and, optionally, ending on a specified end date.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Start date | Start start 1 | The date after which content should be displayed
| Date | required |
End date | End end 2 | The last day when content should be displayed
| Date | suggested |
Content to display | Content content 3 | The text or other wiki content you want displayed starting on the specified start date (and disappearing after the end date, if one is specified)
| Content | required |
Before start date content | Before before 4 | The text or other wiki content you want displayed before the start date arrives.
| Content | suggested |
After end date content | After after 5 | The text or other wiki content you want shown after the end date has passed.
| Content | suggested |