Template:Adate/doc

From Wikipedia, the free encyclopedia

This template creates a table cell with a sortable, centered, and monospaced time stamp in United States Postal Service format.

Use[edit]

{{adate|month|day|year}}

Where:

  • month is the optional month number. If month is empty, this template will display "open". If month=open, closed, rescinded, unknown, or NA, this template will display that word. If month=?, this template will display appropriate blanks.
  • day is the optional day of the month number. If day=?, this template will display appropriate blanks.
  • year is the optional year number. If year=?, this template will display appropriate blanks.

Examples[edit]

Wikitext Result
{{adate}} open
{{adate|closed}} closed
{{adate|rescinded}} rescinded
{{adate|unknown}} unknown
{{adate|NA}} NA
{{adate|08|01|1876}} Aug 01, 1876
{{adate|12|31|1899}} Dec 31, 1899
{{adate|7|4|1976}} Jul 04, 1976
{{adate|4|?|1998}} Apr     1998
{{adate|?|?|2023}}         2023
{{adate|?|?|?}}             

See examples at the List of post offices in Colorado.

Note[edit]