This template is used on approximately 7,300 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Preview message: Transclusion count updated automatically (see documentation). |
Extracts a 4-digit year from the current page title, and returns the name of the century in which that year was.
{{Century name from title year}}
Mostly used in categorisation.
All parameters are optional
{{Century name from title year}}
18th century
{{Century name from title year|dash}}
20th-century
{{Century name from title year}}
{{Century name from title year|nomatch=FAIL}}
FAIL
This template is implemented by using {{Century name from decade or year}} around {{Title year}}.
The same effect can be achieved by using {{Century name from decade or year|{{Title year}}}}
... but this wrapper makes more easily-read markup