Template:Year nav: Difference between revisions
From BoyWiki
m Protected "Template:Year nav" [edit=sysop:move=sysop] |
No edit summary Tag: Manual revert |
||
(3 intermediate revisions by the same user not shown) | |||
Line 27: | Line 27: | ||
--> [[{{#expr: {{{1|888}}} + 3}}]] | --> [[{{#expr: {{{1|888}}} + 3}}]] | ||
|}<noinclude> | |}<noinclude> | ||
[[Category:History and events navbox templates]] | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 13:43, 1 January 2023
Centuries: | 8th century - 9th century - 10th century |
Decades: | 850s 860s 870s - 880s - 890s 900s 910s
|
Years: | 885 886 887 - 888 - 889 890 891 |
BoyWiki Template documentation (for the above template, sometimes hidden or invisible)
Result
Output for default year "888" can be seen above.
Usage
Takes one parameter, the year-number (year 101 or higher).
The box width shrinks nearly 6% for smaller year-number sizes.
Example for "{{Year nav|1970}}" at right:
Centuries: | 19th century - 20th century - 21st century |
Decades: | 1940s 1950s 1960s - 1970s - 1980s 1990s 2000s
|
Years: | 1967 1968 1969 - 1970 - 1971 1972 1973 |
Example for "{{Year nav|101}}" at right:
Centuries: | 1st century - 2nd century - 3rd century |
Decades: | 70s 80s 90s - 100s - 110s 120s 130s
|
Years: | 98 99 100 - 101 - 102 103 104 |
Example for "{{Year nav|100}}" [invalid] at right:
Centuries: | 0th century - 1st century - 2nd century |
Decades: | 70s 80s 90s - 100s - 110s 120s 130s
|
Years: | 97 98 99 - 100 - 101 102 103 |
- Use other tables to handle year 100 or below.
Notes
- This template uses the #expr parser function to calculate centuries, decades, and year numbers surrounding the year parameter.
- Negative numbers are passed through, not as "BC" but negative.
- Variables are not used, as they were not a supported feature when this template was created, so calculations are made twice, as needed, to determine results.
Visit Template:Year nav/doc to edit this template's description!
Done making changes? Refresh Also see: Portal:Template index and Help:Templates
Done making changes? Refresh Also see: Portal:Template index and Help:Templates