Template:If between/doc: Difference between revisions

Jump to navigation Jump to search
en>Vanisaac
m (→‎Example: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(Created page with "{{Documentation subpage}} <!-- Categories and interwikis go at the bottom of this page. --> Conditionally include output on a page if an input is between a start and end date...")

Revision as of 00:08, 21 June 2020

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."