Template:Datebio: Difference between revisions

Template page
(Created page with "({{{birthmonth|}}} {{{birthday|}}}, {{{birthyear|}}} — {{#if:{{{deathmonth|}}}{{{deathday|}}}{{{deathyear|}}}|{{{deathmonth}}} {{{deathday}}}, {{{deathyear}}})|present)}}")
 
mNo edit summary
 
Line 1: Line 1:
({{{birthmonth|}}} {{{birthday|}}}, {{{birthyear|}}} — {{#if:{{{deathmonth|}}}{{{deathday|}}}{{{deathyear|}}}|{{{deathmonth}}} {{{deathday}}}, {{{deathyear}}})|present)}}
<includeonly>({{{birthmonth|}}} {{{birthday|}}}, {{{birthyear|}}} — {{#if:{{{deathmonth|}}}{{{deathday|}}}{{{deathyear|}}}|{{{deathmonth}}} {{{deathday}}}, {{{deathyear}}})|present)}}</includeonly><noinclude>
Usage:
<nowiki>
{{datebio
|birthday =
|birthmonth =
|birthyear =
|deathday =
|deathmonth =
|deathyear =
}}</nowiki>
Example:
<nowiki>
{{datebio
|birthday = 19th
|birthmonth = June
|birthyear = 1967
|deathday = 1st
|deathmonth = March
|deathyear = 2001
}}</nowiki>
Produces:
{{datebio
|birthday = 19th
|birthmonth = June
|birthyear = 1967
|deathday = 1st
|deathmonth = March
|deathyear = 2001
}}
 
Living persons can have their death dates omitted:
<nowiki>
{{datebio
|birthday = 19th
|birthmonth = June
|birthyear = 1967
|deathday =
|deathmonth =
|deathyear =
}}</nowiki>
{{datebio
|birthday = 19th
|birthmonth = June
|birthyear = 1967
|deathday =
|deathmonth =
|deathyear =
}}
</noinclude>

Latest revision as of 11:29, 15 June 2021

Usage:

{{datebio
|birthday = 
|birthmonth = 
|birthyear = 
|deathday = 
|deathmonth = 
|deathyear = 
}}

Example:

{{datebio
|birthday = 19th
|birthmonth = June
|birthyear = 1967
|deathday = 1st
|deathmonth = March
|deathyear = 2001
}}

Produces: (June 19th, 1967 — March 1st, 2001)

Living persons can have their death dates omitted:

{{datebio
|birthday = 19th
|birthmonth = June
|birthyear = 1967
|deathday = 
|deathmonth = 
|deathyear = 
}}

(June 19th, 1967 — present)