قالب:سنوات في أوروبا/شرح

من أرابيكا، الموسوعة الحرة

هذه نسخة قديمة من هذه الصفحة، وقام بتعديلها عبود السكاف (نقاش | مساهمات) في 06:46، 1 يوليو 2023 (بوت: إصلاح أخطاء فحص أرابيكا من 1 إلى 104). العنوان الحالي (URL) هو وصلة دائمة لهذه النسخة، وقد تختلف اختلافًا كبيرًا عن النسخة الحالية.

(فرق) → نسخة أقدم | نسخة حالية (فرق) | نسخة أحدث ← (فرق)
اذهب إلى التنقل اذهب إلى البحث

هذا قالب تصفح المقصود به إظهار مقالات "سنوات في بلد" بالنسبة للبلدان الأوروبية. وعلى أساس مدخلات العام فإنه يحتوي على جميع بلدان أوروبا في ذلك العام، مربوطة بمقالة "السنة في البلد" المعنية، فإذا بم توجد مقالة عن السنة فإنه يتم ربطها بمقالة "العقد في البلد" إن وجدت، فإن لم يوجد فيتم ربطها ب"تاريخ البلد".

ويستند هذا القالب على {{موضوع أوروبا}} ولذا يستخدم في الغالب نفس الإحداثيات. وقد لا يحتوي القالب على جميع البلدان السابقة، على الرغم من أن الهدف هو أن يجعلها دقيقة لجميع السنوات بعد عام 1000.

إحداثيات

  • 1 (أول إحداثي غير مسمى): السنة (مطلوبة؛ إذا كانت غير محددة أو هناك رسالة هناك خطأ عدم ترقيم )
  • {{{title}}}: عنوان مخصص (default: "<year> في أوروبا"، يتم ربطه إذا وجدت مقالة بهذا الاسم)
  • {{{state}}}: "expanded", "collapsed" or "autocollapse" (انظر {{خيار طوي قالب}})

وعلاوة على ذلك فإن الربط بكل بلد يمكن تعيين كل على حدة باستخدام أسماء الإحداثيات التالية، وإذا لم يتم تعيينه بشيء فإنه يغفل البلاد تماماً. تعمل هذه الإحداثيات أيضاً إذا تم حذف بلد افتراضياً لأنه لم يكن موجوداً في سنة معينة.

البلاد الحالية (رموز الدول حسب المعيار الدولي أيزو 3166-1) التبعيات الحالية (رموز ISO 3166-1)

دول ذات اعتراف محدود (رموز ISO 3166-1 user-assigned )

دول سابقة (ISO 3166-1 ورموز الدول حسب المعيار الدولي أيزو 3166-3)

دول سابقة (رموز ISO 3166-1 user-assigned )

من الممكن تقنياً إدخال سنوات غير صحيحة مثل 1976.5، ولكن هذا ليس له معنى كبير، ومقالات السنة لن تظهر لمثل هذه السنوات.

أمثلة

{{سنوات في أوروبا|1980}}

مثال مع عنوان مخصص ووصلات:

{{سنوات في أوروبا|2000|title=Title|DK=عنوان مخصص للدنمارك}}

لاحظ الوصلة الحمراء المخصصة للدنمارك.

رمز الدول المضافة

* {{سنوات في أوروبا/expr|{{{1}}}|{{{Code|♦}}}|Years|name=Country name}}

where "Code" is a unique country-specific parameter name, "Years" is a series of years identifying periods of existence of a country (see below), and "Country name" is the country name that should be used for links. If the short-form name that should be displayed is different (for example "Georgia (country)" vs. "Georgia"), the parameter |disp=display name should be added; for countries whose names require the article "the" the parameter |the=the is available. The sub-template {{سنوات في أوروبا/expr}} automatically compares the input year with the year criteria and creates the link.

"Years" is a series of up to six unnamed parameters where each pair of two identifies a time period in which the country existed. Omit either for an unbounded interval (since the first year or until the second year). Some examples:

الرمز الفترة بلد متضمنة بالسنوات
* {{Year in Europe/expr|1|{{{Code|♦}}}|1100|1300|name=Name}} [1100, 1300) 1100–1300
* {{Year in Europe/expr|1|{{{Code|♦}}}|1100|1300|1500|1700|name=Name}} [1100, 1300), [1500, 1700) 1100–1300 and 1500–1700
* {{Year in Europe/expr|1|{{{Code|♦}}}|1100|name=Name}} [1100, +∞) since 1100
* {{Year in Europe/expr|1|{{{Code|♦}}}||1300|name=Name}} (−∞, 1300) until 1300
* {{Year in Europe/expr|1|{{{Code|♦}}}|1100|1300|1500|name=Name}} [1100, 1300), [1500, +∞) from 1100 until 1300 and after 1500
* {{Year in Europe/expr|1|{{{Code|♦}}}||1100|1300|name=Name}} (−∞, 1100), [1300, +∞) before 1100 and after 1300
* {{Year in Europe/expr|1|{{{Code|♦}}}|name=Name}} (−∞, +∞) always

By design, each interval includes the left endpoint and excludes the right endpoint. A country with the coding from the first example would therefore be listed if the input year is 1100, but not if the input year is 1300.

حدود

This template uses two قالب:Parser parser functions for each included country. Because {{#ifexist}} is an أرابيكا:حدود القوالب, only 500 of these may be used on a given page (see أرابيكا:حدود القوالب). Depending on the number of countries in the given year, this template can therefore be transcluded only a few times on the same page, and if a page already uses a lot of expensive parser functions, adding it may cause the page to be automatically added to تصنيف:تجاوزات الدوال المكلفة.