Difference between revisions of "Template:Birth decade category header"
Jump to navigation
Jump to search
imported>Fayenatic london (Undid revision 731442545 by Fayenatic london (talk)) |
imported>Fayenatic london (Fix links from 2nd century to 90s, and 1st century to 0s) |
||
| Line 2: | Line 2: | ||
{| class="toc plainlinks" style="float: right;" | {| class="toc plainlinks" style="float: right;" | ||
|- | |- | ||
| − | | {{#ifeq: {{{3}}} | 1st | [[:Category:0s BC births|<<]] | [[:Category:{{#expr:{{{1}}}-1}}90s 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]]: | ||
| − | | [[: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]] | + | | {{#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 11:50, 25 July 2016
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
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. |