Difference between revisions of "Template:Death date"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(Add a df (day first) option to this template. See Template talk:Euro birth date#Suggested move.)
(Usage: Document df (day first) option.)
Line 7: Line 7:
  
 
; Example<nowiki>:</nowiki>
 
; Example<nowiki>:</nowiki>
<nowiki>{{death date and age|1993|2|24}}</nowiki><br>returns {{death date|1993|2|24}}
+
<nowiki>{{Death date | 1993 | 2 | 24}}</nowiki><br>returns {{Death date | 1993 | 2 | 24}}
  
<span style="font-weight:bold; color:#CC0000">Note</span>: The template will appear broken when the parameters are left blank.
+
An optional parameter, df, can be set to "yes" to display the day before the month. This is primarily used in articles about people from parts of the world where the day precedes the month in a date.
 +
 
 +
; Example<nowiki>:</nowiki>
 +
 
 +
<nowiki>{{Death date | 1993 | 2 | 24 | df=yes}}</nowiki><br> returns "{{Death date | 1993 | 2 | 24 | df=yes}}"
 +
 
 +
'''Note''': The template will appear broken when the parameters are left blank.
  
 
==See also==
 
==See also==

Revision as of 15:29, 20 July 2007

Usage

Returns a person's date of death.

Syntax:
{{Death date|year of death|month of death|day of death}}
Example:

{{Death date | 1993 | 2 | 24}}
returns February 24, 1993( 1993 -02-24)

An optional parameter, df, can be set to "yes" to display the day before the month. This is primarily used in articles about people from parts of the world where the day precedes the month in a date.

Example:

{{Death date | 1993 | 2 | 24 | df=yes}}
returns "24 February 1993( 1993 -02-24)"

Note: The template will appear broken when the parameters are left blank.

See also

Template:Death date and age