Difference between revisions of "Template:Birth decade category header"
Jump to navigation
Jump to search
imported>Wbm1058 m (remove blank line) |
imported>Wbm1058 (only categorize when used in category namespace) |
||
| Line 11: | Line 11: | ||
''See also:'' [[:Category:{{{1}}}{{{2}}}0s deaths]]. | ''See also:'' [[:Category:{{{1}}}{{{2}}}0s deaths]]. | ||
| + | {{#ifeq:{{NAMESPACE}}|{{ns:14}}| | ||
[[Category:{{{1}}}{{{2}}}0s|Births]] | [[Category:{{{1}}}{{{2}}}0s|Births]] | ||
[[Category:{{{3}}}-century births|#{{PAGENAME}}]] | [[Category:{{{3}}}-century births|#{{PAGENAME}}]] | ||
| − | </includeonly><noinclude> | + | }}</includeonly><noinclude> |
{{documentation}} | {{documentation}} | ||
Revision as of 18:03, 17 February 2017
Usage
To add this template to, for example, Category:1910s births, use the following command:
{{birthdecade|19|1|20th}}
The parameters are:
- All the digits of the decade except the last 2
- The next-to-last digit of the decade
- The century the decade is in, as an ordinal number (e.g., 1st, 2nd, 3rd, 19th, etc.)
See also
| The above documentation is transcluded from Template:Birth decade category header/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |