Template:NEXTYEAR: Difference between revisions
From Chalo Chatu, Zambia online encyclopedia
(Created page with "{{#expr:{{#time:Y}}+1}}<noinclude> {{documentation|content= {{Calendar, clock, date and time computing templates}} Category:Date-computing templates based on current time...") |
enwiki>MusikBot II m (Changed protection settings for "Template:NEXTYEAR": High-risk template or module 6136 transclusions (more info) ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))) |
||
Line 1: | Line 1: | ||
{{#expr:{{#time:Y}}+1}}<noinclude> | {{#expr:{{#time:Y}} + {{{1|1}}}}}<noinclude> | ||
{{documentation|content= | {{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. | |||
:Example A: | |||
::<code><nowiki>{{NEXTYEAR}}</nowiki></code> | |||
:displays | |||
::{{NEXTYEAR}} | |||
:Example B: | |||
::<code><nowiki>{{NEXTYEAR|4}}</nowiki></code> | |||
:displays | |||
::{{NEXTYEAR|4}} | |||
'''See also''' | |||
* <code>{{magic word|CURRENTYEAR}}</code> | |||
* {{tlx|LASTYEAR}} | |||
{{Calendar, clock, date and time computing templates}} | {{Calendar, clock, date and time computing templates}} | ||
[[Category:Date-computing templates based on current time]] | [[Category:Date-computing templates based on current time]] | ||
}} | }} | ||
</noinclude> | </noinclude> |
Revision as of 01:13, 17 August 2021
2025
<templatestyles src="Module:Documentation/styles.css"></templatestyles>
Template documentation
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.
- Example A:
{{NEXTYEAR}}
- displays
- 2025
- Example B:
{{NEXTYEAR|4}}
- displays
- 2028
See also