Vorlage:Year nav

Aus BoyWiki
Version vom 6. Dezember 2008, 22:17 Uhr von Nignag (Diskussion | Beiträge) (Die Seite wurde neu angelegt: <includeonly>{{#if:{{{nodiv|}}}|<!--then: --> <span class="noprint plainlinksneverexpand" style="white-space:nowrap; font-weight:normal; font-size:xx-small; {{{fon...)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
[edit] Datei:Template-info.svg Template documentation

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:
This box: view  talk  edit


Example for "{{Year nav|101}}" at right:
This box: view  talk  edit


Example for "{{Year nav|100}}" [invalid] at right:
This box: view  talk  edit
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.

zh-yue:Template:年代 da:Skabelon:år es:Plantilla:Año ia:Patrono:Anno nav tet:Template:Tinan th:แม่แบบ:กล่องรวมปี zh:Template:YearTOC