قالب:شريط تصنيف سياسة وطنية في عقد/شرح

من أرابيكا، الموسوعة الحرة
اذهب إلى التنقل اذهب إلى البحث


يؤسس تصنيف على شاكلة «تصنيف:السياسة الوطنية في عقد YYY0»، بحيث عقد "YYY0" يجب أن يحوي أربعة أرقام
مثال:

الاستخدام

الاستخدام العادي

{{سياوطن-عقد}}

لايحتاج إلى وسائط، لأن القالب يبحث عن البيانات الأخرى.

مثال: في تصنيف:السياسة البريطانية في عقد 1960، لايحتاج إلى وسائط

The other needed data is:

  1. the adjectival form of the country in which the country is located. This is looked up by قالب:GetAdjectiveFromCountryName
  2. the continent(s) in which the country is located. This is looked up by قالب:Country2continent

If either of those lookups fails, then an error is reported unless the required data is supplied by an optional parameter.

That may be due to this category being misnamed, or it may be due to an omission in the lookup table used by قالب:GetAdjectiveFromCountryName or قالب:Country2continent. (Some former countries may have been omitted. Also, when country has been renamed, the lookup uses only the current country name).

If a lookup fails, then the template creates no output other than an error message. If you are satisfied that the category is correctly named, use the one of the optional parameters below.

Optional parameters

  • |nationality=Fooish bypasses the lookup of the nationality, and uses "Fooish"
  • |continent1=Atlantis bypasses the lookup of the continent, and uses "Atlantis".
  • |continent2=Lemuria bypasses the lookup of the continent, and adds a second continent: "Lemuria"
  • |parentnationality=AnotherCountry is available for use when a country is part of another country
  • |diagnose=yes turns on diagnostics, which may help if the template doesn't work as expected

Tracking

Use of the |parentnationality= parameter is tracked in:

Categories where country lookup fails are tracked in a category shared with many other templates:

انظر أيضًا