Difference between revisions of "Template:LifeData"

From IntactiWiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
{{#if:{{{2|}}}|({{Date|{{{1}}}}}&#32;&ndash; {{Date|{{{2}}}}})|(born {{Date|{{{1}}}}})}}<noinclude>
+
{{#if:{{{birth|}}}| {{Date|{{{birth}}} }} }}{{#if:{{{birthplace|}}}|&#32;in {{{birthplace}}} }}{{#if:{{{birthcountry|}}}|,&#32;{{{birthcountry}}} }}{{#if:{{{death|}}}|&#32;&ndash; {{Date|{{{death}}} }}{{#if:{{{deathplace|}}}|&#32;in {{{deathplace}}} }}{{#if:{{{deathcountry|}}}|, {{{deathcountry}}} }} | {{#if: {{{2|}}} | {{#if: {{{1|}}} | {{{1}}}&#32;&ndash; {{{2}}} | died {{{2}}} }}| {{#if: {{{1|}}} | born {{{1}}} }} }}
 +
}}<noinclude>
 +
== Usage ==
 +
Use this template with anonymous parameters (1, 2) or with named parameters as follows:
 +
* birth
 +
* birthplace
 +
* birthcountry
 +
* death
 +
* deathplace
 +
* deathcountry
 +
 
 +
== Examples ==
 +
<pre>* {{LifeData|1962-08-27}}</pre>
 
* {{LifeData|1962-08-27}}
 
* {{LifeData|1962-08-27}}
* {{LifeData|1962-08-27|2019-10-28}}
+
<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 |death=2099-12-31}}</pre>
 +
* {{LifeData |birth=1962-08-27 |death=2099-12-31}}
 +
<pre>* {{LifeData |birth= |death=2099-12-31}}</pre>
 +
* {{LifeData |birth= |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}}
  
 
[[de:Vorlage:LifeData]]</noinclude>
 
[[de:Vorlage:LifeData]]</noinclude>

Revision as of 18:01, 28 October 2019

Usage

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

  • birth
  • birthplace
  • birthcountry
  • death
  • deathplace
  • deathcountry

Examples

* {{LifeData|1962-08-27}}
  • born 1962-08-27
* {{LifeData||2099-12-31}}
  • died 2099-12-31
* {{LifeData|1962-08-27|2099-12-31}}
  • 1962-08-27 – 2099-12-31
* {{LifeData |birth=1962-08-27 |death=2099-12-31}}
  • 27 August 1962 – 31 December 2099
* {{LifeData |birth= |death=2099-12-31}}
  • – 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