Template:Year article
AD 1
| This template is used on approximately 11,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| This template uses 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}}→ 10s{{Year article|1000|66}}→ 1066{{Year article|-55}}→ 55 BC{{Year article|-55|100}}→ 40s (there being no year zero){{Year article|500|-80}}→ AD 420 (420 being a disambiguation page){{Year article|-911}}→ 910s BC (911 BC being a redirect from the subtopic){{Year article|0}}→ Year zero{{Year article|0|5}}→ AD 5 (Five years after where year zero would have been had it existed){{Year article|0|-5}}→ 0s BC (Five years before where year zero would have been had it existed)
See also
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 |
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.