Template:Date range/doc

To use


For example:

yields

and

yields

Days are optional, allowing

to yield

.

Template Data
{	"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." }