Difference between revisions of "Template:Centurybox"
Jump to navigation
Jump to search
[[Category:Template:Pagetype with short description]]
imported>WOSlinker (tidy style for better HTML5 compatibility) |
imported>Trialpears (MOS:FONTSIZE issues fixed) |
||
| (10 intermediate revisions by 7 users not shown) | |||
| Line 1: | Line 1: | ||
| − | <includeonly>{| class="infobox" style="text-align:center; {{#ifeq:{{{float}}}|center|float: none; margin-left:auto; margin-right:auto;|{{#if:{{{float|}}}|float: {{{float}}}}}}}" | + | <includeonly>{{short description|Century}} |
| + | {| class="infobox" style="text-align:center; {{#ifeq:{{{float}}}|center|float: none; margin-left:auto; margin-right:auto;|{{#if:{{{float|}}}|float: {{{float}}}}}}}" | ||
|- style="background:#f0f0f0" | |- style="background:#f0f0f0" | ||
| − | ! style="text-align:right;" | | + | ! style="text-align:right;" | Millennium: |
| − | | {{dr|c|m|{{{1}}}|0|s}} | + | | {{dr|c|m|{{{1}}}|0|s}} |
|- | |- | ||
| − | ! style="text-align:right;" | | + | ! style="text-align:right;" | Centuries: |
| class="hlist" | | | class="hlist" | | ||
| − | *{{dr|c|c|{{{1}}}|-1|ys}} | + | * {{dr|c|c|{{{1}}}|-1|ys}} |
| − | *{{dr|c|c|{{{1}}}|0|s}} | + | * '''{{dr|c|c|{{{1}}}|0|s}}''' |
| − | *{{dr|c|c|{{{1}}}|1|{{#ifeq:{{{1}}}|-1|ysa|ys}}}} | + | * {{dr|c|c|{{{1}}}|1|{{#ifeq:{{{1}}}|-1|ysa|ys}}}} |
|- style="background:#f0f0f0" | |- style="background:#f0f0f0" | ||
| − | ! style="text-align:right;" | | + | ! style="text-align:right;" | Timelines: |
| − | | {{dr|c|d|{{{1}}}|0|s}} {{dr|c|d|{{{1}}}|1|s}} {{dr|c|d|{{{1}}}|2|s}} {{dr|c|d|{{{1}}}|3|s}} {{dr|c|d|{{{1}}}|4|s}} | + | | class="hlist" | |
| − | |- | + | * {{#ifexist:Timeline of the {{dr|c|c|{{{1}}}|-1|n}} |
| − | ! style="text-align:right;" | {{#ifexpr:{{{1}}}<22| | + | |[[Timeline of the {{dr|c|c|{{{1}}}|-1|n}}|{{dr|c|c|{{{1}}}|-1|ns}}]] |
| + | |[[{{dr|c|c|{{{1}}}|-1|n}}#Events|{{dr|c|c|{{{1}}}|-1|ns}}]] | ||
| + | }} | ||
| + | * {{#ifexist:Timeline of the {{dr|c|c|{{{1}}}|0|n}} | ||
| + | |'''[[Timeline of the {{dr|c|c|{{{1}}}|0|n}}|{{dr|c|c|{{{1}}}|0|ns}}]]''' | ||
| + | |'''[[{{dr|c|c|{{{1}}}|0|n}}#Events|{{dr|c|c|{{{1}}}|0|ns}}]]''' | ||
| + | }} | ||
| + | * {{#ifexist:Timeline of the {{dr|c|c|{{{1}}}|1|n}} | ||
| + | |[[Timeline of the {{dr|c|c|{{{1}}}|1|n}}|{{dr|c|c|{{{1}}}|1|{{#ifeq:{{{1}}}|-1|nsa|ns}}}}]] | ||
| + | |[[{{dr|c|c|{{{1}}}|1|n}}#Events|{{dr|c|c|{{{1}}}|1|{{#ifeq:{{{1}}}|-1|nsa|ns}}}}]] | ||
| + | }} | ||
| + | |- style="background:#f0f0f0" | ||
| + | ! style="text-align:right;" | State leaders: | ||
| + | | class="hlist" | | ||
| + | * {{#ifexist:List of state leaders in the {{dr|c|c|{{{1}}}|-1|n}} | ||
| + | |[[List of state leaders in the {{dr|c|c|{{{1}}}|-1|n}}|{{dr|c|c|{{{1}}}|-1|ns}}]] | ||
| + | |{{dr|c|c|{{{1}}}|-1|n}}|{{dr|c|c|{{{1}}}|-1|ns}} | ||
| + | }} | ||
| + | * {{#ifexist:List of state leaders in the {{dr|c|c|{{{1}}}|0|n}} | ||
| + | |'''[[List of state leaders in the {{dr|c|c|{{{1}}}|0|n}}|{{dr|c|c|{{{1}}}|0|ns}}]]''' | ||
| + | |'''{{dr|c|c|{{{1}}}|0|n}}|{{dr|c|c|{{{1}}}|0|ns}}''' | ||
| + | }} | ||
| + | * {{#ifexist:List of state leaders in the {{dr|c|c|{{{1}}}|1|n}} | ||
| + | |[[List of state leaders in the {{dr|c|c|{{{1}}}|1|n}}|{{dr|c|c|{{{1}}}|1|{{#ifeq:{{{1}}}|-1|nsa|ns}}}}]] | ||
| + | |{{dr|c|c|{{{1}}}|1|n}}|{{dr|c|c|{{{1}}}|1|{{#ifeq:{{{1}}}|-1|nsa|ns}}}} | ||
| + | }} | ||
| + | |- | ||
| + | ! style="text-align:right;" | [[List of decades|Decades]]: | ||
| + | | {{hlist | ||
| + | | {{dr|c|d|{{{1}}}|0|s}} | ||
| + | | {{dr|c|d|{{{1}}}|1|s}} | ||
| + | | {{dr|c|d|{{{1}}}|2|s}} | ||
| + | | {{dr|c|d|{{{1}}}|3|s}} | ||
| + | | {{dr|c|d|{{{1}}}|4|s}} | ||
| + | }} {{hlist | ||
| + | | {{dr|c|d|{{{1}}}|5|s}} | ||
| + | | {{dr|c|d|{{{1}}}|6|s}} | ||
| + | | {{dr|c|d|{{{1}}}|7|s}} | ||
| + | | {{dr|c|d|{{{1}}}|8|s}} | ||
| + | | {{dr|c|d|{{{1}}}|9|s}} | ||
| + | }} | ||
| + | |- style="background:#f0f0f0" | ||
| + | ! style="text-align:right;" | {{#ifexpr:{{{1}}}<22|Categories:}} | ||
| {{#ifexpr:{{{1}}}<22|[[:Category:{{#ifexpr:{{{1}}}>0|{{ordinal|{{{1}}}}}-century|{{ordinal|{{#expr:-{{{1}}}}}}}-century BC}} births|Births]] – [[:Category:{{#ifexpr:{{{1}}}>0|{{ordinal|{{{1}}}}}-century|{{ordinal|{{#expr:-{{{1}}}}}}}-century BC}} deaths|Deaths]] <br>[[:Category:{{#ifexpr:{{{1}}}>0|{{ordinal|{{{1}}}}}-century|{{ordinal|{{#expr:-{{{1}}}}}}}-century BC}} establishments|Establishments]] – [[:Category:{{#ifexpr:{{{1}}}>0|{{ordinal|{{{1}}}}}-century|{{ordinal|{{#expr:-{{{1}}}}}}}-century BC}} disestablishments|Disestablishments]]}} | | {{#ifexpr:{{{1}}}<22|[[:Category:{{#ifexpr:{{{1}}}>0|{{ordinal|{{{1}}}}}-century|{{ordinal|{{#expr:-{{{1}}}}}}}-century BC}} births|Births]] – [[:Category:{{#ifexpr:{{{1}}}>0|{{ordinal|{{{1}}}}}-century|{{ordinal|{{#expr:-{{{1}}}}}}}-century BC}} deaths|Deaths]] <br>[[:Category:{{#ifexpr:{{{1}}}>0|{{ordinal|{{{1}}}}}-century|{{ordinal|{{#expr:-{{{1}}}}}}}-century BC}} establishments|Establishments]] – [[:Category:{{#ifexpr:{{{1}}}>0|{{ordinal|{{{1}}}}}-century|{{ordinal|{{#expr:-{{{1}}}}}}}-century BC}} disestablishments|Disestablishments]]}} | ||
|}</includeonly><noinclude> | |}</includeonly><noinclude> | ||
{{documentation}}</noinclude> | {{documentation}}</noinclude> | ||
| + | <noinclude>{{convert to use Sidebar}}</noinclude> | ||
Latest revision as of 00:57, 21 November 2019
| Millennium: | [[Template:Ordinal millennium|Template:Ordinal millennium]] |
|---|---|
| Centuries: |
|
| Timelines: |
|
| State leaders: |
|
| Decades: | |
| Categories: | [[:Category:Template:Ordinal-century births|Births]] – [[:Category:Template:Ordinal-century deaths|Deaths]] [[:Category:Template:Ordinal-century establishments|Establishments]] – [[:Category:Template:Ordinal-century disestablishments|Disestablishments]] |
| Millennium: | [[Template:Ordinal millennium BC|Template:Ordinal millennium BC]] |
|---|---|
| Centuries: |
|
| Timelines: |
|
| State leaders: |
|
| Decades: | |
| Categories: | [[:Category:Template:Ordinal-century BC births|Births]] – [[:Category:Template:Ordinal-century BC deaths|Deaths]] [[:Category:Template:Ordinal-century BC establishments|Establishments]] – [[:Category:Template:Ordinal-century BC disestablishments|Disestablishments]] |
Usage
This template produces a navigational box for the century numbered in the parameter. Positive numbers yield AD centuries, negative numbers BC centuries.
Examples
- For the 21st century, use
{{centurybox|21}}. - For the 1st century BC, use
{{centurybox|-1}}.
Optional parameters
By default, the navigational box will float to the right of the page. This behaviour can be altered using float= left, right, center, or none
See also
- Template:T, a navigation box for decades
- Template:T, a navigation box listing all years in a given century
| The above documentation is transcluded from Template:Centurybox/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. |
| This template should be converted to a standardized format using Template:Sidebar. (Talk • Category) |