Template:If this academic year
Appearance
![](http://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png)
Usage
This template takes a date and returns different content based on whether it's in the current academic year. Academic years are defined as beginning on 1 July. It can be used in combination with a dynamic date input (such as from a Wikidata value) to do things like determine verb tense for a statistic.
Parameters
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Date | 1 | The date being tested, in any normal format | Date | required |
If this academic year | 2 | Content to present if the date is this academic year | Content | suggested |
If not this academic year | 3 | Content to present if the date is not this academic year | Content | suggested |
Examples
{{If this academic year|October 1, 2022|this academic year|not this academic year}}
→ not this academic year{{If this academic year|January 20, 2024|this academic year|not this academic year}}
→ not this academic year{{If this academic year|July 2, 2024|this academic year|not this academic year}}
→ this academic year{{If this academic year|December 28, 2024|this academic year|not this academic year}}
→ this academic year{{If this academic year|June 20, 2025|this academic year|not this academic year}}
→ this academic year{{If this academic year|October 28, 2025|this academic year|not this academic year}}
→ not this academic year
See also
- {{if this semester}}
- {{semester}}