Template:Title century/doc

Extracts a century number from a page title.

It recognises two formats:
 * 1) With a separating dash: XXth-century, e.g. "14th-century electric toasters" or "2nd-century hang-gliders"
 * 2) With a separating space: XXth century, e.g. "21st century in Doohoma" or "Aviation disasters in the 3rd century"

Note that unlike Title year and Title decade, it always takes the first century number in the title.

Usage
or

Examples

 * → 17
 * → 21
 * → 21
 * → 13
 * → NOTFOUND
 * → NONSENSE
 * → NONSENSE
 * → NONSENSE
 * → NONSENSE

If you want to recreate the "xxth century" in the title (after 0 AD) then you can use this template to create a year to feed into Century name from decade or year :

TemplateData
{	"params": { "1": {			"aliases": [ "nomatch" ],			"label": "No match text", "description": "If no century number 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 century number from the current page title. All parameters are optional." }