• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:If between

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 4,400 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.

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://en.wikipedia.org/w/index.php?title=Template:If_between&oldid=1304297639"
Last edited on 5 August 2025, at 05:09

Languages

    • العربية
    • 閩南語 / Bân-lâm-gí
    • فارسی
    • 한국어
    • मराठी
    • Simple English
    • ไทย
    • Tiếng Việt
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 5 August 2025, at 05:09 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop