This template is used on approximately 7,100 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 decade from the current page title, and returns the name of the century in which that decade was.
{{Century name from title decade}}
Mostly used in categorisation.
All parameters are optional
{{Century name from title decade}}
21st century
{{Century name from title decade|dash}}
20th-century
{{Century name from title decade}}
{{Century name from title decade|nomatch=FAIL}}
FAIL
This template is implemented by using {{Century name from decade or year}} around {{Title decade}}.
The same effect can be achieved by using {{Century name from decade or year|{{Title decade}}s}}
... but this wrapper makes more easily-read markup