Template:LifeData: Difference between revisions
m new parameter <birthname> |
m added Parameters descriptions |
||
| (2 intermediate revisions by the same user not shown) | |||
| 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}}} }}{{#ifeq:{{{ibid|}}}|yes| ibid|{{#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= | ||
| Line 8: | Line 8: | ||
|birthcountry= | |birthcountry= | ||
|birthname= | |birthname= | ||
|ibid= | |||
|deathplace= | |deathplace= | ||
|deathcountry= | |deathcountry= | ||
}}</pre> | }}</pre> | ||
== Parameters == | |||
{| class="wikitable" | |||
|- | |||
! Key !! Value !! Explanation | |||
|- | |||
| '''birth''' || <code>yyyy-mm-dd</code> || Please use the ISO formatting of dates. The date will automatically be converted to the appropriate date formatting for the relevant IntactiWiki language. | |||
|- | |||
| '''death''' || <code>yyyy-mm-dd</code> || See <birth>. | |||
|- | |||
| '''ibid''' || <code>yes</code> || If you use <code>ibid=yes</code>, both <deathplace> and <deathcountry> will be ignored and replaced by the Latin word ''ibid'' which means ''in the same place''. | |||
|} | |||
== Examples == | == Examples == | ||
| Line 35: | Line 48: | ||
<pre>* {{LifeData|birth=1947-10-22|birthplace=Miami, California|birthcountry=USA|birthname=Kenneth Hopkins}}</pre> | <pre>* {{LifeData|birth=1947-10-22|birthplace=Miami, California|birthcountry=USA|birthname=Kenneth Hopkins}}</pre> | ||
* {{LifeData|birth=1947-10-22|birthplace=Miami, California|birthcountry=USA|birthname=Kenneth Hopkins}} | * {{LifeData|birth=1947-10-22|birthplace=Miami, California|birthcountry=USA|birthname=Kenneth Hopkins}} | ||
<pre>* {{LifeData |birth=1962-08-27 |birthplace=Löningen |birthcountry=Germany |death=2099-12-31 |ibid=yes |deathplace=Atlantis |deathcountry=Europe}}</pre> | |||
* {{LifeData |birth=1962-08-27 |birthplace=Löningen |birthcountry=Germany |death=2099-12-31 |ibid=yes |deathplace=Atlantis |deathcountry=Europe}} | |||
[[de:Vorlage:LifeData]]</noinclude> | [[de:Vorlage:LifeData]]</noinclude> | ||