Difference between revisions of "Template:Births and deaths ToC/doc"
imported>Davykamanzi |
imported>Davykamanzi |
||
| Line 8: | Line 8: | ||
|births/deaths | |births/deaths | ||
|title= | |title= | ||
| + | |unknown= | ||
|section= | |section= | ||
|1|2|3|4|5|6|7|8|9|10|11|12 | |1|2|3|4|5|6|7|8|9|10|11|12 | ||
| Line 13: | Line 14: | ||
... | ... | ||
|section12= | |section12= | ||
| − | | | + | |sectionu=}} |
| − | |||
</pre> | </pre> | ||
| Line 38: | Line 38: | ||
{{Births and deaths ToC|deaths|section=2}} | {{Births and deaths ToC|deaths|section=2}} | ||
| − | Sometimes, a certain month section or a "Date unknown" section may have already been included more than twice or thrice. The individual {{para|section(num)}} and the {{para| | + | Sometimes, a certain month section or a "Date unknown" section may have already been included more than twice or thrice. The individual {{para|section(num)}} and the {{para|sectionu}} (unknown section) parameters can be used to specify the given number used in these specific months' titles. |
In the example below, August in the "Births" section would be the third such August section in the given year article, and the "Date unknown" section would be the section such section in the given year article. | In the example below, August in the "Births" section would be the third such August section in the given year article, and the "Date unknown" section would be the section such section in the given year article. | ||
| − | <code><nowiki>{{Births and deaths ToC|births|unknown=yes|section8=3| | + | <code><nowiki>{{Births and deaths ToC|births|unknown=yes|section8=3|sectionu=2}}</nowiki></code> |
| − | {{Births and deaths ToC|births|unknown=yes|section8=3| | + | {{Births and deaths ToC|births|unknown=yes|section8=3|sectionu=2}} |
===Custom titles=== | ===Custom titles=== | ||
| Line 56: | Line 56: | ||
|births/deaths | |births/deaths | ||
|title = | |title = | ||
| + | |unknown = | ||
|section = | |section = | ||
<!-- custom month titles --> | <!-- custom month titles --> | ||
| Line 83: | Line 84: | ||
|section11 = | |section11 = | ||
|section12 = | |section12 = | ||
| − | + | |sectionu = | |
| − | | | ||
| − | |||
}} | }} | ||
</pre> | </pre> | ||
Revision as of 09:37, 25 July 2014
| This is a documentation subpage for Template:Births and deaths ToC. It contains usage information, categories and other content that is not part of the original template page. |
This template is intended for use on the births and deaths sections of articles on specific years, e.g. 2014. Ideally, it should only be added at the end of the given year.
Usage
{{Births and deaths ToC
|births/deaths
|title=
|unknown=
|section=
|1|2|3|4|5|6|7|8|9|10|11|12
|section1=
...
|section12=
|sectionu=}}
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 respectively in year articles, and leaving month titles without these numbers would direct users to months in the "Events" section.
{{Births and deaths ToC|births}}
| Births |
|---|
| January · February · March · April · May · June · July · August · September · October · November · December |
{{Births and deaths ToC|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.
{{Births and deaths ToC|deaths|unknown=yes}}
| Deaths |
|---|
| January · February · March · April · May · June · July · August · September · October · November · December · Date unknown |
Sections
In the event of a case where months have custom titles in either section, the |section= parameter can be used to specify the given number used in the months' titles.
{{Births and deaths ToC|deaths|section=2}}
| Deaths |
|---|
| January · February · March · April · May · June · July · August · September · October · November · December |
Sometimes, a certain month section or a "Date unknown" section may have already been included more than twice or thrice. The individual |section(num)= and the |sectionu= (unknown section) parameters can be used to specify the given number used in these specific months' titles.
In the example below, August in the "Births" section would be the third such August section in the given year article, and the "Date unknown" section would be the section such section in the given year article.
{{Births and deaths ToC|births|unknown=yes|section8=3|sectionu=2}}
| 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 custom month titles.
{{Births and deaths ToC|births|January–March|April–June|July–September|October–December}}
| Births |
|---|
| January–March · April–June · July–September · October–December |
Full blank syntax
{{Births and deaths ToC
|births/deaths
|title =
|unknown =
|section =
<!-- custom month titles -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- specific month section numbers -->
|section1 =
|section2 =
|section3 =
|section4 =
|section5 =
|section6 =
|section7 =
|section8 =
|section9 =
|section10 =
|section11 =
|section12 =
|sectionu =
}}