Ашаблон:Year category name/doc
Внешний вид
Ахәҭаҷ/асекциа адырра апроцесс аԥсуа бызшәа аиҭагара ахь. Абызшәа адырра шәазҟазазар, ишәылшоит шәхы алашәырхәыр. |
Ари ашаблон Lua апрограммаҟаҵаратә бызшәа ахархәара аҭатәуп: |
A helper template which returns the bare name of the category on a given calendar year.
This is needed because the articles on years take three different formats ("YYY" indicates a number, e.g. "6", "29", "754", "938")
- All Ҳ. ҟ. years: Ҳ. ҟ. YYY
- Ҳ. ҳ. years 1 to 10: Ҳ. ҳ. YYY
- Ҳ. ҳ. years after 10: YYY
This template allows accurate links to be generated.
Usage
[акод аредакциазура]{{Year category name|YYYY}}
The parameter may be:
- A bare number for Ҳ. ҳ. years, e.g.
123
or1937
- A negative number for Ҳ. ҟ. years, e.g.
-45
or-1307
- A number preceded by "Ҳ. ҳ.", with or without a space, e.g.
Ҳ. ҳ. 17
orҲ.ҳ. 1066
- A number preceded by "Ҳ. ҟ.", with or without a space, e.g.
Ҳ.ҟ.5
orҲ. ҟ. 783
Any other input will be ignored. There are no error messages.
Examples
[акод аредакциазура]{{Year category name}}
→{{Year category name|}}
→{{Year category name|5}}
→ Ҳ. ҳ. 5{{Year category name|15}}
→ 15{{Year category name|Ҳ. ҳ. 4}}
→ Ҳ. ҳ. 4{{Year category name|Ҳ.ҳ.6}}
→ Ҳ. ҳ. 6{{Year category name|Ҳ.ҳ. 7}}
→ Ҳ. ҳ. 7{{Year category name|Ҳ.ҟ. 17}}
→ Ҳ. ҟ. 17{{Year category name|Ҳ. ҟ. 42}}
→ Ҳ. ҟ. 42{{Year category name|Ҳ.ҟ.91}}
→ Ҳ. ҟ. 91{{Year category name|-26}}
→ Ҳ. ҟ. 26{{Year category name|-319}}
→ Ҳ. ҟ. 319{{Year category name|xyz701}}
→{{Year category name|1943abc}}
→{{Year category name|Hello}}
→{{Year category name|RMS Titanic was a British passenger liner operated by the White Star Line that sank in the North Atlantic Ocean in the early morning hours of 15 April 1912}}
→
Шәахә. иара убас
[акод аредакциазура]