Jump to content

Template:Outdated as of/doc

From Wikipedia, the free encyclopedia

After the specified date has passed, this template calls the {{Update}} template to display a message box indicating that the page contains out of date information. Use to set a page to display the outdated message only after a known future date has arrived, such as for regularly recurring sporting events like the Olympics, Canada Games, etc.

This template should be transcluded at the top of the page; it is NOT suitable for substitution.

Usage

[edit]
{{Outdated as of|<year>|<month>|<day>|<last updated>|topic=<topic>}}

or

{{Outdated as of|year=<year>|month=<month>|day=<day>|last updated=<last updated>|topic=<topic>}}

where named parameters (appearing in any sequence)

  year     the four digit year when the page will next need to be updated  (e.g. year = 2025 )
month the numeric month when this page will next need to be updated  (e.g. Month = 2 )
day the day of the month when this page next needs to be updated  (e.g. day = 12 )
last updated any text to indicate when the information was last updated; typically this is the full date when this page was last brought up to date  (e.g. last updated = November 29, 2024 )
topic a custom message may be added to clarify which part(s) of the page are/will be out-of-date; this is added to the message stating "Parts of this article (those related to topic) are outdated."

During multi-day events, set the day to the next day (that the information on the page may change) and set the last updated parameter each day after the complete day's results have been updated.  This will prevent the outdated message from appearing at the top of the page on the current day once the information is current, but will automatically display the message the following day if results have not been posted.
Due to the nature of WikiMedia, and browser caching, the message might not appear until some time after the midnight changeover; also, midnight is UTC midnight as opposed to local time.  There is currently no support in this template for specifying what time that the message will appear.
Can be used with the {{Update after}} template for similar inline notations.
After the date specified by year / month / day is reached the page is added to the Category:Wikipedia articles in need of updating.

The template automatically detects which namespace it is used in and changes accordingly:
Article
Category
Template

Examples

[edit]

(Note: All examples simulate the Article namespace.)

{{Outdated as of | 2024 | 11 | 30 }}

or

{{Outdated as of | year = 2024 | month = 11 | day = 30 }}

yields      [Nothing since this date has not yet been reached]

{{Outdated as of | year = 2024 | month = 11 | day = 29 | last updated = November 29, 2024 }}

yields


{{Outdated as of | topic = Hockey results | last updated = Game 3 | year = 2024 | month = 11 | day = 28 }}

yields


{{Outdated as of | year = 2025 | month = 2  | day = 12 | last updated = November 29, 2024 }}

yields      [Nothing since this date is far in the future.]

See also

[edit]