Ашаблон:Century name from title decade/doc
Ахәҭаҷ/асекциа адырра апроцесс аԥсуа бызшәа аиҭагара ахь. Абызшәа адырра шәазҟазазар, ишәылшоит шәхы алашәырхәыр. |
Extracts a 4-digit decade from the current page title, and returns the name of the century in which that decade was.
Usage
аредакциазура{{Century name from title decade}}
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. The default behaviour is to return an empty string if there is no match
Examples
аредакциазура{{Century name from title decade}}
When used on e.g. Акатегориа:2010s in Northern Ireland, returns →21-тәи ашәышықәса
{{Century name from title decade|dash}}
When used on e.g. Акатегориа:1970s in Northern Ireland, returns →20-тәи ашәышықәса
{{Century name from title decade}}
When used on e.g. Акатегориа:Belfast, returns →{{Century name from title decade|nomatch=FAIL}}
When used on e.g. Акатегориа:Ballymena, returns →FAIL
Implementation
аредакциазура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
Шәахә. иара убас
аредакциазураАшаблон:String-handling templates