සැකිල්ල:Year article/doc
Appearance
This is a documentation subpage for සැකිල්ල:Year article. It may contain usage information, categories and other content that is not part of the original සැකිල්ල page. |
මෙම සැකිල්ල ලුවා භාවිතා කරයි: |
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 ක්රිස්තු පූර්ව (911 BC being a redirect from the subtopic)
- {{Year article|0}} → Year zero
- {{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)
See also
[සංස්කරණය]TemplateData
[සංස්කරණය]This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.
TemplateData for Year article
Output the title of the article in which a year appears
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | The year as an integer
| Number | required |
2 | 2 | Offset as a number of years
| Number | optional |