Template:Lifetime: Difference between revisions
Appearance
Content deleted Content added
Woohookitty (talk | contribs) cat |
create from simple: |
||
Line 1: | Line 1: | ||
{{{ |
<includeonly>{{#if: {{{3}}}|{{DEFAULTSORT:{{{3}}}}}| }} |
||
{{{ |
[[Category:{{{1}}} births|{{ #If: {{{3}}}|{{{3}}}|{{PAGENAME}} }}]] |
||
{{ |
[[Category:{{ #if:{{{2}}}|{{{2}}} deaths|Living people}}|{{ #If: {{{3}}}|{{{3}}}|{{PAGENAME}}}}]] |
||
[[Category:People and person-related templates|{{PAGENAME}}]]</noinclude> |
|||
</includeonly> |
|||
<noinclude> |
|||
'''Template:BD''' (''Born - Died'') is for adding the categories for births and deaths in a certain year (ie. 1935 births, 1994 deaths). |
|||
;Usage: |
|||
:<nowiki> {{ BD | </Nowiki>''year of birth'' | ''year of death'' |''Name to be sorted as'' }} |
|||
;notes: |
|||
*If the ''year of death'' is left blank (ie. <nowiki> {{BD|1945||Body, Some}}</nowiki> then the [[:category:Living people]] is used in place of year died. |
|||
*The ''name to be sorted'' as is most often in the form of ''Last name'', ''First name''. If this field is left blank, the page name is used. |
|||
*This template includes the default sort tag <nowiki>{{DEFAULTSORT:name sorted by}}</nowiki>. Therefore, other categories do not need sort tags. |
|||
[[category:Category templates]] |
|||
[[category:templates with categories]] |
|||
</noinclude> |
Revision as of 15:00, 22 September 2007
Template:BD (Born - Died) is for adding the categories for births and deaths in a certain year (ie. 1935 births, 1994 deaths).
- Usage
- {{ BD | year of birth | year of death |Name to be sorted as }}
- notes
- If the year of death is left blank (ie. {{BD|1945||Body, Some}} then the category:Living people is used in place of year died.
- The name to be sorted as is most often in the form of Last name, First name. If this field is left blank, the page name is used.
- This template includes the default sort tag {{DEFAULTSORT:name sorted by}}. Therefore, other categories do not need sort tags.