Difference between revisions of "Template:Death date"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(Usage: Document df (day first) option.)
Line 1: Line 1:
<includeonly>{{#ifeq:{{{df}}}|yes|[[{{{3}}} {{MONTHNAME|{{{2}}}}}]]|[[{{MONTHNAME|{{{2}}}}} {{{3}}}]]}} [[{{{1}}}]]</includeonly><noinclude>
+
<includeonly>{{#if:{{{df}}}|[[{{{3}}} {{MONTHNAME|{{{2}}}}}]]|[[{{MONTHNAME|{{{2}}}}} {{{3}}}]]}} [[{{{1}}}]]</includeonly><noinclude>
 
== Usage ==
 
== Usage ==
 
Returns a person's date of death.
 
Returns a person's date of death.
Line 23: Line 23:
  
 
</noinclude>
 
</noinclude>
 +
 +
----

Revision as of 16:18, 27 August 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