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

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
m (add {{documentation subpage}})
imported>Vanisaac
m (→‎Example: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other and <includeonly>)
 
Line 29: Line 29:
 
Note that there is no line break after the closing <code><nowiki>}}</nowiki></code>
 
Note that there is no line break after the closing <code><nowiki>}}</nowiki></code>
  
 +
<includeonly>{{Sandbox other||
 
[[Category:Templates generating hCards|{{PAGENAME}}]]
 
[[Category:Templates generating hCards|{{PAGENAME}}]]
 +
 +
}}</includeonly>

Latest revision as of 16:42, 25 April 2020

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