ವಿಷಯಕ್ಕೆ ಹೋಗು

ಟೆಂಪ್ಲೇಟ್:Birth date and age text/doc

ವಿಕಿಪೀಡಿಯ, ಒಂಜಿ ಸೊತಂತ್ರ ವಿಶ್ವಕೋಶ

{{Birth date and age}} displays a person's birth date and age. Besides calculating the age of the person, the benefit of using this template is to allow for the inclusion of hidden microformat dates, which may be indexed or searched by software tools.

Note: The template may not calculate the age correctly if a full date (month, day, year) is not provided. For example, a person who was born in 1941 could be either ವಿವರೊ ದೋಸೊ: ಗೊತ್ತಾವಂದಿನ ಚಿನ್ನೆಲು "". or ವಿವರೊ ದೋಸೊ: ಗೊತ್ತಾವಂದಿನ ಚಿನ್ನೆಲು ""., depending on whether they have reached their birthday in the current year:

{{Birth-date and age|1941}} → Did not recognize date. Try slightly modifying the date in the first parameter. (age Error: Need valid year, month, day)
{{Birth-date and age|ಜನವರಿ 1941}} → Not recognized as a date. Years must have 4 digits (use leading zeros for years < 1000). (age Error: Need valid year, month, day)

When only the year is known, consider using {{Birth year and age}} instead:

{{Birth year and age|1941}} → 1941 (age ವಿವರೊ ದೋಸೊ: ಗೊತ್ತಾವಂದಿನ ಚಿನ್ನೆಲು "".ವಿವರೊ ದೋಸೊ: ಗೊತ್ತಾವಂದಿನ ಚಿನ್ನೆಲು "".)ವಿವರೊ ದೋಸೊ: ಗೊತ್ತಾವಂದಿನ ಚಿನ್ನೆಲು "".
{{Birth year and age|1941|ವಿವರೊ ದೋಸೊ: ಗೊತ್ತಾವಂದಿನ ಚಿನ್ನೆಲು "".}} → 1941 (age ವಿವರೊ ದೋಸೊ: ಗೊತ್ತಾವಂದಿನ ಚಿನ್ನೆಲು "".ವಿವರೊ ದೋಸೊ: ಗೊತ್ತಾವಂದಿನ ಚಿನ್ನೆಲು "".)ವಿವರೊ ದೋಸೊ: ಗೊತ್ತಾವಂದಿನ ಚಿನ್ನೆಲು "".
  • {{Birth-date and age|birth date}}
  • {{Birth-date and age|birth date|wikitext to display in place of 'birth date'. Like the right hand parameter in a wikilink, this could be alternate text, links, templates etc.}}
ParameterStatusDescriptionDefault
|1= requiredBirth date. May be year only, year and month, year month and day, expressed in natural formats: e.g.: 24 August 1953, 1955-08-25, Sunday, December 7, 1941. If parameter three is not specified, the birth date is displayed in exactly this format. This value as well as parameter 2 may not include links. If links or templates that do not evaluate as recognizable dates are desired, use parameter 2.
|2= optionalThe birth date to display. This may include links or templates, or any combination of them, and overrides parameter 1.|1=
|bce= optionalIf birth date is BC, set to "b".
|gregorian= optionalIf Julian date is used, this parameter is required. The date provided is used for emitting the correct microformat translation of the birth date.|1=
|dt= optionalThis value if present is the ISO8601 value emitted to indicate microformat birth date. It overrides any calculated value.

This template also returns the date, hidden by CSS, in the ISO 8601 standard.[] [] For example:

(<span class="bday">1993-02-24</span>)

Note: For the "foundation", "built" and similar set-up dates of companies, buildings etc., use {{start date}} (this will work for year-only or month-year dates). Because the ISO 8601 standard requires the Gregorian calendar, this template should not be used if the date is given in the Julian calendar.

For further information, visit the microformats project.

Examples of {{Birth-date and age}} (colors for emphasis only)
Month first format: Sample below displays Did not recognize date. Try slightly modifying the date in the first parameter. (age Error: Need valid year, month, day), with invisible microformat date: 1941-04-12
{{Birth-date and age|April 12, 1941}}
Day first format: Sample below displays Did not recognize date. Try slightly modifying the date in the first parameter. (age Error: Need valid year, month, day), with invisible microformat date: 1941-04-12
{{Birth-date and age|12 April 1941}}
Year only, year and month only: Sample below displays Did not recognize date. Try slightly modifying the date in the first parameter. (age Error: Need valid year, month, day), with invisible microformat date: 1941
{{Birth-date and age|1941}}
Demo of ISO date, as well as alternate displays. Sample below displays Did not recognize date. Try slightly modifying the date in the first parameter. (age Error: Need valid year, month, day), with invisible microformat date: 1941-04-12
{{Birth-date and age|1941-04-12|Twelfth of April, 1941}}
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Birth date and age text in articles based on its TemplateData.

TemplateData for Birth date and age text

Template parameters

ಪರಿಮಿತಿಇವರೊಇದೊಸ್ತಿತಿ
11

no description

ಗೊತ್ತಿಜ್ಜಾಂದಿನಬೋಡಾಯಿನ
22

no description

ಗೊತ್ತಿಜ್ಜಾಂದಿನಐಚಿಕೊ
bcebce

no description

ಗೊತ್ತಿಜ್ಜಾಂದಿನಐಚಿಕೊ
gregoriangregorian

no description

ಗೊತ್ತಿಜ್ಜಾಂದಿನಐಚಿಕೊ
dtdt

no description

ಗೊತ್ತಿಜ್ಜಾಂದಿನಐಚಿಕೊ

Microformat output

[ಸಂಪೊಲಿಪುಲೆ]

Birth date and age templates:

{{Birth date and age text}}

Did not recognize date. Try slightly modifying the date in the first parameter. (age Error: Need valid year, month, day)

{{Birth date and age text/sandbox}}

Error: expandTemplate: template "Birth date and age text/sandbox" does not exist

{{Birth date and age text}}

Did not recognize date. Try slightly modifying the date in the first parameter. (age Error: Need valid year, month, day)

{{Birth date and age text/sandbox}}

Error: expandTemplate: template "Birth date and age text/sandbox" does not exist

Supporting templates

[ಸಂಪೊಲಿಪುಲೆ]

Alternative template

[ಸಂಪೊಲಿಪುಲೆ]

Tracking categories

[ಸಂಪೊಲಿಪುಲೆ]
  1. "Date Design Pattern". Microformats Wiki. April 7, 2013.
  2. "hCalendar closed issues". Microformats Wiki. August 28, 2009. Specifically rejects supporting the Julian calendar.