Template:LifeData: Difference between revisions
m new parameter <birthname> |
mNo edit summary |
||
| Line 1: | Line 1: | ||
{{#if:{{{death|}}}|{{#if:{{{birth|}}}|{{Date|{{{birth}}}}}{{#if:{{{birthname|}}}|  as ''{{{birthname}}}''}}{{#if:{{{birthplace|}}}| in {{{birthplace}}} }}{{#if:{{{birthcountry|}}}|, {{{birthcountry}}} }} – {{Date|{{{death}}} }}{{#if:{{{deathplace|}}}| in {{{deathplace}}} }}{{#if:{{{deathcountry|}}}|, {{{deathcountry}}} }}|died {{Date|{{{death}}} }}{{#if:{{{deathplace|}}}| in {{{deathplace}}} }}{{#if:{{{deathcountry|}}}|, {{{deathcountry}}} }} }}|{{#if:{{{birth|}}}|born {{Date|{{{birth}}} }}}}{{#if:{{{birthname|}}}|  as ''{{{birthname}}}''}}{{#if:{{{birthplace|}}}| in {{{birthplace}}} }}{{#if:{{{birthcountry|}}}|, {{{birthcountry}}}|{{#if:{{{2|}}}|{{#if:{{{1|}}}|{{Date|{{{1}}}}} – {{Date|{{{2}}}}}|died {{Date|{{{2}}}}} }}|{{#if:{{{1|}}}|born {{Date|{{{1}}}}} }} }} }}}}<noinclude> | {{#if:{{{death|}}}|{{#if:{{{birth|}}}|{{Date|{{{birth}}}}}{{#if:{{{birthname|}}}|  as ''{{{birthname}}}''}}{{#if:{{{birthplace|}}}| in {{{birthplace}}} }}{{#if:{{{birthcountry|}}}|, {{{birthcountry}}} }} – {{Date|{{{death}}} }}{{#if:{{{deathplace|}}}| in {{{deathplace}}} }}{{#if:{{{deathcountry|}}}|, {{{deathcountry}}} }}|died {{Date|{{{death}}} }}{{#if:{{{deathplace|}}}| in {{{deathplace}}} }}{{#if:{{{deathcountry|}}}|, {{{deathcountry}}} }} }}|{{#if:{{{birth|}}}|born {{Date|{{{birth}}} }}}}{{#if:{{{birthname|}}}|  as ''{{{birthname}}}''}}{{#if:{{{birthplace|}}}| in {{{birthplace}}} }}{{#if:{{{birthcountry|}}}|, {{{birthcountry}}}|{{#if:{{{2|}}}|{{#if:{{{1|}}}|{{Date|{{{1}}}}} – {{Date|{{{2}}}}}|died {{Date|{{{2}}}}} }}|{{#if:{{{1|}}}|born {{Date|{{{1}}}}} }} }} }}}}<noinclude> | ||
== Usage == | == Usage == | ||
Use this template with anonymous parameters (1 = birth, 2 = death) or with named parameters as follows: | Use this template with anonymous parameters (1 = birth, 2 = death) or with (optional) named parameters as follows: | ||
<pre>{{LifeData | <pre>{{LifeData | ||
|birth= | |birth= | ||