ebooksgratis.com

See also ebooksgratis.com: no banners, no cookies, totally FREE.

CLASSICISTRANIERI HOME PAGE - YOUTUBE CHANNEL
Privacy Policy Cookie Policy Terms and Conditions
Template:Birth date and age - Wikipedia, the free encyclopedia

Template:Birth date and age

From Wikipedia, the free encyclopedia


[edit] Template documentation


Contents

Usage

These templates ({{Birth date}} and {{Birth date and age}}) return a person's date of birth and optionally his/her age. The latter also have the shortcut: {{Bda}}.

Using this template rather than simply inserting the date into articles allows for the inclusion of hidden metadata about the date. This metadata can be used by web browsers and other software tools to extract the details, and display them using some other website or mapping tool, index or search them.

Syntax:

{{Birth date|year of birth|month of birth|day of birth}}

or

{{Birth date and age|year of birth|month of birth|day of birth}}
{{Bda|year of birth|month of birth|day of birth}}

Examples:

{{Birth date|1993|2|4}} returns "February 4, 1993(1993-02-04)"
{{Birth date|1993|2|04}} returns "February 4, 1993(1993-02-04)"
{{Birth date|1993|2|24}} returns "February 24, 1993(1993-02-24)"
{{Birth date and age|1993|2|4}} returns February 4, 1993 (1993-02-04) (age 15)
{{Birth date and age|1993|2|04}} returns February 4, 1993 (1993-02-04) (age 15)
{{Birth date and age|1993|2|24}} returns February 24, 1993 (1993-02-24) (age 15)

Month First (mf) and Day First (df) Options

The default output of this template is to display the month before the day. The majority of readers will see the date displayed this way because they aren't logged in and therefore don't have accounts with a date preference set. This default may not be appropriate articles about people from parts of the world where the day precedes the month in a date. In such articles the optional parameter, "df", can be set (to "y" or "yes" for example) to display the day before the month. Conversely the parameter "mf" can be set for month first, currently the default behaviour.

Examples:

{{Birth date | 1993 | 2 | 24 | df=yes }} displays "24 February 1993" to readers without a date preference.
{{Birth date and age | 1993 | 2 | 24 | df=yes }} displays "24 February 1993 (age 15)" to readers without a date preference.

hCard microformat

The templates also return the date, hidden by CSS, in the ISO 8601 format needed by hCard microformats. for example:

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

See the microformats project for details.

Notes

When only the year of a person's birth and/or death are known, or if it is desired not to state a person's full dates of birth and death for privacy reasons, use the templates {{Birth year and age}} and {{Death year and age}} instead.

Note: The template will appear broken when the parameters are left blank (as seen above).

Note: Do not use this template inside of the Persondata template as it can interfere with data extraction.

See also


aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - en - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu -