Template:If between
Revision as of 14:50, 20 October 2021 by Wikipedia>MusikBot II (Changed protection settings for "Template:If between": High-risk template or module: 3574 transclusions (more info) ([Edit=Require extended confirmed access] (indefinite) [Move=Require extended confirmed access] (indefinite)))
Conditionally include output on a page if an input is between a start and end date. The date boundaries are inclusive.
Usage
{{if between
| input =
| start =
| end =
| output =
}}
Example
{{if between
| input = July 3, 2012
| start = July 1, 2012
| end = July 30, 2012
| output = Yes, your input is between the specified start and end dates.
}}
This example code would output the text string "Yes, your input is between the specified start and end dates."