قالب:صندوق رسالة أخرى/شرح

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

هذا قالبٌ ورائيٌّ يُستخدم في القوالب الأخرى المُستخدمة في نطاقات أخرى ليس لهذا قالب مُحدد.

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

يعمل هذا القالب بشكلٍ مُشابهٍ لقالب {{صندوق رسالة مقالة}} ويستخدم نفس الوسائط.

تعليمات[عدل]

كما هو مُشار أعلاه، هذا القالب ينبغي أن يُستخدم في صناديق الرسائل ما لم تكن مقالاتٍ، أو صفحاتٍ للقناش، أو صفحات صور أو تصنيفات. بعض صناديق الرسائل في الصفحات الأخرى رُبما تستخدم -وبشكلٍ خاطئٍ- أحد الصناديق الأربعة المذكورة أعلاه. خذ راحتك في تحويل أي صناديق رسائل مُستخدمة في "الصفحات الأخرى" لتستخدم هذا القالب الورائي، وإذا واجهت مشاكل، فضلًا اطرحها في صفحة نقاش هذا القالب للحصول على مساعدة.

عند استخدام هذا القالب لبناء صناديق رسائل الصفحات الأخرى، يجب أن تحتوي هذه الصناديق على نصوص توضيحية كما في السابق (نفس النصوص السابقة أو نصوص محسنة جديدة.) إذا كانت هنالك صورٌ أكثر تحديدًا في الصناديق، أو كنت تعرف صورةً أفضل، فاستخدمها بدلاً عن الصور الافتراضية المعروضة هنا.

الاستخدام[عدل]

مثال للاستخدام البسيط:

{{صندوق رسالة أخرى| النص = بعض النصوص هنا.}}

الاستخدام المُعقد:

{{صندوق رسالة أخرى
| النوع = أسلوب
| الصورة = [[File:Emblem-question-yellow.svg|40px]]
| الطراز = width: 400px;
| طراز النص = color: red; font-weight: bold; font-style: italic;
| النص = نص الرسالة.
}}

أنواع صناديق رسائل الصفحات الأخرى[عدل]

الأمثلة التالية تستخدم قيمًا مختلفة لوسيط |النوع= لكن لا تستخدم وسائط للصور، لذلك تُعرض الصور الافتراضية لكل نوع.

أمثلة[عدل]

بعض الأمثلة التي تستخدم تنسيقات نوع "ملاحظة".

الوسائط[عدل]

قائمة بجميع الوسائط:

{{صندوق رسالة أخرى
| الاسم = اسم القالب
| النوع = شطب / حذف / محتوى / أسلوب / ملاحظة / نقل / حماية
| الصورة = بدون / [[ملف:Some image.svg|40px]]
| صورة يسار = [[ملف:Some image.svg|40px]]
| الطراز = قيم CSS
| طراز النص = قيم CSS
| وصلات عادية = no
| النص = نص صندوق الرسالة. 
| صغير = {{{صغير|}}} / نعم
| صورة صغيرة = بدون / [[ملف:Some image.svg|30px]]
| صورة صغير يسار = بدون / [[ملف:Some image.svg|30px]]
| نص صغير = نص قصير لصندوق الرسالة.
}}

name

(Optional) Name of the template. This adds a CSS class with name box-name to the HTML element, for use by bots or scripts.

type

If no type parameter is given the template defaults to type notice. That means it gets a gray border.

image

No parameter = If no image parameter is given the template uses a default image. Which default image it uses depends on the type parameter.
An image = Should be an image with usual wiki notation. 40px - 50px width are usually about right depending on the image height to width ratio. (But the message box can handle images of any size.) For example:
image = [[File:Crystal package settings.png|40px]]
none = Means that no image is used.

imageright

No parameter = If no imageright parameter is given then no image is shown on the right side.
An image = Should be an image with usual wiki notation. 40px - 50px width are usually about right depending on the image height to width ratio. (But the message box can handle images of any size.) For example:
imageright = [[File:Nuvola apps bookcase.png|40px]]
Anything = Any other object that you want to show on the right side.

style

Optional أوراق الأنماط المتتالية values used by the entire message box table. Without quotation marks " " but with the ending semicolons ;. For example:
style = margin-bottom: 0.5em;

textstyle

Optional أوراق الأنماط المتتالية values used by the text cell. For example:
textstyle = text-align: center;

plainlinks

Normally on Wikipedia, external links have an arrow icon next to them, like this: Example.com. However, in message boxes, the arrow icon is suppressed by default, like this: Example.com. To get the normal style of external link with the arrow icon, use |plainlinks=no.

text

The message body text.

وسائط صغير[عدل]

صغير

نعم = لعرض صندوق الرسالة بشكلٍ صغيرٍ في الجانب الأيسر. هذا أيضًا يجعل الصورة الافتراضية أصغر. لاحظ أن أيّ بياناتٍ تُدخل إلى وسائط صورة صغيرة وصورة صغيرة يسار ونص صغير ستُستخدم فقط إذا استخدم "صغير=نعم". لجعل قالبك يتعامل مع وسيط صغير يُمكنك استخدام هذا الكود:
صغير = {{{صغير|}}}

صورة صغيرة

لا وسيط = إذا لم يُعطى وسيط صورة صغيرة فإن القالب يستخدم وسيط الصورة. إذا كان وسيط الصورة فارغًا أيضًا فإن الصورة للصغيرة الافتراضية ستُستخدم.
صورة = ينبغي أن تكون صورةً بصيغة نص ويكي كاملة. عرض 30px ينبغي أن حجمًا مُناسبًا. كمثال:
صورة صغيرة = [[File:Replacement filing cabinet.svg|30px]]
بدون = يعني عدم استخدام أي صورة. هذا يتجاوز أي صورة مُعطاة لوسيط الصورة، حين استخدام "صغير=نعم".

صورة صغيرة يسار

No parameter = If no smallimageright parameter is given then this template falls back to use the imageright parameter. If the imageright parameter also is empty then no image is shown on the right side.
An image = Should be an image with usual wiki notation. 30px width is usually about right. For example:
smallimageright = [[File:Nuvola apps bookcase.png|30px]]
Anything = Any other object that you want to show on the right side.
none = Means that no right side image is used. This overrides any image fed to imageright, when "small=yes".

smalltext

A shorter version of the message body text. If no smalltext parameter is given then this template falls back to use the text parameter.

Technical details[عدل]

If you need to use special characters in the text parameter then you need to escape them like this:

{{صندوق رسالة أخرى
| text = <div>
Equal sign = and a start and end brace { } work fine as they are. 
But here is a pipe {{!}} and two end braces <nowiki>}}</nowiki>. 
And now a pipe and end braces <nowiki>|}}</nowiki>.
</div>
}}

This template uses the ombox CSS classes in ميدياويكي:Common.css for most of its looks, thus it is fully skinnable.

The default images for this meta-template are in png format instead of svg format. The main reason is that some older web browsers have trouble with the transparent background that MediaWiki renders for svg images. The png images here have hand optimised transparent background colour so they look good in all browsers. Note that svg icons only look somewhat bad in the old browsers, thus such hand optimisation is only worth the trouble for very widely used icons.

For more technical details see the talk page. Since this template works almost exactly like {{صندوق رسالة مقالة}}, {{صندوق رسالة نقاش}}, {{صندوق رسالة ملف}} and {{صندوق رسالة تصنيف}} their talk pages and related pages might also contain more details.

انظر أيضًا[عدل]

توجد سبع قوالب وصفية في الوحدة النمطية: عائلة مربع الرسائل: وحدة:Message box:

القوالب الوصفية وثيقة الصلة: