Template:Title monthname/doc

Extracts from a page title the name of a month (January, February, March etc). Returns nothing if there is no match.

Note that the monthname in the title must be properly capitalised. "October" will be matched, but "october" or "OCTOBER" will be ignored.

Some options allow its behaviour to be configured.

Basic usage
This usage will return the first word in the title which matches the correctly-capitalised name of a month.

If no match is found, it returns an empty string. This allows its simple use in templates, e.g.

Optional parameters
Three optional parameters are available:


 * 1) value
 * This forces the template to use a title other than the current page
 * 1) value
 * This parameter is used to specify a message to be generate if no match is found. For example
 * Default output  →
 * with nomatch  →
 * 1) number
 * If multiple month names are found, this specifies which match to return, where the first match is match= 1. If a negative number is specified then a match is returned counting from the last match. Hence match = -1 is the same as requesting the last match. Defaults to 1.
 * Examples:

TemplateData
{	"params": { "match": { "label": "Match Instance", "description": "If multiple monthnames are found, this specifies which match to return, where the first match is match= 1. If a negative number is specified then a match is returned counting from the last match. Hence match = -1 is the same as requesting the last match. Defaults to 1.", "type": "number", "default": "1" },		"nomatch": { "label": "No match text", "description": "If no monthname is found, output the \"nomatch\" value. Defaults to blank.", "type": "string" },		"page": { "label": "Override page title", "description": "Specified a page title to use other than the current page. If left blank, the template will use the title of the current page", "type": "wiki-page-name", "default": "" }	},	"description": "Extracts a 3- or 4-digit year from the current page title. All parameters are optional." }