Template:Hcard-bday
From Wikipedia, the free encyclopedia
It has been suggested that this page or section be merged into Birth date and age. (Discuss) |
{{{1}}}, b. {{{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}}}
[edit] Template documentation
Contents |
[edit] Purpose
This template creates an inline hCard microformat for a person, with their date of birth (and optionally age, if living), using either {{birth date}} or {{birth date and age}}.
For inline hCards for a building, organisation or place, see {{Hcard-geo}}).
[edit] Use
The template has five parameters:
- name = the person's name (becomes hCard's "fn" class).
- template type = "birth date" or "birth date and age" (emits data formatted in hCard's bday class; do not use the latter for dead people)
- birth year = four digits
- birth month = two digits
- birth day = two digits
[edit] Copyable code
Overwrite place-holder text; remove " and age" if subject is dead:
{{hcard-bday|PersonName|birth date and age|YYYY|MM|DD}}
[edit] Examples
[edit] Living
lorem {{hcard-bday |Tim Berners-Lee |birth date and age |1955 |06 |08 }} ipsum
which may be written in one line, as:
lorem {{hcard-bday|Tim Berners-Lee|birth date and age|1955|06|08}} ipsum
gives:
lorem Tim Berners-Lee, b. June 8, 1955 ipsum
[edit] Dead
For a dead person (or where age is simply not desired)
lorem {{hcard-bday |Jimi Hendrix |birth date |1942 |11 |27 }} ipsum
gives:
lorem Jimi Hendrix, b. November 27, 1942 ipsum