Template:Year nav

From BoyWiki
Revision as of 13:42, 1 January 2023 by Etenne (talk | contribs)

[[Category:Script error: The module returned a nil value. It is supposed to return an export table. with short description]]

Millennium:
Centuries:
Decades:
  • '
Years:
  • '
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:
[[Category:Script error: The module returned a nil value. It is supposed to return an export table. with short description]]
Millennium: 2nd millennium
Centuries:
Decades:
Years:


Example for "{{Year nav|101}}" at right:
[[Category:Script error: The module returned a nil value. It is supposed to return an export table. with short description]]
Millennium: 1st millennium
Centuries:
Decades:
Years:


Example for "{{Year nav|100}}" [invalid] at right:
[[Category:Script error: The module returned a nil value. It is supposed to return an export table. with short description]]
Millennium: 1st millennium
Centuries:
Decades:
Years:
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