This template is a shortcut to generate birth and death categories and DEFAULTSORT.
This template is a shortcut to generate birth and death categories and DEFAULTSORT.
This template should be substituted.
| This template should always be substituted (i.e., use {{subst:BD}}). |
{{BD}} is for quickly generating 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:BD|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. The embedded magic word DEFAULTSORT applies to all categories on the page, no matter whether the BD template is before or after them.
This template shoukd be substituted. To substitute it, use the following syntax:
{{subst:BD|year of birth|year of death|sort key}}Since categories are preferred to be listed in most-common order last, the BD template should generally be placed after the last Category tag, for example:
[[Category:ABC]]
[[Category:XYZ]]{{subst:BD|year of birth|year of death|sort key}}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.
Most values are case-insensitive ("LIVING" or "LiVinG" work the same), except when it matters (such as century names).
{{subst:BD|1899||Surname, Name}}or
{{subst:BD|1899|LIVING|Surname, Name}}will replace:
{{DEFAULTSORT:Surname, Name}}[[Category:1899 births]][[Category:Living people]]{{subst:BD|||Surname, Name}}or
{{subst:BD|MISSING|LIVING|Surname, Name}}will replace:
{{DEFAULTSORT:Surname, Name}}[[Category:Year of birth missing (living people)]][[Category:Living people]]{{subst:BD|1899|1986|Surname, Name}}will replace:
{{DEFAULTSORT:Surname, Name}}[[Category:1899 births]][[Category:1986 deaths]]Before changing the template's code or text, please bear in mind:
The template provides a local sandbox and testcases for developing and testing changes (see documentation's hat-note).
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.