Difference between revisions of "Template:Lifetime/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jacklee
(Moved documentation from talk page to documentation page)
imported>Jacklee
(→‎Usage: Updated usage notes)
Line 2: Line 2:
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
 
==Usage==
 
==Usage==
Format:
+
<pre>
*<nowiki>{{lifetime|birth_year|death_year|lastname, firstname(s)}}</nowiki>
+
{{subst:lifetime|birth_year|death_year|lastname, firstname(s)}}
 +
</pre>
  
From [[Jean Baptiste Audebert]] (born in [[1759]], died in the year [[1800]]):
+
==Examples==
*<nowiki>{{lifetime|1759|1800|Audebert, Jean Baptiste}}</nowiki>
+
*[[Jean Baptiste Audebert]] (born in [[1759]], died in the year [[1800]]):
 +
::<nowiki>{{subst:lifetime|1759|1800|Audebert, Jean Baptiste}}</nowiki>
  
From [[Clément Chartier]] (born [[1946]], still living):
+
*[[Clément Chartier]] (born [[1946]], still living):
*<nowiki>{{lifetime|1946||Chartier, Clement}}</nowiki>
+
::<nowiki>{{subst:lifetime|1946||Chartier, Clement}}</nowiki>
  
From [[Jon Glover]] (birth year unknown, still living):
+
*[[Jon Glover]] (birth year unknown, still living):
*<nowiki>{{lifetime|||Glover, Jon}}</nowiki>
+
::<nowiki>{{subst:lifetime|||Glover, Jon}}</nowiki>
  
From [[Jan Milic]] (birth year unknown, died 1374):
+
*[[Jan Milic]] (birth year unknown, died 1374):
*<nowiki>{{lifetime||1374|Milic, Jan}}</nowiki>
+
::<nowiki>{{subst:lifetime||1374|Milic, Jan}}</nowiki>
  
This template should be substituted.
+
This template should be [[Wikipedia:Template substitution|substituted]].
  
 
<includeonly><!--
 
<includeonly><!--

Revision as of 21:57, 5 March 2008

Usage

{{subst:lifetime|birth_year|death_year|lastname, firstname(s)}}

Examples

{{subst:lifetime|1759|1800|Audebert, Jean Baptiste}}
{{subst:lifetime|1946||Chartier, Clement}}
{{subst:lifetime|||Glover, Jon}}
{{subst:lifetime||1374|Milic, Jan}}

This template should be substituted.