قالب:Year article header
![]() | This template adds an automatically generated short description. If the automatic short description is not optimal, replace it by adding {{Short description}} at the top of the article. |
These notes and instructions only appear to people reading the template directly; when it is used, you do not see this.
Instructions
[تعديل]The purpose of this template is to create a standard, uniform calendar description as the first sentence for all years from 1582 on with links to the appropriate terms. It's designed to say the year as either being "was" the year if it is before this year, "is" this year if it's the current year, and "will be" the year if it's after this year, e.g. in 2012, years 2011 and before would say "2011 was a common year starting on..." "2012 is the current year, and is a leap year starting on..." "2013 will be a common year starting on..."
Yes, it does know that only century years which are divisible by 400 are leap years.
Suppose that y is the current year. Then for year y+1, it will say "will be a", then in year y+1, it will say "is the current year, and is a", and finally in year y+2, it will say "was a".
The nice thing about this is that because it's all generated programmatically, when the current year changes it makes the change automatically without requiring human intervention.
Usage
[تعديل]'year it covers will be غلط تعبيري: كلمة مش متعرف عليها "year", الyear it covers سنة من قبل الميلاد (CE) و بعد الميلاد (AD) التسميات, الغلط تعبيري: عامل < مش متوقع سنة من غلط تعبيري: عامل < مش متوقع , و ال غلط تعبيري: عامل < مش متوقع سنه من decade
. as the first item in the text of a year, e.g. '2092 (نمر رومانى) will be a سنة كبيسه تبتدى من التلات فى التقويم جريجورى, ال2092 سنة من قبل الميلاد (CE) و بعد الميلاد (AD) التسميات, ال92 سنة من الفيه 3 و ال قرن 21, و ال 3 سنه من عقد 2090 decade
. for the article for that year. Note that inserting the year directly as opposed to using Year article header was intentional; I needed to make calculations on the value passed and I wanted to make sure I could do that, plus I couldn't test the template if I used the PAGENAME parameter.
If not supplied an argument, '2025 (نمر رومانى) is the current year, and is a سنة بسيطه تبتدى من الاربع فى التقويم جريجورى, ال2025 سنة من قبل الميلاد (CE) و بعد الميلاد (AD) التسميات, ال25 سنة من الفيه 3 و ال قرن 21, و ال 6 سنه من عقد 2020 decade
. defaults its first parameter to 2025
.
Note to editors
[تعديل]It currently does work perfectly for years after 1582. Years before 1582 show Julian and prospective Gregorian. 1582 shows Julian plus warning and prospective Gregorian, 1583 and later, Gregorian with Julian and number of days off for years below 1924, Gregorian only after 1923.
Template data
[تعديل]TemplateData for Year article header
This template creates an introduction to an article about a year.
وسيط | وصف | نوع | حالة | |
---|---|---|---|---|
Year | 1 | The year to create an introduction for.
| رقم | مطلوب |
ممكن المحررين يجربوا تعديلاتهم على القالب فى صفحات ملعب (أنشئ | مرآة) و مختبر (أنشئ). يا ريت تحط التصنيفات فى الصفحه الفرعيه للقالب /شرح. الصفحات الفرعية لـ قالب. |