Template:Death date and age: Difference between revisions

From Vigyanwiki
(rm {{pp-template}} - this seriously messes up the formatting in transclusion to infoboxes)
m (50 revisions imported from alpha:Template:Death_date_and_age)
 
(24 intermediate revisions by 19 users not shown)
Line 1: Line 1:
[[{{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>
<includeonly>{{{{{|safesubst:}}}#invoke:age|death_date_and_age}}</includeonly><noinclude>{{documentation}}</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 09:39, 29 April 2023

Template documentation