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

From annadreambrush.com/wiki
Jump to navigation Jump to search
imported>Adambro
m (Removed new line after <noinclude>{{pp-template}}</noinclude> per talk)
imported>MZMcBride
(made change per talk request, +/doc to reduce size)
Line 1: Line 1:
<noinclude>{{pp-template}}</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>
+
<noinclude>{{pp-template}}</noinclude>{{#ifeq:{{{df}}}|yes|[[{{{3|{{{day|{{{3}}}}}}}}} {{MONTHNAME|{{{2|{{{month|{{{2}}}}}}}}}}}]]|[[{{MONTHNAME|{{{2|{{{month|{{{2}}}}}}}}}}} {{{3|{{{day|{{{3}}}}}}}}}]]}} [[{{{1|{{{year|{{{1}}}}}}}}}]] (aged {{age at date | {{{4|{{{year|{{{4}}}}}}}}} | {{{5|{{{month|{{{5}}}}}}}}} | {{{6|{{{day|{{{6}}}}}}}}} | {{{1|{{{year|{{{1}}}}}}}}} | {{{2|{{{month|{{{2}}}}}}}}} | {{{3|{{{day|{{{3}}}}}}}}} }})<noinclude>
 
+
{{Template:Death date and age/doc}}
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}}]]
 
 
 
[[vi:Tiêu bản:Ngày mất và tuổi]]
 
 
</noinclude>
 
</noinclude>

Revision as of 04:24, 17 May 2007

[[ {{{3}}}]] [[{{{1}}}]] (aged Template:Age at date) Template:Death date and age/doc