Difference between revisions of "Template:Birth decade category header"

From blackwiki
Jump to navigation Jump to search
imported>BrownHairedGirl
imported>BrownHairedGirl
(use [[Template:Navseasoncats with centuries below decade}]])
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{| class="toc plainlinks" style="float: right;"
 
|-
 
| {{#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]]:
 
| {{#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|→]]
 
|}
 
 
 
People born in the '''[[{{{1}}}{{#ifeq:{{{2}}} | 0 | {{{2}}}0–{{{1}}}{{{2}}}9{{!}}{{{1}}}}}{{{2}}}0s]]'''.<br>
 
People born in the '''[[{{{1}}}{{#ifeq:{{{2}}} | 0 | {{{2}}}0–{{{1}}}{{{2}}}9{{!}}{{{1}}}}}{{{2}}}0s]]'''.<br>
 +
{{Navseasoncats with centuries below decade}}
 
''See also:'' [[:Category:{{{1}}}{{{2}}}0s deaths]].  
 
''See also:'' [[:Category:{{{1}}}{{{2}}}0s deaths]].  
  

Revision as of 16:18, 11 March 2020

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:

  1. All the digits of the decade except the last 2
  2. The next-to-last digit of the decade
  3. The century the decade is in, as an ordinal number (e.g., 1st, 2nd, 3rd, 19th, etc.)

See also