Module:Daterange/doc

Used for formatting ranges of dates. Can accept an unlimited number of start/end pairs. It will automatically truncate the end date to the last two digits if the rest of the digits match. If the end date is missing, the range will be presented with just the start date (or you can set the end date to "present").

This template formats many year ranges in a way that is not in compliance with the guideline at MOS:YEARRANGE. In nearly all cases, year ranges should be in the form YYYY–YYYY, not YYYY–YY. Two-digit ending years are allowed only in limited circumstances.

Usage

{{#invoke:Daterange|main|1997|2002}} → 1997–2002

{{#invoke:Daterange|main|1997|present}} → 1997–present

{{#invoke:Daterange|main|1997|‍}} →1997–‍

{{#invoke:Daterange|main|start=2020|end=2002}} → 2020–22 (usually not valid per MOS:YEARRANGE)

{{#invoke:Daterange|main|start1=1997|end1=2002|start2=2020|end2=2022|start3=2023}} → 1997–2002, 2020–22, 2023 (not valid per MOS:YEARRANGE)

If you wish to show an open-ended range, use 1997–‍ The module will not handle non-sequential parameters, so if you have {{{start1}}}, {{{start2}}}, and {{{start4}}}, only {{{start1}}} and {{{start2}}} will be used.


See Also

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.