Difference between revisions of "Template:Births and deaths ToC/doc"

From blackwiki
Jump to navigation Jump to search
imported>Davykamanzi
imported>Davykamanzi
(No difference)

Revision as of 21:19, 24 July 2014

This template is intended for use on the births and deaths sections of articles on specific years, e.g. 2014.

Usage

{{BD ToC|births/deaths|title=|1|2|3|4|5|6|7|8|9|10|11|12|unknown=}}

Births/deaths

The "births/deaths" section shows the ToC's title as "Births" or "Deaths" and adds the number 2 (births) or 3 (deaths) to the section titles in the links. This is because "Births" and "Deaths" are usually the second and third sections in year articles, and leaving month titles without these numbers would direct users to months in the "Events" section.

{{BD ToC|births}}

Births
January · February · March · April · May · June · July · August · September · October · November · December

{{BD ToC|deaths}}

Deaths
January · February · March · April · May · June · July · August · September · October · November · December

In the event of a case where months have custom titles in either section, the |title= parameter allows the template to work override the title given from births/deaths. For example, if months in the "Births" section have custom titles, e.g. "January–April", the following code should be used in the "Deaths" section.

{{BD ToC|births|title=Deaths}}

Deaths
January · February · March · April · May · June · July · August · September · October · November · December

{{{unknown}}}

The |unknown= parameter adds a section called "Unknown date" to the list for people with unknown dates of birth included in the article.

{{BD ToC|births|unknown=yes}}

Births
January · February · March · April · May · June · July · August · September · October · November · December · Date unknown

Custom titles

The numbers 1–12 in the syntax above represent custom titles that can be inserted instead of January–December if the article contains other section titles. The other numbers must be left blank when this is done

{{BD ToC|deaths|January–March|April–June|July–September|October–December}}

Deaths
January–March · April–June · July–September · October–December