Editing
Template:Date range/doc
Jump to navigation
Jump to search
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!
{{Documentation subpage}} ==== To use ==== :{{Tlx|Date range|Year of event start|Month of event start|Day of event start|Year of event end|Month of event end|Day of event end|df=y}} For example: {{Tlx|Date range|1996|April|20|2002|June|9}} yields {{Date range|1996|April|20|2002|June|9}} and {{Tlx|Date range|1996|April|20|2002|June|9|<nowiki>df=y</nowiki>}} yields {{Date range|1996|April|20|2002|June|9|df=y}} Days are optional, allowing {{Tlx|Date range|''year1''{{=}}1996|''month1''{{=}}Apr|''year2''{{=}}2002|''month2''{{=}}Jun}} to yield {{Date range|year1=1996|month1=Apr|year2=2002|month2=Jun}}. == Template Data == {{TemplateDataHeader}} <templatedata> { "params": { "1": { "aliases": [ "year1" ], "label": "Start year", "type": "number", "description": "Year the event started", "example": "1920", "required": true }, "2": { "aliases": [ "month1" ], "label": "Start month", "type": "string", "description": "Month the event started", "example": "June", "required": true }, "3": { "aliases": [ "day1" ], "label": "Start day", "type": "string", "suggested": true, "description": "Day the event started", "example": "9" }, "4": { "aliases": [ "year2" ], "label": "End year", "type": "number", "description": "Year the event ended", "example": "1969", "required": true }, "5": { "aliases": [ "month2" ], "label": "End month", "type": "string", "description": "Month the event ended", "example": "April", "required": true }, "6": { "aliases": [ "day2" ], "label": "End day", "type": "string", "description": "Day of month the event ended", "example": "20", "suggested": true }, "df": { "label": "Day first?", "description": "if 'y' or 'yes', day comes before month", "type": "string", "aliases": [ "dayfirst" ] } }, "description": "Represents a range of dates." } </templatedata> == See also == *{{tlx|Date range and age}} *{{tlx|Date range and age in years, months, weeks and days}} *{{tlx|Age in years, months, weeks and days}} *[[Wikipedia:Age calculation templates]] <includeonly>{{sandbox other|| <!-- Categories below this line, please; interwikis at Wikidata --> }}</includeonly>
Edit summary
(Briefly describe your changes)
Please note that all contributions to A2wiki 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
A2wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:=
(
edit
)
Template:Date range
(
edit
)
Template:Documentation subpage
(
edit
)
Template:MONTHNAME
(
edit
)
Template:MONTHNUMBER
(
edit
)
Template:Mbox
(
edit
)
Template:Nowrap
(
edit
)
Template:Sandbox other
(
edit
)
Template:Strong
(
edit
)
Template:TemplateDataHeader
(
edit
)
Template:TemplateData header
(
edit
)
Template:Template link expanded
(
edit
)
Template:Template other
(
edit
)
Template:Template parameter usage
(
edit
)
Template:Terminate sentence
(
edit
)
Template:Tlx
(
edit
)
Template:Yesno
(
edit
)
Template:Yesno-no
(
edit
)
Module:Arguments
(
edit
)
Module:Check for unknown parameters
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:String
(
edit
)
Module:Template link general
(
edit
)
Module:Yesno
(
edit
)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Current events
Random page
About A2wiki
interaction
Help
Community portal
Recent changes
Upload file
Tools
What links here
Related changes
Special pages
Page information