Template:Adate/sandbox
Appearance
This is the template sandbox page for Template:Adate (diff). |
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. Ifmonth
is empty, this template will display "open". Ifmonth=open, closed, rescinded, nop, unknown, or NA
, this template will display that word. Ifmonth=?
, this template will display appropriate blanks.day
is the optional day of the month number. Ifday=?
, this template will display appropriate blanks.year
is the optional year number. Ifyear=?
, this template will display appropriate blanks.
Examples
[edit]Wikitext | Result |
---|---|
{{adate}}
|
open |
{{adate|closed}}
|
closed |
{{adate|rescinded}}
|
rescinded |
{{adate|nop}}
|
no operation |
{{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]- For help with this template, please post a comment on the template talk page with a
{{reply to}}
one or more of the previous editors.