Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Humanipedia
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Module:Daterange/doc
Module
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
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 == {{mlx|Daterange|main|1997|2002}} → {{#invoke:Daterange|main|1997|2002}} {{mlx|Daterange|main|1997|present}} → {{#invoke:Daterange|main|1997|present}} {{mlx|Daterange|main|1997|&zwj;}} →{{#invoke:Daterange|main|1997|‍}} {{mlx|Daterange|main|start{{=}}2020|end{{=}}2002}} → {{#invoke:Daterange|main|start=2020|end=2022}} (usually not valid per [[MOS:YEARRANGE]]) {{mlx|Daterange|main|start1{{=}}1997|end1{{=}}2002|start2{{=}}2020|end2{{=}}2022|start3{{=}}2023}} → {{#invoke:Daterange|main|start1=1997|end1=2002|start2=2020|end2=2022|start3=2023}} (not valid per [[MOS:YEARRANGE]]) If you wish to show an open-ended range, use {{#invoke:Daterange|main|1997|‍}} The module will not handle non-sequential parameters, so if you have {{param|start1}}, {{param|start2}}, and {{param|start4}}, only {{param|start1}} and {{param|start2}} will be used. <includeonly>{{Sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> }}</includeonly> ==See Also== *{{tl|Year2range}} [[category:String manipulation templates]]<noinclude> [[Category:Module documentation pages]] </noinclude>
Summary:
Please note that all contributions to Humanipedia may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Humanipedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Mlx
(
edit
)
Template:Module link expanded
(
edit
)
Template:Param
(
edit
)
Template:Template link
(
edit
)
Template:Tl
(
edit
)
Module:Arguments
(
edit
)
Module:Daterange
(
edit
)
Module:Separated entries
(
edit
)
Module:TableTools
(
edit
)