Template:LASTYEAR/doc
Appearance
| This is a documentation subpage for Template:LASTYEAR. It may contain usage information, categories and other content that is not part of the original template page. |
| This template is used on approximately 841,000 pages, or roughly 1% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
Usage
[edit]Display the current year offset by one ie. current year - 1 year. If the first parameter is set (optional), it will offset by that number of years backwards.
Examples
[edit]- example 1
{{LASTYEAR}}
- displays
- 2025
- example 2
{{LASTYEAR|4}}
- displays
- 2022
See also
[edit]{{CURRENTYEAR}}{{NEXTYEAR}}
Multiple units of time
[edit]| Type | Adjustable | Current | Last | Next |
|---|---|---|---|---|
| Date and time |
|
|
||
| Date only | ||||
| Month and year only |
|
| ||
| Time only |
|
|
||
| Banners |
|
|||
| Timestamp |
|
Single units of time
[edit]| Unit of time | Adjustable | Current | Last | Next |
|---|---|---|---|---|
| Second |
|
|||
| Minute |
|
|||
| Hour |
|
|||
| Week |
|
|||
| Day of Week |
|
|
||
| Month |
|
|
|
|
| Day of Month |
|
|||
| Year |
|
|
| |
| Day of Year |
|
|||
| Decade |
|
|
||
| Century |
|
|
||
| Millenium |
|
Date and time templates made for substitution
[edit]Parser functions
[edit]- mw:Special:MyLanguage/time permits a custom time specifier string, similar to the C date and time functions
Individual templates
[edit]- {{Calendar}}
- {{Calendar clock with Wikipedia stats}}
- {{Clock}}
- {{Digital clock}}
- {{Digital clock and date}}
- {{Infobox calendar date today}}