• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Show by date

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
For the wrapper template that uses a freeform date/time parameter instead of separate year, month, and day parameters, see Template:Show by.

Usage

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=}}

  • Parameters 1, 2, and 3 are the Year, Month, and Day that the template should show the text after. Until that date, the text before is shown. If the day is omitted, the template will activate on the first day of the specified month. If the month is also omitted, the template will activate on 1 January of the specified year. If the year is also omitted, the template will activate immediately.
  • Parameter 4 (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 date
  • Parameter 5 (text 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 date
  • The hour parameter (hour=) 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, unless you add the parameters |nosubst=yes or |demo=yes.

Warnings

  • Ensure both “before” and “after” statements are supported by reliable sources.
  • If the statement will become outdated, consider using {{update after}} instead.
  • Be certain that the "before" and "after" versions of the statement are both reliably supported by the cited sources. For example, "Mr. Smith will take office on 1 January 2027" to "Mr. Smith took office on 1 January 2027" are both normally citable to the results of the election or announcement of the appointment. But the source for "The movie is scheduled for release on 1 January 2027" does not usually support a statement "The movie was released on 1 January 2027" since movie dates often slip; on the other hand, it could support "The movie was scheduled for release on 1 January 2027" or the template could be used to remove the text entirely, and {{update after}} could be used to request an update.
  • Take care that neither the "before" nor "after" text displays with awkward grammar.

Limitations

  • Unless the 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 June 15 at 8:00 pm Pacific Standard Time (UTC−08:00) corresponds to 04:00, June 16 (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.

  • The output of this template will not be changed until the page is purged. MediaWiki may or may not manage to do this automatically. Category membership and the output of Special:WhatLinksHere, if these are changed by the expiration of this template, will not be updated until the page is edited.
  • Neither the intended text before nor the text after may begin or end with whitespace (whitespace will be trimmed). Workarounds include using an escape code for space (&#32;), using a non-breaking space (&nbsp;), or including invisible markup (e.g. <nowiki/>) to prevent the spaces from being stripped.
  • If the text before or text after contains an "=" or "|" character that is not inside another template invocation, use the templates {{=}} or {{!}}.

Examples

CodeResult
{{show by date|2024|||Show this before 2024|Show this after 2024}} has started Show this after 2024 has started
{{show by date|2028|09||Show this before September 2028|Show this after September 2028}} has started Show this before September 2028 has started
{{show by date|2024|09|06|Show this before 06 Sep 2024|Show this as of 06 Sep 2024}} Show this as of 06 Sep 2024
{{show by date|2026|06|15|Show this before 6:00 UTC|Show this as of 6:00 UTC|hour=6}} Show this before 6:00 UTC
{{show by date|2028|09|06|Show this before 06 Sep 2028|}} Show this before 06 Sep 2028
{{show by date|2028|09|06||Show this after 06 Sep 2028}}
{{show by date|2028|||{{show by date|2024|||Show this before 2024|Show this between 2024 and 2028}}|Show this as of 2028}} Show this between 2024 and 2028
Note *{{show by date|2028||| lost spacing }}*, and *{{show by date|2028|||&#32;workaround&#32;}}* Note *lost spacing*, and * workaround *

Template data

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

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
year1

Year

Numberrequired
month2

Month number

Numbersuggested
day3

Day of the month.

Numbersuggested
Text before4 before

Text that will be shown before the specified date.

Contentsuggested
Text after5 after

Text that will be shown on and after the specified date.

Contentsuggested
Hourhour

Hour of the day in 24-hour UTC time, or +/- offset

Unknownoptional

Related templates

  • {{Show by}} A similar template that accepts a date/time string instead of separate parameters for the year, month, and day
  • {{As of}}
  • {{Update}}
    • {{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.
  • {{Update after}}, which shows an inline update maintenance tag when a specified date is reached.
  • {{Hide until}} – hides text until the specified date and time, down to the second

See also

  • Wikipedia:Avoid statements that will date quickly
  • v
  • t
  • e
Inline cleanup tags
Attribution
  • {{According to whom}}
  • {{Among whom}}
  • {{Attribution needed}}
  • {{By what}}
  • {{By whom}}
  • {{For whom}}
  • {{From whom?}}
  • {{Like whom?}}
  • {{To whom?}}
  • {{Who}}
  • {{Whose}}
  • {{With whom}}
Clarity
  • {{Ambiguous}}
  • {{Circular definition}}
  • {{Clarify}}
  • {{Clarify span}}
  • {{Clarify timeframe}}
  • {{Context inline}}
  • {{Expand acronym}}
  • {{Incomprehensible inline}}
  • {{Incomprehensible span}}
  • {{Key needed}}
  • {{Non sequitur}}
  • {{Sentence fragment}}
  • {{Sic?}}
  • {{Which calendar}}
  • {{Which lang}}
Miscellaneous
  • {{Chinese script needed inline}}
  • {{Chinese script needed inline span}}
  • {{Cleanup inline}}
  • {{Copyvio}}
  • {{Copyvio link}}
  • {{Data missing}}
  • {{Disambiguation needed}}
  • {{External links inline}}
  • {{Improve caption}}
  • {{Japanese script needed inline}}
  • {{MisleadingNameLink}}
  • {{Needs IPA}}
  • {{Not English inline}}
  • {{Not in body}}
  • {{Original research inline}}
  • {{Original research span}}
  • {{Pronunciation needed}}
  • {{Qualify evidence}}
  • {{Romanization needed}}
  • {{Script needed inline}}
  • {{Spam link}}
  • {{Synthesis inline}}
  • {{Synthesis span}}
  • {{Typo help inline}}
  • {{Under discussion inline}}
  • {{Verify spelling}}
  • {{Whose translation}}
Neutrality
  • {{Buzzword inline}}
  • {{Compared to?}}
  • {{Contentious label inline}}
  • {{Editorializing}}
  • {{Fact or opinion}}
  • {{Opinion}}
  • {{Peacock inline}}
  • {{POV statement}}
  • {{Promotion inline}}
  • {{Unbalanced opinion}}
  • {{Weasel inline}}
Precision
  • {{By how much}}
  • {{Definition}}
  • {{Definition span}}
  • {{Definition needed}}
  • {{Example needed}}
  • {{Example needed span}}
  • {{Explain}}
  • {{Explain-wrap}}
  • {{From where}}
  • {{How}}
  • {{How often}}
  • {{Misquoted}}
  • {{More detail needed}}
  • {{Of what}}
  • {{Quantify}}
  • {{Specify}}
  • {{Vague}}
  • {{When}}
  • {{Where}}
  • {{Where-geo}}
  • {{Which}}
  • {{Who else}}
  • {{Why}}
  • {{Year needed}}
Excessive
  • {{Duplication span}}
  • {{Globalize inline}}
  • {{Importance example}}
  • {{Importance inline}}
  • {{Infobox clutter}}
  • {{List entry too long}}
  • {{Long quote}}
  • {{Off topic paragraph}}
  • {{Off topic sentence}}
  • {{Overly detailed inline}}
  • {{Over-explained}}
  • {{Relevance inline}}
  • {{Undue weight inline}}
Time-sensitivity
  • {{Anachronism inline}}
  • {{As of?}}
  • {{Clarify timeframe}}
  • {{Current event inline}}
  • {{Is this date calibrated?}}
  • {{Outdated statistic}}
  • {{Until when}}
  • {{Update after}}
  • {{Update inline}}
  • {{Update span}}
Verifiability
Dubious
  • {{Contradictory inline}}
  • {{Discuss}}
  • {{Disputed inline}}
  • {{Dubious}}
  • {{Dubious span}}
  • {{Inconsistent}}
  • {{Needs independent confirmation}}
  • {{Speculation inline}}
Bare URLs
  • {{Bare URL inline}}
  • {{Bare URL AV media}}
  • {{Bare URL DOC}}
  • {{Bare URL image}}
  • {{Bare URL non-HTML}}
  • {{Bare URL PDF}}
  • {{Bare URL plain text}}
  • {{Bare URL spreadsheet}}
Incomplete or broken citation
  • {{Author incomplete}}
  • {{Author missing}}
  • {{Broken footnote}}
  • {{Date missing}}
  • {{Dead link}}
  • {{Dead YouTube link}}
  • {{Deep link needed}}
  • {{Edition needed}}
  • {{Episode needed}}
  • {{Full citation needed}}
  • {{Incomplete short citation}}
  • {{ISBN missing}}
  • {{Missing long citation}}
  • {{Moved resource}}
  • {{Page needed}}
  • {{Pages needed}}
  • {{Permanent dead link}}
  • {{Place missing}}
  • {{Publisher missing}}
  • {{Season needed}}
  • {{Time needed}}
  • {{Title incomplete}}
  • {{Title missing}}
  • {{Unused source}}
  • {{Volume needed}}
  • {{Year missing}}
Missing or problematic reference
  • {{Additional citation needed}}
  • {{AI-generated inline}}
  • {{AI-generated source?}}
  • {{AI-retrieved source}}
  • {{Better source needed}}
  • {{Better source needed example}}
  • {{Check quotation}}
  • {{Chronology citation needed}}
  • {{Circular reference}}
  • {{Circular reporting}}
  • {{Citation needed}}
  • {{Citation needed span}}
  • {{Citation needed paragraph}}
  • {{Citation not found}}
  • {{Close paraphrasing inline}}
  • {{COI source}}
  • {{Deprecated inline}}
  • {{Excessive citations inline}}
  • {{Failed verification}}
  • {{Failed verification span}}
  • {{Image reference needed}}
  • {{Independent source inline}}
  • {{Irrelevant citation}}
  • {{Marketing material}}
  • {{Medical citation needed}}
  • {{Medical citation needed span}}
  • {{Misplaced footnote}}
  • {{Nonspecific}}
  • {{Not verified in body}}
  • {{Not verified in body span}}
  • {{Obsolete source}}
  • {{Page range too broad}}
  • {{Primary source inline}}
  • {{Promotional source}}
  • {{Quote without source}}
  • {{Request quotation}}
  • {{Request quotation span}}
  • {{Retracted}}
  • {{Scientific citation needed}}
  • {{Self-published inline}}
  • {{Self-published source}}
  • {{Shallow reference inline}}
  • {{Tertiary source inline}}
  • {{Text-source inline}}
  • {{Unreliable source?}}
  • {{Unreliable fringe source}}
  • {{Unreliable medical source}}
  • {{Unreliable scientific source}}
  • {{User-generated inline}}
  • {{User-generated source}}
  • {{Verify quote}}
  • {{Verify source}}
  • {{Whose quote}}
Wording
  • {{Buzzword inline}}
  • {{Colloquialism}}
  • {{Copy edit inline}}
  • {{Idiom}}
  • {{Neologism inline}}
  • {{Technical inline}}
  • {{Tone inline}}
General advice
  • Citing sources
  • Reliable sources
  • Maintenance template removal
  • Citation needed
  • Find sources
  • Combining sources
  • Referencing styles
  • Inline cleanup templates
  • WikiProject Inline Templates
The above documentation is transcluded from Template:Show by date/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Show_by_date&oldid=1252081713"