• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.55
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:If between

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]

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

The above documentation is transcluded from Template:If between/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:If_between&oldid=19137"
Categories:
  • Date mathematics templates
  • If-then-else templates
Last edited on 20 October 2021, at 14:50

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 20 October 2021, at 14:50.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop