This template will automatically display one of two statements based on whether a particular date has been reached or not.
{{show by date|year|month|day|text before|text after|hour=}}
text before
) is the text to be shown if the current date is before the date specified in the previous parameters; it may be left empty if only the text after
needs to be displayed at the specified datetext after
) is the text to be shown if the current date is on or after the date specified in the previous parameters; it may be left empty if only the text before
needs to be displayed until the specified datehour=
) is an optional parameter that sets the hour of the day in Wikipedia time (UTC) that the template will begin showing the text after
. If not specified, it defaults to 0 (midnight UTC). When set to the offset between local time and UTC (for example -8 for Pacific Standard Time) it will cause the template to show text after
at midnight local time.The template is particularly useful on low-activity articles where dated statements may not receive prompt attention.
A WP:BOT, User:AnomieBOT, will substitute the template with just the text after
after the specified date.
|
hour=
is set, statements will be switched on the date according to Wikipedia time (00:00 UTC). If the actual event point is a few hours before or after this, it probably makes little difference in the grander scheme of time. However, the template will trigger at some time on the day before or after the specified date if the actual event is more than 12 hours before or after 00:00 UTC. For example, an event that takes place on November 22 at 8:00 pm Pacific Standard Time (UTC−08:00) corresponds to 04:00, November 23 (UTC).To work around this, set the hour=
parameter to the offset between local time and UTC (for example -8 for Pacific Standard Time) or to the UTC time of the actual start of the event.
text before
nor the text after
may begin or end with whitespace (whitespace will be trimmed). Workarounds include using an escape code for space ( 
), using a non-breaking space (
), or including invisible markup (e.g. <nowiki/>
) to prevent the spaces from being stripped.text before
or text after
contains an "=" or "|" character that is not inside another template invocation, use the templates {{=}} or {{!}}.Code | Result |
---|---|
{{show by date|2022|||Show this before 2022|Show this after 2022}} has started | Show this after 2022 has started |
{{show by date|2026|09||Show this before September 2026|Show this after September 2026}} has started | Show this before September 2026 has started |
{{show by date|2022|09|06|Show this before 06 Sep 2022|Show this as of 06 Sep 2022}} | Show this as of 06 Sep 2022 |
{{show by date|2024|11|22|Show this before 16:00 UTC|Show this as of 16:00 UTC|hour=16}} | Show this before 16:00 UTC |
{{show by date|2026|09|06|Show this before 06 Sep 2026|}} | Show this before 06 Sep 2026 |
{{show by date|2026|09|06||Show this after 06 Sep 2026}} | |
{{show by date|2026|||{{show by date|2022|||Show this before 2022|Show this between 2022 and 2026}}|Show this as of 2026}} | Show this between 2022 and 2026 |
Note *{{show by date|2026||| lost spacing }}*, and *{{show by date|2026||| workaround }}* | Note *lost spacing*, and * workaround * |
This template will automatically display one of two statements based on whether a particular date has been reached or not. ##### param 1 is the year ##### param 2 is the month number ##### param 3 is the day of the month ##### param 4 is the text to show before the specified date ##### param 5 is the text to show on or after the specified date ##### hour is the hour of the day in 24-hour UTC time
Parameter | Description | Type | Status | |
---|---|---|---|---|
year | 1 | Year | Number | required |
month | 2 | Month number | Number | suggested |
day | 3 | Day of the month. | Number | suggested |
Text before | 4 before | Text that will be shown before the specified date. | Content | suggested |
Text after | 5 after | Text that will be shown on and after the specified date. | Content | suggested |
Hour | hour | Hour of the day in 24-hour UTC time, or +/- offset | Unknown | optional |
{{Update|inaccurate=y}}
is used to mark an article whose factual accuracy may be compromised (although this may be disputed) due to out of date information. This template adds the article to Category:Articles with obsolete information.