Difference between revisions of "Template:LifeData"

From IntactiWiki
Jump to navigation Jump to search
m
m (added Parameters descriptions)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{2|}}}|({{Date|{{{1}}}}}&#32;&ndash; {{Date|{{{2}}}}})|(Born {{Date|{{{1}}}}})}}<noinclude>
+
{{#if:{{{death|}}}|{{#if:{{{birth|}}}|{{Date|{{{birth}}}}}{{#if:{{{birthname|}}}|&#32; as ''{{{birthname}}}''}}{{#if:{{{birthplace|}}}|&#32;in {{{birthplace}}} }}{{#if:{{{birthcountry|}}}|,&#32;{{{birthcountry}}} }}&#32;&ndash; {{Date|{{{death}}} }}{{#ifeq:{{{ibid|}}}|yes|&#32;ibid|{{#if:{{{deathplace|}}}|&#32;in {{{deathplace}}} }}{{#if:{{{deathcountry|}}}|, {{{deathcountry}}} }} }}|died {{Date|{{{death}}} }}{{#if:{{{deathplace|}}}|&#32;in {{{deathplace}}} }}{{#if:{{{deathcountry|}}}|, {{{deathcountry}}} }} }}|{{#if:{{{birth|}}}|born {{Date|{{{birth}}} }}}}{{#if:{{{birthname|}}}|&#32; as ''{{{birthname}}}''}}{{#if:{{{birthplace|}}}|&#32;in {{{birthplace}}} }}{{#if:{{{birthcountry|}}}|,&#32;{{{birthcountry}}}|{{#if:{{{2|}}}|{{#if:{{{1|}}}|{{Date|{{{1}}}}}&#32;&ndash; {{Date|{{{2}}}}}|died {{Date|{{{2}}}}} }}|{{#if:{{{1|}}}|born {{Date|{{{1}}}}} }} }} }}}}<noinclude>
 +
== Usage ==
 +
Use this template with anonymous parameters (1 = birth, 2 = death) or with (optional) named parameters as follows:
 +
<pre>{{LifeData
 +
|birth=
 +
|death=
 +
|birthplace=
 +
|birthcountry=
 +
|birthname=
 +
|ibid=
 +
|deathplace=
 +
|deathcountry=
 +
}}</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 ==
 +
<pre>* {{LifeData|1962-08-27}}</pre>
 
* {{LifeData|1962-08-27}}
 
* {{LifeData|1962-08-27}}
* {{LifeData|1962-08-27|2019-10-28}}</noinclude>
+
<pre>* {{LifeData||2099-12-31}}</pre>
 +
* {{LifeData||2099-12-31}}
 +
<pre>* {{LifeData|1962-08-27|2099-12-31}}</pre>
 +
* {{LifeData|1962-08-27|2099-12-31}}
 +
<pre>* {{LifeData |birth=1962-08-27}}</pre>
 +
* {{LifeData |birth=1962-08-27}}
 +
<pre>* {{LifeData |birth= |death=2099-12-31}}</pre>
 +
* {{LifeData |birth= |death=2099-12-31}}
 +
<pre>* {{LifeData |birth=1962-08-27 |death=2099-12-31}}</pre>
 +
* {{LifeData |birth=1962-08-27 |death=2099-12-31}}
 +
<pre>* {{LifeData |birth=1962-08-27 |birthplace=Löningen |death=2099-12-31}}</pre>
 +
* {{LifeData |birth=1962-08-27 |birthplace=Löningen |death=2099-12-31}}
 +
<pre>* {{LifeData |birth=1962-08-27 |birthplace=Löningen |birthcountry=Germany |death=2099-12-31}}</pre>
 +
* {{LifeData |birth=1962-08-27 |birthplace=Löningen |birthcountry=Germany |death=2099-12-31}}
 +
<pre>* {{LifeData |birth=1962-08-27 |birthplace=Löningen |birthcountry=Germany |death=2099-12-31 |deathplace=Atlantis}}</pre>
 +
* {{LifeData |birth=1962-08-27 |birthplace=Löningen |birthcountry=Germany |death=2099-12-31 |deathplace=Atlantis}}
 +
<pre>* {{LifeData |birth=1962-08-27 |birthplace=Löningen |birthcountry=Germany |death=2099-12-31 |deathplace=Atlantis |deathcountry=Europe}}</pre>
 +
* {{LifeData |birth=1962-08-27 |birthplace=Löningen |birthcountry=Germany |death=2099-12-31 |deathplace=Atlantis |deathcountry=Europe}}
 +
<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}}
 +
<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>

Latest revision as of 10:26, 30 October 2021

Usage

Use this template with anonymous parameters (1 = birth, 2 = death) or with (optional) named parameters as follows:

{{LifeData
 |birth=
 |death=
 |birthplace=
 |birthcountry=
 |birthname=
 |ibid=
 |deathplace=
 |deathcountry=
}}

Parameters

Key Value Explanation
birth yyyy-mm-dd Please use the ISO formatting of dates. The date will automatically be converted to the appropriate date formatting for the relevant IntactiWiki language.
death yyyy-mm-dd See <birth>.
ibid yes If you use ibid=yes, both <deathplace> and <deathcountry> will be ignored and replaced by the Latin word ibid which means in the same place.

Examples

* {{LifeData|1962-08-27}}
  • born 27 August 1962
* {{LifeData||2099-12-31}}
  • died 31 December 2099
* {{LifeData|1962-08-27|2099-12-31}}
  • 27 August 1962 – 31 December 2099
* {{LifeData |birth=1962-08-27}}
  • born 27 August 1962
* {{LifeData |birth= |death=2099-12-31}}
  • died 31 December 2099
* {{LifeData |birth=1962-08-27 |death=2099-12-31}}
  • 27 August 1962 – 31 December 2099
* {{LifeData |birth=1962-08-27 |birthplace=Löningen |death=2099-12-31}}
  • 27 August 1962 in Löningen – 31 December 2099
* {{LifeData |birth=1962-08-27 |birthplace=Löningen |birthcountry=Germany |death=2099-12-31}}
  • 27 August 1962 in Löningen, Germany – 31 December 2099
* {{LifeData |birth=1962-08-27 |birthplace=Löningen |birthcountry=Germany |death=2099-12-31 |deathplace=Atlantis}}
  • 27 August 1962 in Löningen, Germany – 31 December 2099 in Atlantis
* {{LifeData |birth=1962-08-27 |birthplace=Löningen |birthcountry=Germany |death=2099-12-31 |deathplace=Atlantis |deathcountry=Europe}}
  • 27 August 1962 in Löningen, Germany – 31 December 2099 in Atlantis, Europe
* {{LifeData|birth=1947-10-22|birthplace=Miami, California|birthcountry=USA|birthname=Kenneth Hopkins}}
  • born 22 October 1947 as Kenneth Hopkins in Miami, California, USA
* {{LifeData |birth=1962-08-27 |birthplace=Löningen |birthcountry=Germany |death=2099-12-31 |ibid=yes |deathplace=Atlantis |deathcountry=Europe}}
  • 27 August 1962 in Löningen, Germany – 31 December 2099 ibid