Template:If this semester
Kaonekelo
Usage
[kulemba source]This template takes a date and returns different content based on whether it's in the current semester. Semesters are defined as January 1–July 1 and July 1–December 31. 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
[kulemba source]No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Date | 1 | The date being tested, in any normal format | Date | required |
| If this semester | 2 | Content to present if the date is this semester | Content | suggested |
| If not this semester | 3 | Content to present if the date is not this semester | Content | suggested |
Examples
[kulemba source]{{If this semester|October 1, 2024|this semester|not this semester}}→ not this semester{{If this semester|January 20, 2026|this semester|not this semester}}→ this semester{{If this semester|July 2, 2026|this semester|not this semester}}→ not this semester{{If this semester|December 28, 2026|this semester|not this semester}}→ not this semester{{If this semester|January 20, 2027|this semester|not this semester}}→ not this semester{{If this semester|October 28, 2027|this semester|not this semester}}→ not this semester
See also
[kulemba source]- {{If this academic year}}
- {{Is now}}
- {{Semester}}