Extracts a 4-digit year from the current page title, and returns the name of the century in which that year was.
Usage
{{Century name from title year}}
Mostly used in categorisation.
Parameters
All parameters are optional
The single word "dash" changes the output from "nth century" to "nth-century"
A "nomatch" parameter may be used to specify text to be return if the input cannot be processed. Default behaviour is return an empty string if there is no match
Examples
{{Century name from title year}} When used on e.g.
Category:1798 in Ireland, returns → 18th century
{{Century name from title year|dash}} When used on e.g.
Category:1910s in Ireland, returns → 20th-century
{{Century name from title year}} When used on e.g.
Category:Bantry, returns →
{{Century name from title year|nomatch=FAIL}} When used on e.g.
Category:Ballyjamesduff, returns → FAIL
Extracts a 4-digit year from the current page title, and returns the name of the century in which that year was.
Usage
{{Century name from title year}}
Mostly used in categorisation.
Parameters
All parameters are optional
The single word "dash" changes the output from "nth century" to "nth-century"
A "nomatch" parameter may be used to specify text to be return if the input cannot be processed. Default behaviour is return an empty string if there is no match
Examples
{{Century name from title year}} When used on e.g.
Category:1798 in Ireland, returns → 18th century
{{Century name from title year|dash}} When used on e.g.
Category:1910s in Ireland, returns → 20th-century
{{Century name from title year}} When used on e.g.
Category:Bantry, returns →
{{Century name from title year|nomatch=FAIL}} When used on e.g.
Category:Ballyjamesduff, returns → FAIL