Template:Year-1-month: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(updates automatically, {{Template:Informative template}}) |
||
Line 1: | Line 1: | ||
<noinclude>{{ | {{#ifexpr: {{CURRENTMONTH}}=1 | {{#expr: {{CURRENTYEAR}}-1}} | {{CURRENTYEAR}}}}<noinclude> | ||
{{Informative template| | |||
</noinclude> | ==Goal== | ||
Shows the year of last month. From February to December it shows the current year and in January the last year (because the last month was Decmber) | |||
==Usage== | |||
<nowiki>{{Year-1-month}}</nowiki> | |||
{{Year-1-month}} | |||
{{tl|Month-1}} <nowiki>{{Year-1-month}}</nowiki> | |||
{{Month-1}} {{Year-1-month}} | |||
---- | |||
</br>More: https://en.wikipedia.org/wiki/Category:Date_mathematics_templates | |||
[[Category:Date mathematics templates]] | |||
}} | |||
</noinclude> |
Latest revision as of 08:58, 4 September 2016
2024
The following template description is not displayed when the template is inserted in an article.
Goal
Shows the year of last month. From February to December it shows the current year and in January the last year (because the last month was Decmber)
Usage
{{Year-1-month}}
2024
{{Month-1}} {{Year-1-month}}
February 2024
More: https://en.wikipedia.org/wiki/Category:Date_mathematics_templates