Template:Death date: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Patleahy
→‎Usage: Document df (day first) option.
meta>Rich Farmbrough
No edit summary
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 20: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 24 February 1993


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


"

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

See also

Template:Death date and age