Difference between revisions of "Template:Category Century"

From PUBLIC DOMAIN PROJECT
Jump to: navigation, search
 
(8 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
[[:Category:{{#ifexpr: ({{{1}}}-1-({{{1}}}-1)mod10)/10-1 <= 0 |{{#expr:(({{{1}}}-1-({{{1}}}-1)mod100)/100-2)*(-1)}} millennium BC |{{#expr:({{{1}}}-1-({{{1}}}-1)mod10)/10-1}} millennium }}|◄]] |
 
[[:Category:{{#ifexpr: ({{{1}}}-1-({{{1}}}-1)mod10)/10-1 <= 0 |{{#expr:(({{{1}}}-1-({{{1}}}-1)mod100)/100-2)*(-1)}} millennium BC |{{#expr:({{{1}}}-1-({{{1}}}-1)mod10)/10-1}} millennium }}|◄]] |
 
[[:Category:{{#ifexpr: ({{{1}}}-1-({{{1}}}-1)mod10)/10 <= 0 |{{#expr:(({{{1}}}-1-({{{1}}}-1)mod100)/100-1)*(-1)}} millennium BC |{{#expr:({{{1}}}-1-({{{1}}}-1)mod10)/10}} millennium }}|{{#ifexpr: {{#expr:({{{1}}}-1-({{{1}}}-1)mod10)/10}}<=0 |{{#expr:(({{{1}}}-1-({{{1}}}-1)mod100)/100-1)*(-1)}} ML BC |{{#expr:({{{1}}}-1-({{{1}}}-1)mod10)/10}} ML }}]] |
 
[[:Category:{{#ifexpr: ({{{1}}}-1-({{{1}}}-1)mod10)/10 <= 0 |{{#expr:(({{{1}}}-1-({{{1}}}-1)mod100)/100-1)*(-1)}} millennium BC |{{#expr:({{{1}}}-1-({{{1}}}-1)mod10)/10}} millennium }}|{{#ifexpr: {{#expr:({{{1}}}-1-({{{1}}}-1)mod10)/10}}<=0 |{{#expr:(({{{1}}}-1-({{{1}}}-1)mod100)/100-1)*(-1)}} ML BC |{{#expr:({{{1}}}-1-({{{1}}}-1)mod10)/10}} ML }}]] |
'''[[:Category:{{#expr:({{{1}}}-1-({{{1}}}-1)mod10)/10+1}} millennium]]'''
+
'''[[:Category:{{#expr:({{{1}}}-1-({{{1}}}-1)mod10)/10+1}} millennium|{{#expr:({{{1}}}-1-({{{1}}}-1)mod10)/10+1}} millennium]]'''
 
{{#ifexpr: ({{{1}}}-1-({{{1}}}-1)mod10)/10+2<=3 |{{!}} [[:Category:{{#expr:({{{1}}}-1-({{{1}}}-1)mod10)/10+2}} millennium|{{#expr:({{{1}}}-1-({{{1}}}-1)mod10)/10+2}} ML]] |&nbsp; }}
 
{{#ifexpr: ({{{1}}}-1-({{{1}}}-1)mod10)/10+2<=3 |{{!}} [[:Category:{{#expr:({{{1}}}-1-({{{1}}}-1)mod10)/10+2}} millennium|{{#expr:({{{1}}}-1-({{{1}}}-1)mod10)/10+2}} ML]] |&nbsp; }}
 
{{#ifexpr: ({{{1}}}-1-({{{1}}}-1)mod10)/10+3 <= 3 |{{!}} [[:Category:{{#expr:({{{1}}}-1-({{{1}}}-1)mod10)/10+3}} millennium|►]] |&nbsp; }}
 
{{#ifexpr: ({{{1}}}-1-({{{1}}}-1)mod10)/10+3 <= 3 |{{!}} [[:Category:{{#expr:({{{1}}}-1-({{{1}}}-1)mod10)/10+3}} millennium|►]] |&nbsp; }}
Line 16: Line 16:
 
[[:Category:{{#ifexpr: {{{1}}}-3 <= 0 |{{#expr:({{{1}}}-4)*(-1)}} century BC |{{#expr:{{{1}}}-3}} century }}|◄]] |
 
[[:Category:{{#ifexpr: {{{1}}}-3 <= 0 |{{#expr:({{{1}}}-4)*(-1)}} century BC |{{#expr:{{{1}}}-3}} century }}|◄]] |
 
[[:Category:{{#ifexpr: {{{1}}}-2 <= 0 |{{#expr:({{{1}}}-3)*(-1)}} century BC |{{#expr:{{{1}}}-2}} century}}|{{#ifexpr: {{{1}}}-2 <= 0 |{{#expr:({{{1}}}-3)*(-1)}} c. BC |{{#expr:{{{1}}}-2}} c. }}]] |
 
[[:Category:{{#ifexpr: {{{1}}}-2 <= 0 |{{#expr:({{{1}}}-3)*(-1)}} century BC |{{#expr:{{{1}}}-2}} century}}|{{#ifexpr: {{{1}}}-2 <= 0 |{{#expr:({{{1}}}-3)*(-1)}} c. BC |{{#expr:{{{1}}}-2}} c. }}]] |
[[:Category:{{#ifexpr: {{{1}}}-1 <= 0 |{{#expr:({{{1}}}-2)*(-1)}} c. BC |{{#expr:{{{1}}}-1}} century }}|{{#ifexpr: {{{1}}}-1 <= 0 |{{#expr:({{{1}}}-2)*(-1)}} c. BC |{{#expr:{{{1}}}-1}} c. }}]] |
+
[[:Category:{{#ifexpr: {{{1}}}-1 <= 0 |{{#expr:({{{1}}}-2)*(-1)}} century BC |{{#expr:{{{1}}}-1}} century }}|{{#ifexpr: {{{1}}}-1 <= 0 |{{#expr:({{{1}}}-2)*(-1)}} c. BC |{{#expr:{{{1}}}-1}} c. }}]] |
 
'''{{{1}}} century'''
 
'''{{{1}}} century'''
 
{{#ifexpr: {{{1}}} <= 20 |{{!}} [[:Category:{{#expr:{{{1}}}+1}} century|{{#expr:{{{1}}}+1}} c.]] |&nbsp; }}
 
{{#ifexpr: {{{1}}} <= 20 |{{!}} [[:Category:{{#expr:{{{1}}}+1}} century|{{#expr:{{{1}}}+1}} c.]] |&nbsp; }}
Line 22: Line 22:
 
{{#ifexpr: {{{1}}} <= 18 |{{!}} [[:Category:{{#expr:{{{1}}}+3}} century|►]] |&nbsp; }}<!--
 
{{#ifexpr: {{{1}}} <= 18 |{{!}} [[:Category:{{#expr:{{{1}}}+3}} century|►]] |&nbsp; }}<!--
 
--><br />
 
--><br />
[[:Category:{{#expr:{{{1}}}*100-100}}s]]  |
+
[[:Category:{{#expr:{{{1}}}*100-100}}s|{{#expr:{{{1}}}*100-100}}s]]  |
[[:Category:{{#expr:{{{1}}}*100-90}}s]]  {{#ifexpr: {{{1}}} != 21 |{{!}}
+
[[:Category:{{#expr:{{{1}}}*100-90}}s|{{#expr:{{{1}}}*100-90}}s]]  {{#ifexpr: {{{1}}} != 21 |{{!}}
[[:Category:{{#expr:{{{1}}}*100-80}}s]]  {{!}}
+
[[:Category:{{#expr:{{{1}}}*100-80}}s|{{#expr:{{{1}}}*100-80}}s]]  {{!}}
[[:Category:{{#expr:{{{1}}}*100-70}}s]]  {{!}}
+
[[:Category:{{#expr:{{{1}}}*100-70}}s|{{#expr:{{{1}}}*100-70}}s]]  {{!}}
[[:Category:{{#expr:{{{1}}}*100-60}}s]]  {{!}}
+
[[:Category:{{#expr:{{{1}}}*100-60}}s|{{#expr:{{{1}}}*100-60}}s]]  {{!}}
[[:Category:{{#expr:{{{1}}}*100-50}}s]]  {{!}}
+
[[:Category:{{#expr:{{{1}}}*100-50}}s|{{#expr:{{{1}}}*100-50}}s]]  {{!}}
[[:Category:{{#expr:{{{1}}}*100-40}}s]]  {{!}}
+
[[:Category:{{#expr:{{{1}}}*100-40}}s|{{#expr:{{{1}}}*100-40}}s]]  {{!}}
[[:Category:{{#expr:{{{1}}}*100-30}}s]]  {{!}}
+
[[:Category:{{#expr:{{{1}}}*100-30}}s|{{#expr:{{{1}}}*100-30}}s]]  {{!}}
[[:Category:{{#expr:{{{1}}}*100-20}}s]]  {{!}}
+
[[:Category:{{#expr:{{{1}}}*100-20}}s|{{#expr:{{{1}}}*100-20}}s]]  {{!}}
[[:Category:{{#expr:{{{1}}}*100-10}}s]]  }}
+
[[:Category:{{#expr:{{{1}}}*100-10}}s|{{#expr:{{{1}}}*100-10}}s]]  }}
 
</div>
 
</div>
 
[[Category:Centuries|#{{#ifexpr: {{{1}}} < 10 |0 }}{{{1}}}]]
 
[[Category:Centuries|#{{#ifexpr: {{{1}}} < 10 |0 }}{{{1}}}]]
[[Category:{{{1}}} century| ]]</includeonly>
+
</includeonly>
  
 
<noinclude>
 
<noinclude>
 
[[Category:Time, date and calendar templates]]
 
[[Category:Time, date and calendar templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 23:18, 8 January 2012

This template is a navigation bar for Categories about centuries after Christ (Overview: List of centuries). Please use as follows: (example for 20th century):

{{Category Century|20}}

For categories about the centuries before Christ please use the Template:Category Century BC