الگو:ناوبری سال/توضیحات

از ویکی‌پدیا، دانشنامهٔ آزاد

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 "{{ناوبری سال|1970}}" at right:
سده: سده ۱۹ - سده ۲۰ - سده ۲۱
دهه: ۱۹۴۰  ۱۹۵۰  ۱۹۶۰  ۱۹۷۰  ۱۹۸۰  ۱۹۹۰  ۲۰۰۰ 
سال: ۱۹۶۷ ۱۹۶۸ ۱۹۶۹ - ۱۹۷۰ - ۱۹۷۱ ۱۹۷۲ ۱۹۷۳
Example for "{{ناوبری سال|101}}" at right:
سده: سده ۱ - سده ۲ - سده ۳
دهه: ۷۰  ۸۰  ۹۰  ۱۰۰  ۱۱۰  ۱۲۰  ۱۳۰ 
سال: ۹۸ ۹۹ ۱۰۰ - ۱۰۱ - ۱۰۲ ۱۰۳ ۱۰۴
Example for "{{ناوبری سال|-405}}" at right:
سده: سده ۴ - سده ۵ - سده ۶
دهه: ۳۷۰  ۳۸۰  ۳۹۰  ۴۰۰  ۴۱۰  ۴۲۰  ۴۳۰ 
سال: ۴۰۲ ۴۰۳ ۴۰۴ - ۴۰۵ - ۴۰۶ ۴۰۷ ۴۰۸
Example for "{{ناوبری سال|100}}" [invalid] at right:
سده: سده ۰ - سده ۱ - سده ۲
دهه: ۷۰  ۸۰  ۹۰  ۱۰۰  ۱۱۰  ۱۲۰  ۱۳۰ 
سال: ۹۷ ۹۸ ۹۹ - ۱۰۰ - ۱۰۱ ۱۰۲ ۱۰۳
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.