From PCSAR
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
This is the documentation for the template Template:Current or past month
Template:Current or past month/Doc:
The template {{Current or past month|MM|YYYY-MM-DD}}
returns the most recent month MM in the current or previous year.
Returned value is of the form YYYY-MM
- MM
- The month to find
- YYYY-MM-DD
- (optional) Base date from which to search backwards for month. If not specified, uses the current date.
You type...
| You get...
|
{{current or past month|01}}
|
2024-01
|
{{current or past month|02}}
|
2024-02
|
{{current or past month|03}}
|
2024-03
|
{{current or past month|04}}
|
2024-04
|
{{current or past month|05}}
|
2024-05
|
{{current or past month|06}}
|
2024-06
|
{{current or past month|07}}
|
2024-07
|
{{current or past month|08}}
|
2024-08
|
{{current or past month|09}}
|
2024-09
|
{{current or past month|10}}
|
2024-10
|
{{current or past month|11}}
|
2024-11
|
{{current or past month|12}}
|
2023-12
|
{{current or past month|01|2017-05-01}}
|
2017-01
|
{{current or past month|02|2017-05-01}}
|
2017-02
|
{{current or past month|03|2017-05-01}}
|
2017-03
|
{{current or past month|04|2017-05-01}}
|
2017-04
|
{{current or past month|05|2017-05-01}}
|
2017-05
|
{{current or past month|06|2017-05-01}}
|
2016-06
|
{{current or past month|07|2017-05-01}}
|
2016-07
|
{{current or past month|08|2017-05-01}}
|
2016-08
|
{{current or past month|09|2017-05-01}}
|
2016-09
|
{{current or past month|10|2017-05-01}}
|
2016-10
|
{{current or past month|11|2017-05-01}}
|
2016-11
|
{{current or past month|12|2017-05-01}}
|
2016-12
|
[edit] Support templates
|
To see how this template is implemented,
edit this page and examine the portion
between <includeonly>
and </includeonly>
.