Template:LASTYEAR: Difference between revisions

Safer nicotine wiki Tobacco Harm Reduction
Jump to navigation Jump to search
m (1 revision imported)
imported>Plastikspork
(Moving to subpage)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#expr:{{#time:Y}}-{{{1|1}}}}}<noinclude>
{{#expr:{{#time:Y}}-{{{1|1}}}}}<noinclude>{{documentation}}</noinclude>
{{documentation|content=
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.
 
:example 1
::<code><nowiki>{{LASTYEAR}}</nowiki></code>
:displays
::{{LASTYEAR}}
 
:example 2
::<code><nowiki>{{LASTYEAR|4}}</nowiki></code>
:displays
::{{LASTYEAR|4}}
 
'''See also'''
* <code>{{magic word|CURRENTYEAR}}</code>
* {{tlx|NEXTYEAR}}
 
{{Calendar, clock, date and time computing templates}}
[[Category:Date-computing templates based on current time]]
}}
</noinclude>

Latest revision as of 17:30, 8 January 2022

2023