Template:LASTYEAR and Template:LASTYEAR/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
Plastikspork (talk | contribs) Moving to subpage |
substitution-friendly design |
||
Line 1: | Line 1: | ||
{{#expr:{{#time:Y}}-{{{1|1}}}}}< |
{{safesubst:<noinclude/>#expr:{{safesubst:<noinclude/>#time:Y}}-{{{1|1}}}}}<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''' |
|||
* {{tlx|CURRENTYEAR}} |
|||
* {{tlx|NEXTYEAR}} |
|||
{{Calendar, clock, date and time computing templates}} |
|||
[[Category:Date-computing templates based on current time]] |
|||
}} |
|||
</noinclude> |