Ашаблон:Year article/doc
Внешний вид
Ахәҭаҷ/асекциа адырра апроцесс аԥсуа бызшәа аиҭагара ахь. Абызшәа адырра шәазҟазазар, ишәылшоит шәхы алашәырхәыр. |
Ари ашаблон Lua апрограммаҟаҵаратә бызшәа ахархәара аҭатәуп: |
Year article outputs the title of the article in which a year appears.
Usage
[акод аредакциазура]{{ Year article | 1=year | 2=offset }}
The template requires one parameter: the year, supplied as an integer. Positive numbers are AD; negative numbers are BC. An optional offset may be given as a number of years. The output is the title of the article in which the year appears. (If the year is has no article then the output is the title which might be expected, e.g. AD 5678 or 5678 BC.) Year zero with an offset is treated as if the year were inserted between 1 BC and AD 1.
Examples
[акод аредакциазура]{{Year article|10}}
→ 10{{Year article|1000|66}}
→ 1066{{Year article|-55}}
→ Ҳ. ҟ. 55{{Year article|-55|100}}
→ 46 (there being no year zero){{Year article|500|-80}}
→ 420 (420 being a disambiguation page){{Year article|-911}}
→ Ҳ. ҟ. 911 (Ашаблон:-r being a redirect from the subtopic){{Year article|0}}
→ Акымзарак шықәса{{Year article|0|5}}
→ 5 (Five years after where year zero would have been had it existed){{Year article|0|-5}}
→ Ҳ. ҟ. 5 (Five years before where year zero would have been had it existed)
Шәахә. иара убас
[акод аредакциазура]TemplateData
[акод аредакциазура]Здесь приведена документация в формате TemplateData для данного шаблона, которая используется в визуальном редакторе и прочих инструментах.
Документация TemplateData для шаблона: Year article
Output the title of the article in which a year appears
Параметр | Описание | Тип | Статус | |
---|---|---|---|---|
1 | 1 | The year as an integer
| Число | обязательный |
2 | 2 | Offset as a number of years
| Число | необязательный |