Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Examples  





3 See also  



3.1  TemplateData  
















Template:Year article






تۆرکجه
فارسی

Kurdî
Bahasa Melayu



Simple English
ி
Tiếng Vit
 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


AD 1

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

See also

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Year article in articles based on its TemplateData.

TemplateData for Year article

Output the title of the article in which a year appears

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
11

The year as an integer

Example
2019
Numberrequired
22

Offset as a number of years

Default
0
Example
5
Numberoptional

Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Year_article&oldid=1039154739"

Categories: 
Lua-based templates
Historical period templates
Hidden categories: 
Wikipedia template-protected templates
Templates using TemplateData
 



This page was last edited on 17 August 2021, at 01:22 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki