• ముంగిలి
  • యాదృచ్చికం
  • చుట్టుపక్కల
  • లాగినవండి
  • అమరికలు
  • విరాళాలు
  • వికీపీడియా గురించి
  • అస్వీకారములు
వికీపీడియా

మూస:Age in years, months and days

  • భాష
  • వీక్షించు
  • సవరించు
Template documentation[view] [edit] [history] [purge]
This మూస employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here.

This template returns the number of full years, then surplus months, then surplus days between two specified dates. If the second set of parameters is not included, it will return the number of years, months and days between a specified date and today's date. The words "year", "month" and "day" are plural when appropriate.

The years and months are separated by a comma. Since serial commas are optional and use varies, this template does not automatically place a comma after the months. If a serial comma is desired, adding |sc=y to the template invocation will include one.

See Wikipedia:Age calculation templates for more information on using this kind of template.

విషయాలు

  • 1 Syntax
  • 2 Examples
  • 3 Notes
  • 4 TemplateData
    • 4.1 See also

Syntax సవరించు

{{Age in years, months and days|year= |month= |day= }} or
{{Age in years, months and days|yyyy|mm|dd|yyyy2|mm2|dd2}}

Examples సవరించు

{{Age in years, months and days|year=2001|month=1|day=15}} returns "22 సంవత్సరాలు, 8 నెలలు, 13 రోజులు"
{{Age in years, months and days|2001|01|15|2008|09|05}} returns "7 సంవత్సరాలు, 7 నెలలు, 21 రోజులు"
{{Age in years, months and days|2016|8|4|2016|9|5}} returns "1 నెల, 1 రోజు"

Notes సవరించు

This template can handle an ambiguous start date:

{{Age in years, months and days|year=2010|month=9}} returns "12 or 13 సంవత్సరాలు"
{{Age in years, months and days|2009|6||2011|2|21}} returns "1 సంవత్సరం, 7 or 8 నెలలు"

But it cannot handle an ambiguous end date:

{{Age in years, months and days|2012|11|2|2016|4}} returns "3 సంవత్సరాలు, 4 or 5 నెలలు"
{{Age in years, months and days|2012|11|2|2017}} returns "4 or 5 సంవత్సరాలు"

Since the length of a month varies, the number of days to roll over the number of months varies.

{{Age in years, months and days|2007|3|12|2015|6|11}} returns "8 సంవత్సరాలు, 2 నెలలు, 30 రోజులు"
{{Age in years, months and days|2007|3|12|2015|7|11}} returns "8 సంవత్సరాలు, 3 నెలలు, 29 రోజులు"

To add a serial comma specify |sc=y.

{{Age in years, months and days|year=2001|month=1|day=15|sc=y}} returns "22 సంవత్సరాలు, 8 నెలలు, and 13 రోజులు"
{{Age in years, months and days|2001|1|15|2008|9|5|sc=y}} returns "7 సంవత్సరాలు, 7 నెలలు, and 21 రోజులు"
{{Age in years, months and days|సమాసంలో (Expression) లోపం: < పరికర్తను (operator) ఊహించలేదు|సమాసంలో (Expression) లోపం: < పరికర్తను (operator) ఊహించలేదు|సమాసంలో (Expression) లోపం: < పరికర్తను (operator) ఊహించలేదు|sc=y}} returns "Error: Need valid year, month, day"

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 in articles based on this TemplateData.

TemplateData for Age in years, months and days

This template returns the number of full years, surplus months, and surplus days between two specified dates. If the second set of parameters is not included, it will return the number of years, months and days between a specified date and today's date.

మూస పరామితులు[టెంప్లేట్‌డేటాను నిర్వహించు]

పరామితివివరణరకంస్థితి
Year ('from' date)1 year

The year of the (first) date

సంఖ్యతప్పనిసరి
Month ('from' date)2 month

Number of the month of the (first) date

సంఖ్యతప్పనిసరి
Day of month ('from' date)3 day

The day of the month of the (first) date

సంఖ్యఐచ్చికం
Year ('to' date)4

The year of the 'to' date, if required

అప్రమేయం
the current year
సంఖ్యఐచ్చికం
Month ('to' date)5

Number of the month of the 'to' date, if required

అప్రమేయం
the current month
సంఖ్యఐచ్చికం
Day of month ('to' date)6

The day of the month of the 'to' date, if required

అప్రమేయం
the current day
సంఖ్యఐచ్చికం
Serial commasc

Enter 'y' to turn on the serial comma after the months

అప్రమేయం
none
లైనుఐచ్చికం

See also సవరించు

  • Wikipedia:Age calculation templates
  • {{User Wikipedian For}}
  • {{User admin since}}


  • v
  • t
  • e
Birth, death and age templates
birth, death, age
Combined BDA template Description / use 
{{BirthDeathAge}}Combines functions of {{Birth date}}, {{birth-date}}, {{birth date and age}}, {{birth year and age}}, {{death date}}, {{death-date}}, {{death date and age}}, and {{death year and age}}.
Birth templates Description / use 
{{Birth date}}To display a birth date and related hidden metadata.
{{Birth-date}}
{{Birth date and age}}{{Birth date}} with suffix '(age N)'.
{{Birth date and age2}}{{Birth date and age}} plus age as of a specified date.
{{Birth-date and age}}As {{Birth date and age}}, but accepts dates in text form ('15 June 1950', 'June 15, 1950', 'June 1950', etc.).
{{Birth year and age}}Year of birth and approximate age.
{{Birth based on age as of date}}To display approximate birth year and current age given a particular date (e.g. when a dated reference mentions the age of a person), only works for living people.
{{Birth based on age at death}}To display approximate birth year based on age at death, or on age at a specific date if death date isn't known.
Death templates Description / use 
{{Death date}}To display a death date and related hidden metadata.
{{Death-date}}
{{Death date and age}}{{Death date}} with suffix '(aged N)'; also called with {{event date and age}}.
{{Death-date and age}}As {{Death date and age}}, but accepts dates in text form ('15 June 1950', 'June 15, 1950', 'June 1950', etc.).
{{Death date and given age}}To display a death date and specified age.
{{Death year and age}}To display a year of, and approximate age at death.
age only
Conventional age templates Description / use 
{{Age in years, months, weeks and days}}Number of complete years, months, weeks and days between two dates.
{{Age in years, months and days}}Number of complete years, months and days between two dates.
{{Age in years and months}}Number of complete years and remaining months between two dates.
{{Age in years and days}}Number of complete years and remaining days between two dates.
{{Age in years and days nts}}{{Age in years and days}} with output formatted for use in number sortable tables.
{{Age in decimal years}}Number of years between two dates, rounded to the specified number of decimal places.
{{Age in years}}Number of years between two dates.
{{Age in years nts}}{{Age in years}} with output formatted for use in number sortable tables.
{{Age in months}}Number of months between two dates.
{{Age in weeks and days}}Number of weeks and days between two dates.
{{Age in weeks}}Number of weeks between two dates.
{{Age in days}}Age in days between two dates.
{{Age in days nts}}{{Age in days}} with output formatted for use in number sortable tables.
Reverse-determined age template Description / use 
{{Age}}Age based on number of complete years between two dates.
{{Age nts}}{{Age}} with output formatted for use in number sortable tables.
{{Age as of date}}Current age (in years) from a known age at a specified date.
{{Age for infant}}Current age for infant: months and days up to one year, years and months up to three years, and years beyond age 3.
start / end dates
Date-focused templates Description / use 
{{Start date}} / {{End date}}
{{Start-date}} / {{End-date}}
{{Start date and age}}
{{End date and age}}
miscellaneous
Template Description / use 
{{OldStyleDate}}Dates in Julian calendar.
{{OldStyleDateDY}}As {{OldStyleDate}} but used when Julian / Gregorian dates fall in different years.
{{OldStyleDateNY}}As {{OldStyleDate}} but without the year.
{{Unidentified for}}
{{Missing for}}
  • About age calculation templates
  • Date mathematics templates
The above documentation is transcluded from మూస:Age in years, months and days/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
"https://te.wikipedia.org/w/index.php?title=మూస:Age_in_years,_months_and_days&oldid=3148662" నుండి వెలికితీశారు
Last edited on 4 మార్చి 2021, at 10:25

Languages

      ఈ పేజీ ఇతర భాషలలో లేదు.

      వికీపీడియా
      • ఈ పేజీలో చివరి మార్పు 4 మార్చి 2021న 10:25కు జరిగింది.
      • అదనంగా సూచించని పక్షంలో పాఠ్యం CC BY-SA 4.0 క్రింద లభ్యం
      • గోప్యతా విధానం
      • వికీపీడియా గురించి
      • అస్వీకారములు
      • Code of Conduct
      • వాడుక నియమాలు
      • డెస్కుటాప్
      • వృద్ధికారులు
      • గణాంకాలు
      • కుకీ ప్రకటన