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  














Template:Age in years and days nts






العربية
تۆرکجه

 / Bân-lâm-gú

Bosanski
فارسی

Հայերեն
ि
Hrvatski
Bahasa Indonesia
Kurdî
ि






Oʻzbekcha / ўзбекча
Português
Română
Simple English
سنڌي
Slovenščina
کوردی
Српски / srpski
Suomi
Tagalog

Türkçe
اردو
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
 

(Redirected from Template:Ayd)

This template returns the number of full years and surplus days between two specified dates. If only one date is entered, the template returns the number of full years and surplus days between the specified date and today's date.

A hidden sort key is included so values produced by this template will work properly in sortable tables. The sort key is calculated from the number of days between the given dates, and is compatible with {{number table sorting}}.

This is temporary documentation resulting from Template talk:Age in years and days#Google problems which shows problems when {{age in years and days}} outputs a hidden sort key. It is proposed that {{age in years and days}} will not output a hidden sort key, so {{age in years and days nts}} is needed for when a sort key is wanted.

Usage

For convenience, the redirect {{ayd}} can be used. Each date can be entered in a single parameter, or each date can be entered as three parameters (year, month, day).

An error is shown if an entered date is not valid (1900 was not a leap year).


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

Categories: 
Lua-based templates
Date mathematics templates
Hidden category: 
Wikipedia extended-confirmed-protected templates
 



This page was last edited on 13 January 2022, at 17:59 (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