Ашаблон:Century name from title year
Внешний вид
Ахәҭаҷ/асекциа адырра апроцесс аԥсуа бызшәа аиҭагара ахь. Абызшәа адырра шәазҟазазар, ишәылшоит шәхы алашәырхәыр. |
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.
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. Акатегориа:1798 in Ireland, returns →18-тәи ашәышықәса{{Century name from title year|dash}}
When used on e.g. Акатегориа:1910s in Ireland, returns →20-тәи ашәышықәсазтәи{{Century name from title year}}
When used on e.g. Акатегориа:Bantry, returns →{{Century name from title year|nomatch=FAIL}}
When used on e.g. Акатегориа:Ballyjamesduff, returns →FAIL
Implementation
[акод аредакциазура]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