Difference between revisions of "Template:Death date and age"

From annadreambrush.com/wiki
Jump to navigation Jump to search
imported>Deskana
({{pp-template}})
imported>Johnuniq
(update from sandbox: use Module:Age for better checking of dates and more consistent results)
 
(22 intermediate revisions by 16 users not shown)
Line 1: Line 1:
{{pp-template}}
+
<includeonly>{{{{{|safesubst:}}}#invoke:age|death_date_and_age}}</includeonly><noinclude>{{documentation}}</noinclude>
[[{{MONTHNAME|{{{2|{{{month|{{{2}}}}}}}}}}} {{{3|{{{day|{{{3}}}}}}}}}]] [[{{{1|{{{year|{{{1}}}}}}}}}]] (aged&nbsp;{{age at date | {{{4|{{{year|{{{4}}}}}}}}} | {{{5|{{{month|{{{5}}}}}}}}} | {{{6|{{{day|{{{6}}}}}}}}} | {{{1|{{{year|{{{1}}}}}}}}} | {{{2|{{{month|{{{2}}}}}}}}} | {{{3|{{{day|{{{3}}}}}}}}} }})<noinclude>
 
 
 
Returns a person's date of death and his/her age at that date.
 
 
 
; Syntax<nowiki>:</nowiki>
 
: <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|</nowiki></tt>''year of death''<tt><nowiki>|</nowiki></tt>''month of death''<tt><nowiki>|</nowiki></tt>''day of death''<tt><nowiki>|</nowiki></tt>''year of birth''<tt><nowiki>|</nowiki></tt>''month of birth''<tt><nowiki>|</nowiki></tt>''day of birth''<tt><nowiki>}}</nowiki></tt>
 
 
 
; Example<nowiki>:</nowiki>
 
<nowiki>{{death date and age|1993|2|24|1941|4|12}}</nowiki><br>returns {{death date and age|1993|2|24|1941|4|12}}
 
 
 
<span style="font-weight:bold; color:#CC0000">Note</span>: The template will appear broken when the parameters are left blank (as seen above).
 
 
 
==See also==
 
[[Template:Birth date and age]]
 
[[Category:Date mathematics templates|{{PAGENAME}}]]
 
</noinclude>
 

Latest revision as of 23:52, 7 January 2019

Template documentation[create]