Difference between revisions of "Template:Birth decade category header"
Jump to navigation
Jump to search
imported>Greenshed (Category:Births by decade) |
imported>Fayenatic london (use bullets rather than dashes, which look like minus signs) |
||
| Line 2: | Line 2: | ||
{| class="toc plainlinks" style="float: right;" | {| class="toc plainlinks" style="float: right;" | ||
|- | |- | ||
| − | | {{#ifeq: {{{3}}} | 1st | [[:Category:0s BC births| | + | | {{#ifeq: {{{3}}} | 1st | [[:Category:0s BC births|←]] | {{#ifeq: {{{3}}} | 2nd | [[:Category:90s births|←]] | [[:Category:{{#expr:{{{1}}}-1}}90s births|←]] }}}} |
| [[:Category:{{{3}}}-century births|{{{3}}}-century births]]: | | [[:Category:{{{3}}}-century births|{{{3}}}-century births]]: | ||
| − | | {{#ifeq: {{{3}}} | 1st | [[:Category:0s births|0s]]| [[:Category:{{{1}}}00s births|{{{1}}}00s]]}} | + | | {{#ifeq: {{{3}}} | 1st | [[:Category:0s births|0s]]| [[:Category:{{{1}}}00s births|{{{1}}}00s]]}} • [[:Category:{{{1}}}10s births|{{{1}}}10s]] • [[:Category:{{{1}}}20s births|{{{1}}}20s]] • [[:Category:{{{1}}}30s births|{{{1}}}30s]] • [[:Category:{{{1}}}40s births|{{{1}}}40s]] • [[:Category:{{{1}}}50s births|{{{1}}}50s]] • [[:Category:{{{1}}}60s births|{{{1}}}60s]] • [[:Category:{{{1}}}70s births|{{{1}}}70s]] • [[:Category:{{{1}}}80s births|{{{1}}}80s]] • [[:Category:{{{1}}}90s births|{{{1}}}90s]] |
| − | | [[:Category:{{#expr:{{{1}}}+1}}00s births| | + | | [[:Category:{{#expr:{{{1}}}+1}}00s births|→]] |
|} | |} | ||
Revision as of 13:03, 19 April 2018
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. |