Difference between revisions of "Template:Hcard-bday-place/doc"

From blackwiki
Jump to navigation Jump to search
imported>FrescoBot
m (Bot: links syntax and spacing)
imported>WOSlinker
m (add {{documentation subpage}})
Line 1: Line 1:
 +
{{documentation subpage}}
 
==Purpose==
 
==Purpose==
 
This template creates an inline [[hCard]] [[microformat]] for a person, with their date of birth (and optionally age, if living), using either {{tl|birth date}} or {{tl|birth date and age}}.
 
This template creates an inline [[hCard]] [[microformat]] for a person, with their date of birth (and optionally age, if living), using either {{tl|birth date}} or {{tl|birth date and age}}.

Revision as of 23:33, 1 November 2018

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}}).

Use

The template has six parameters:

  1. name = the person's name (becomes hCard's "fn" class).
  2. template type = "birth date" (emits data formatted in hCard's bday class)
  3. birth year = four digits
  4. birth month = two digits
  5. birth day = two digits
  6. birthplace (will be wikilinked in output)

Example


{{hcard-bday-place|'''Marc Blume'''|birth date|1973|12|28|Lüdinghausen}} is a [[Germans|German]] sprinter.

Gives:

Marc Blume (born (1973-12-28)December 28, 1973 in Lüdinghausen) is a German sprinter.

Note that there is no line break after the closing }}