هذه صفحة توثيق فرعية تخص قالب:Country showdata.
تحتوي هذه الصفحة على معلومات و تصنيف ومحتويات أخرى تتعلق بشرح القالب ولا تعتبر جزءا منه.
للاطلاع على صفحة القالب نفسه، انظر قالب:Country showdata.

إن هذا القالب يستخدم لتوثيق القوالب المستخدمة من قبل قوالب أعلام. إن نتائج هذا القالب يمكن ملاحظتها مباشرة من خلال أي من القوالب في تصنيف:قوالب بيانات بلد.

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

يتم استدعاء هذا القالب تلقائيا عن طريق بناء الجملة القياسي من قالب بيانات بلد:

{{ {{{1<noinclude>|عرض بيانات بلد</noinclude>}}}
| alias = Countryname
| shortname alias = Shortcountryname  <!-- only necessary if Shortcountryname ≠ Countryname, otherwise omit -->
| flag alias = Flag of Countryname.svg
| size = {{{size|}}}
| name = {{{name|}}}
| variant = {{{variant|}}}  <!-- only necessary if there is one or more flag alias-variant parameters, otherwise omit -->
}}

الوسيط الاولانى في قالب بيانات بلد عادة ما يكون اسم تنسيق القالب الفوقي. على سبيل المثال قالب:علم يستخدم قالب:علم/صميم ليقوم فعلياً بتشكيل أيقونة العلم ووصلة الويكي. إذا كان الوسيط الاولانى مفقوداً، والذي في هذه الحالة سيتم عرض قالب بيانات بلد مباشرة، فإن هذا الجزء من برمجة القالب {{{1<noinclude>|country showdata</noinclude>}}} يضمن أن هذا القالب سيتم استخدامة كقيمة افتراضية للوسيط الأول. هذه التقنية تضمن أن تقوم قوالب بيانات بلد بتوثيق نفسها إذا ما تم استخدام النص المعياري.

الوسائط الإضافية تعديل

العديد من قوالب تتطلب توثيقاً إضافياً يتجاوز الوسائط alias و flag alias الإلزامية المعيارية. يقوم هذا القالب تلقائياً بتوثيق الوسائط الاختيارية المعيارية (مثل shortname alias) في حال استخدامها. كما يمكن توثيق الوسائط الاختيارية الفريدة (مثل وسائط flag variant) إذا ماتم تضمينها. هذه الطريقة الأخيرة تستخدم وسائط محددة التوثيق في قالب بينات بلد لتفعيل المخرج الإضافي لهذا القالب. وسائط التوثيق هذه مفصولة عن باقي وسائط قالب بيانات بلد بواسطة المقطع <noinclude>

<noinclude>
| var1 = ...
| redir1 = ...
| related1 = ...
</noinclude>

متغيرات العلم تعديل

يتم إضافة متغيرات العلم إلى قالب بيانات بلد من خلال تضمين واحد أو أكثر من محددات flag alias-عنوان، حيث كل عنوان هو محدد فريد يتم استخدامه لاحقاً في إدخال المحددات إلى {{علم|...}}، , {{رمز علم|...}}، إلخ. لتوثيق متغيرات العلم، استخدم محدد التوثيق varN لتحديد كل عنوان.

على سبيل المثال قالب:بيانات بلد سيشل تقوم بتحديد ثلاث متغيرات للعلم (إضافة إلى العلم الحالي) وذلك من خلال الكود التالي:

| flag alias-1976 = Flag of the Seychelles 1976.svg
| flag alias-1977 = Flag of the Seychelles 1977.svg
| flag alias-colonial = Government Ensign of the United Kingdom.svg

ويتم توثيق هذه المتغيرات من خلال القسم التالي لاحقاً في القالب:

<noinclude>
| var1 = 1976
| var2 = 1977
| var3 = colonial
...
</noinclude>

يمكن توثيق حتى خمسة عشر علماً مختلفاً باستخدام هذه الطريقة (باستخدام var1 حتى var15). في حال وجود أكثر من ذلك، يمكن سرد هذه المتغيرات في صفحة توثيق فرعية منفصلة.

لاحظ أنك لست بحاجة لاستخدام محددات varN للمتغيرات المعيارية الاختيارية كتسميات naval‏، air force‏و army (وهي تستخدم لشعارات البحرية، القوى الجوية، والجيش على التسلسل). في حال اسخدام هذه المتغيرات فسيتم توثيقها بشكل آلي.

Redirect aliases تعديل

Many country data templates have alias names that can be used instead of the usual country name with all of the main flag templates. These are usually, but not exclusively, standard country code abbreviations such as those specifed in أيزو 3166-1 حرفي-3 or by the IOC or قائمة البلدان حسب رموز الفيفا. These are implemented as redirects, and are listed in Category:تحويلات قوالب بيانات بلد.

For example, Template:Country data DEU and Template:Country data GER both redirect to Template:Country data Germany, because DEU is the ISO code and GER is the IOC and FIFA code for Germany. Therefore, {{رمز علم|DEU}}, {{رمز علم|GER}}, and {{رمز علم|Germany}} all have the same result. These redirect aliases are documented by the following template code fragment:

<noinclude>
...
| redir1 = DEU
| redir2 = GER
...
</noinclude>

Up to five flag redirects can be documented by this method (using redir1 to redir5).

Related templates تعديل

Several country data templates are used for alternative forms to the common country data template for the nation, usually but not exclusively for historic nations. Pointers to these alternative templates are useful additions to the template documentation so that editors can use the correct template for their specific purposes.

For example, Template:Country data Serbia and Montenegro includes the following code to document three other related country data templates:

<noinclude>
...
| related1 = Serbia
| related2 = Montenegro
| related3 = FR Yugoslavia
...
</noinclude>

Up to six related flags can be documented by this method (using related1 to related6).

Flag article link تعديل

This template shows a large flag image on the right of the documentation box, with a link to an article about the flag in the caption if it exists. The page that it evaluates is "Flag of {{{alias}}}", with the value of |alias= in the template code replacing {{{alias}}}. If there is an article about the flag even though "Flag of {{{alias}}}" does not exist, either create the latter as a redirect to the correct page or add the following parameter:

<noinclude>
...
| flag link = ''Article name''
...
</noinclude>

This can also be used to override the automatic link if "Flag of {{{alias}}}" does exist but leads to the wrong article.

Additional documentation تعديل

For situations where the automatic documentation method is not completely adequate, additional documentation can be displayed by country showdata. Simply create a documentation subpage (named as Template:Country data Countryname/doc) with the additional material, and it will be transcluded after all other output sections.

For example:

Categorization تعديل

This template automatically categorizes pages it is transcluded on in Category:جميع قوالب بيانات بلد and in the tracking categories in Category:Country data tracking categories. Content categories, such as those by country or by type/status, should be added manually by putting them inside <includeonly></includeonly> tags on a template's documentation subpage. If a template does not have a documentation page yet, click on the "/doc" link at the bottom of the automatic documentation, add categories between the preloaded <includeonly> tags and save the page.

The default sort key used for the automatic categories is the part after Template:Country data in the page title (overwritten by the deprecated |templatename= parameter if specified). The parameter |cat= can be used to specify a custom ASCII sorting key for these categories. For example, Template:Country data Åland Islands and Template:Country data Republic of Ireland use this parameter to sort them under "A" and "I" respectively.