موضيل: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, موضيل:Country data DEU and موضيل:Country data GER both redirect to موضيل:معلومات بلاد ألمانيا, because DEU is the ISO code and GER is the IOC and FIFA code for Germany. Therefore, {{رمز علم|DEU}}, {{رمز علم|GER}}, and {{رمز علم|ألمانيا}} 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).
موضيلات خرين متعلقين
[بدل لكود]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 موضيل:پاراميطر موضيل 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:
- موضيل:Country data Ireland/doc is used to explain why that template is distinct from Template:Country data Republic of Ireland
- موضيل:Country data France/doc is used to document the list of country data templates available for each of the regions of France
- موضيل:Country data United States/doc is used to document the full set of flag variants (for each number of stars), and to list all of the country data templates available for state and territory flags
Categorization
[بدل لكود]This template automatically categorizes pages it is transcluded on in تصنيف:جميع موضيلات معلومات بلاد and in the tracking categories in Category:Country data tracking categories. Content categories, such as those تصنيف:موضيلات معلومات بلاد حسب البلد or تصنيف:موضيلات معلومات بلاد حسب نوع الكيان, 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. The parameter موضيل:پاراميطر موضيل can be used to specify a custom ASCII sorting key for these categories. For example, موضيل:معلومات بلاد جزر أولاند and موضيل:معلومات بلاد جمهورية أيرلندا use this parameter to sort them under "A" and "I" respectively.
Automatically added by this template:
- تصنيف:جميع موضيلات معلومات بلاد (0 صفاحي)
- تصنيف:Country data template sandboxes (0 صفاحي)
Manually added to templates or documentation pages:
- تصنيف:موضيلات معلومات بلاد عن البلدان (0 صفاحي)
- تصنيف:Country data templates of cities (0 صفاحي)
- تصنيف:موضيلات معلومات بلاد منظمات دولية (0 صفاحي)
| هاد شّرح لي لفوق تم تضمينو من موضيل:Country showdata/شرح. (بدل | تاريخ) لكتاتبيا يقدرو يجربو تعديلاتهم على لموضيل ف صفحات تيران د رملة (صاوب | مراية) و لابو (صاوب). عافاك زيد التصنيفات ف الصفحة لفرعية /شرح. الصفحات لفرعية ديال هاد لموضيل. |