Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Options  





3 Examples  





4 See also  














Template:Person categories






Acèh
العربية
Asturianu
Basa Bali

Banjar
 / Bân-lâm-gú
Basa Banyumasan
Буряад
Čeština
Dansk
Dolnoserbski
Eesti
Emiliàn e rumagnòl
Español
Esperanto
Euskara
فارسی
Fiji Hindi


/Hak-kâ-ngî

ि
Hornjoserbsce
Bahasa Indonesia
Jawa
Ikirundi
Kiswahili
Latina
Македонски

Bahasa Melayu
Minangkabau
 / Mìng-dĕ̤ng-nḡ
Mirandés

Na Vosa Vakaviti


Pangcah
Pinayuanan
Português
Reo tahiti
Русиньскый
Sakizaya
Seediq

Simple English
Slovenščina
Srpskohrvatski / српскохрватски
Sunda
Svenska
Tagalog
 
Tayal



Tiếng Vit


Yorùbá

Zazaki

 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikiversity
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 

(Redirected from Template:Lifetime)

{{Person categories}} or its shortcut {{L}} (from the original name "Lifetime") is for automatically generating all category tags related to birth and death years, including living people and missing or unknown values. The general DEFAULTSORT can be embedded as well. It should not be used to replace existing DEFAULTSORT and/or category tags.

{{subst:L|year of birth|year of death|sort key}}

will generate:

{{DEFAULTSORT:sort key}}
[[Category:BIRTH births]]
[[Category:DEATH deaths]]

Other cases are handled with options, see below. As with the original, the embedded magic word DEFAULTSORT also applies to all categories on the page, no matter whether the lifetime template is before or after them.

Since the {{DEFAULTSORT:}} should occur before the categories, the L template should generally be placed before the first Category tag, for example:

{{subst:L|year of birth|year of death|sort key}}
[[Category:ABC]]
:
[[Category:XYZ]]

Options

For each option, the default value is displayed in bold and automatically assumed if the field is left blank.

Please note that MISSING results in Categories that are not displayed on the page.

1 (birth)
2 (death)
3 (sortkey)
  • {{PAGENAME}} : should almost never be left blank (especially with Asian names, it is hard to see the difference between a missing sortkey and a sortkey identical to the article name due to a family-first name).
  • Asian name, Honorific prefix (qualifier suffix) : for assertion of sortkey assessment.
    "Mao, Zedong" - "Kim, Il-sung" -『Matsuo Bashō|Matsuo, Basho』- "Nu, U" - "Wang, Li (politician)"
  • Family name, Given name, Honorific-prefix (qualifier suffix) : for proper sorting.
    "Newton, Isaac, Sir" - "Karlsson, Ove (sports journalist)"
  • For further details, see Wikipedia:Categorization of people#Ordering names in a category.

Most values are case-insensitive ("LIVING" or "LiVinG" work the same), except when it matters (such as century names).

Examples

For a living person
{{subst:L|1899||Surname, Name}}

or

{{subst:L|1899|LIVING|Surname, Name}}

will give:

{{DEFAULTSORT:Surname, Name}}
[[Category:1899 births]]
[[Category:Living people]]
For a missing birth and living person
{{subst:L|||Surname, Name}}

or

{{subst:L|MISSING|LIVING|Surname, Name}}

will give:

{{DEFAULTSORT:Surname, Name}}
[[Category:Year of birth missing (living people)]]
[[Category:Living people]]
For a dead person
{{subst:L|1899|1986|Surname, Name}}

will give:

{{DEFAULTSORT:Surname, Name}}
[[Category:1899 births]]
[[Category:1986 deaths]]

See also


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Person_categories&oldid=1175958007"

Categories: 
Sorting templates
Typing-aid templates
Hidden categories: 
Wikipedia semi-protected templates
Wikipedia substituted templates
Wikipedia templates to be automatically substituted
 



This page was last edited on 18 September 2023, at 14:54 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki