قالب:عدة صور

![]() | هذا القالب يستعمل لوا: |
هذا القالب يخلق مربع مع 09:58 الصور مرتبة عموديا أو أفقيا مع تعليق لمربع كامل و / أو كل الصور.
مع اختيار المناسب من المعطيات، ويمكن تغيير حجم القالب بشكل تلقائي الصور إلى العرض الكامل مع كل صورة لها نفس الارتفاع.
الوسائط
[عدل]{{عدة صور |محاذاة_تعليق= <!-- يمين، يسار، مركز --> | محاذاة= <!-- يمين (افتراضي)، يسار، مركز --> | اتجاه= <!-- أفقي (افتراضي)، عمودي --> | لون_الخلفية= <!-- لون خلفية الصندوق --> <!-- العنوان --> | خلفية_العنوان = | محاذاة_العنوان = <!-- مركز (افتراضي)، يسار، يمين --> | عنوان = | عرض = <!-- عرض كل صورة بالبكسل (عدد صحيح، احذف اللاحقة "px") --> | صورة1 = | عرض1 = | بديل1 = | وصلة1 = | تعليق1 = | صورة2 = | عرض2 = | بديل2 = | وصلة2 = | تعليق2 = <!-- يمكن زيادته إلى 10 صور (صورة10) --> | خلفية_التذييل = | محاذاة_التذييل = <!-- يسار (افتراضي)، يمين، مركز --> | تذييل = }}
- تغيير حجم جميع الصور تلقائيًا إلى نفس الارتفاع وإلى عرض إجمالي معين
{{عدة صور|caption_align=center <!-- Essential parameters --> | align = <!-- right (default)، left، center، none --> | direction = <!-- horizontal (default)، vertical --> | background color = <!-- box background --> <!-- Header --> | header_background = | header_align = <!-- center (default)، left، right --> | header = <!-- Images --> | total_width = <!-- total width of all the displayed images in pixels (an integer، omit "px" suffix) --> <!--image 1--> | image1 = <!-- filename only، i.e. without "File:" or "Image:" prefix --> | width1 = <!-- full width of the ORIGINAL UNSCALED image --> | height1 = <!-- full height of the ORIGINAL UNSCALED image --> | alt1 = | link1 = | caption1 = <!--image 2--> | image2 = <!-- filename only، i.e. without "File:" or "Image:" prefix --> | width2 = <!-- full width of the ORIGINAL UNSCALED image --> | height2 = <!-- full height of the ORIGINAL UNSCALED image --> | alt2 = | link2 = | caption2 = <!-- and so on، to a maximum of 10 images (image10) --> <!-- Footer --> | footer_background = | footer_align = <!-- left (default)، center، right --> | footer = }}
الوسيط | وصف |
---|---|
محاذاة | يسار (افتراضي)، يمين، وسط |
اتجاه | أفقي (افتراضي)، عمودي |
لون الخلفية | لتحديد لون خلفية الصندوق الذي تظهر فيه الصور، انظر قائمة الألوان. |
خلفية_العنوان | |
محاذاة_العنوان | وسط (افتراضي)، يسار، يمين |
عنوان | |
عرض | يُستخدم لتحديد نفس العرض لكل صورة (أي يتجاوز أي عرض[n] أدناه). لا تُدرج إذا كان من المطلوب أن تكون عروض الصور مختلفة، بما في ذلك إذا كانت الصور ستُعدَّل لتتناسب مع عرض كلي ثابت. |
total_width | يُستخدم لتعديل الصور لتكون بنفس الارتفاع وضمن هذا العرض الكلي. لا تستخدم كل من total_width وعرض معًا. |
صورة[n] | (حيث [n] = من 1 إلى 10) اسم ملف الصورة رقم [n]. |
عرض[n] | (كما أعلاه) له معنيان: (1) عرض الصورة رقم [n] بالبكسل (عدد صحيح، بدون "px")، ويتجاوز بواسطة عرض إذا تم تحديده. (2) العرض الكامل للصورة الأصلية رقم [n] إذا تم تحديد total_width لتعديل جميع الصور إلى نفس الارتفاع وضمن عرض كلي معين. |
ارتفاع[n] | (كما أعلاه) الارتفاع الكامل للصورة الأصلية رقم [n] إذا تم تحديد total_width لتعديل جميع الصور إلى نفس الارتفاع وضمن عرض كلي معين. يتم تجاهله خلاف ذلك. |
بديل[n] | (كما أعلاه) الوصف البديل للصورة رقم [n]. |
وصلة[n] | (كما أعلاه) لتحديد الصفحة التي ترتبط بها الصورة رقم [n] (أي الصفحة التي تُفتح عند النقر على الصورة). إذا تُركت فارغة (مثال: ...|بديل1=... |وصلة1= |تعليق1=...)، يتم تعطيل الربط (حتى إلى مساعدة:صفحة الملف)؛ راجع الوصف البديل [الإنجليزية]. ملاحظة: لا يجب استخدام هذا الوسيط مع الصور التي تم ترخيصها ضمن رخصة برمجيات حرة (مثل رخصة جنو للوثائق الحرة أو رخص المشاع الإبداعي) حيث تتطلب هذه التراخيص أن تُربط الصور بإعلان الترخيص المستخدم. |
تعليق[n] | (كما أعلاه) تعليق الصورة رقم [n]. |
محاذاة_تعليق | يسار (افتراضي)، وسط، يمين |
خلفية_التذييل | |
محاذاة_التذييل | يسار (افتراضي)، وسط، يمين |
تذييل | تعليق يغطي الصندوق بأكمله، بدلاً من تعليقات الصور الفردية. |
أمثلة
[عدل]{{عدة صور|caption_align=center|header_align=center | width = 60 | image1 = Yellow card.svg | alt1 = Yellow cartouche | image2 = Red card.svg | alt2 = Red cartouche | footer = ينبه اللاعبون ببطاقة صفراء ويطردون ببطاقة حمراء. }}
{{عدة صور|caption_align=center|header_align=center | align = left | direction = vertical | width = 200 | header = [[بي إن جي (صيغة ملفات)]] transparency demonstration | image1 = PNG transparency demonstration 1.png | alt1 = Colored dice with white background | caption1 = A PNG image with an 8-bit transparency layer... | image2 = PNG transparency demonstration 2.png | alt2 = Colored dice with checkered background | caption2 = ...here overlaying a checkered background. }}
{{عدة صور|caption_align=center|header_align=center | width = 60 | image1=Ribbon numeral 2.png | alt1=2 | image2=Ribbon numeral 3.png | alt2=3 | image3=Ribbon numeral 4.png | alt3=4 | footer = When a user has many of one type of [[ويكيبيديا:جوائز|barnstar]], they can represent them with [[WP:RIBBON|ribbons]] and these numerals to indicate the count. }}
مع استعمال لون في الخلفية
[عدل]{{عدة صور|caption_align=center|header_align=center
| background color = #BBDD99
| width = 160
| image1 = Adoxa_moschatellina_210406.jpg
| alt1 = Green herb with a few tiny yellow-white flowers
| image2 = Adoxa_moschatellina_210406a.jpg
| alt2 = Three small white and yellow flowers before green-leaf background
| image3 = adoxa_moschatellina_blatt.jpeg
| alt3 = Leaves of a plant, in groups of three each with three lobes
| footer_background = #BBDD99
| footer_align = center
| footer = [[أدوسكة]] (''Adoxa moschatellina'')
}}
مع وصلات
[عدل]{{عدة صور|caption_align=center|header_align=center
| align = left
| image1 = Frecklesmule.jpg
| width1 = 143
| alt1 = A mule
| link1 = Mule
| caption1 = A mule<br />(骡子 ''luózi'')
| image2 = Donkey 1 arp 750px.jpg
| width2 = 150
| alt2 = A donkey
| link2 =
| caption2 = A donkey<br />(驴子 ''lǘzi'')</center>
| image3 = Rainbow_trout.png
| width3 = 91
| alt3 = A trout
| caption3 = A fish<br />({{رمز لغة|zh|2=鱼}} ''yú'')</center>
| footer = The image of the mule links to [[بغل]]؛ the image of the donkey does not link anywhere; the image of the trout links to a [[مساعدة:صفحة الملف|standard image description page]].
}}
استخدام الاتجاه
[عدل]بشكل افتراضي، تُعرض الصور التي يقدمها القالب أفقيًا، كصف واحد (انظر اليسار؛ ما يعادل تعيين |direction=horizontal). لعرضها عموديًا، أي كعمود واحد، قم بتعيين |direction=vertical (انظر اليمين).
لتتناسب مع ارتفاعات الصورة
[عدل]- قرر عرضًا إجماليًا لجميع الصور، على سبيل المثال 320 بكسل
- قم بفحص صفحات الصور الفردية للحصول على الدقة الكاملة. على سبيل المثال:
- ملف:Donkey 1 arp 750px.jpg يعرض "Donkey_1_arp_750px.jpg (750 × 536 بكسل، حجم الملف: 125 كيلوبايت، نوع MIME: image/jpeg)"
- ملف:Rainbow trout.png يعرض "Rainbow_trout.png (300 × 300 بكسل، حجم الملف: 158 كيلوبايت، نوع MIME: image/png)"
- حدد العرض والارتفاع الكامل لكل صورة، على الصيغة:
|width1=
|height1=
|width2=
|height2=
- ضبط العرض الإجمالي باستخدام
|total_width=
{{عدة صور|caption_align=center|header_align=center | align = right | total_width = 320 | image1 = Donkey 1 arp 750px.jpg | width1 = 750 | height1 = 536 | alt1 = A donkey | caption1 = Rectangular image of a donkey, originally 536 pixels high. | image2 = Rainbow_trout.png | width2 = 300 | height2 = 300 | alt2 = A trout | caption2 = Square image of a trout, originally 300 pixels high. | footer = Both images have been rendered with the same height, and a total width of 320px }}
صفوف متعددة
[عدل]لإنشاء مصفوفة من الصور، مع صفوف متعددة، استخدم |perrow=
. يمكن أن تكون القيمة الممررة إلى |perrow=
رقمًا واحدًا، أو قائمة من الأرقام مفصولة بواسطة /
. يمكن دمج هذه الميزة أيضًا مع |total_width=
لصور متعددة في صفوف بنفس العرض الإجمالي.
{{عدة صور |perrow = 2|total_width=300 | image1 = Misseriguine-Oran-Flore.jpg | image2 = Marguerite commune-Oran-Algerie.jpg | image3 = Flores-Oran.jpg | image4 = Iris planifolia-Oran-Algérie.jpg | footer = تجميعة لأبرز النباتات التي تنمو في مدينة [[وهران]]. }}
بيانات القالب
[عدل]بيانات قالب: «عدة صور»
ينشئ هذا القالب مربعًا به صورتان إلى عشر صور مرتبة عموديًا أو أفقيًا مع تسميات توضيحية للمربع بأكمله ولكل صورة.
وسيط | وصف | نوع | حالة | |
---|---|---|---|---|
محاذاة | align | دون وصف
| نص | مقترح |
اتجاه | direction | اتجاه وضع الصور عمودي أم أفقي
| نص | مقترح |
Frame width | total_width | Use to scale the images to the same height and this total width. Do not use both total_width and width. Integer width in pixels; no "px" suffix
| رقم | مقترح |
Row layout | perrow | Create an array of images, with multiple rows. The value passed to may be a single number or a list of numbers with each row delimited by /. Can be combined with total_width for automatic sizing of images.
| نص | اختياري |
Image width | width | Width overrides Width 1, Width 2, Width 3, etc. If you want the images to be different sizes, do not provide the width parameter. Integer width in pixels; no "px" suffix
| رقم | اختياري |
Background color | background color | Defines the background color between the border of the box and the images. Changing the background can be bad for accessibility, avoid when possible.
| نص | اختياري |
Caption alignment | caption_align | دون وصف
| نص | اختياري |
Image 1 | image1 | Image 1 is name of first image. Similarly for Image 2, etc. File name only; no "File:" or "Image:" prefix.
| ملف | مطلوب |
Width 1 | width1 | Width 1 is width of first image. Similarly for Width 2, etc. | رقم | اختياري |
Alt text 1 | alt1 | The [[alt text]] of first image (see [[ويكيبيديا:ALT]]). Similarly for Alt text 2, etc. | سطر | مقترح |
Caption 1 | caption1 | Caption 1 is caption of first image. Similarly for Caption 2, etc. | محتوى | مقترح |
Link 1 | link1 | Where the first page links to. Similarly for Link 2, etc. If not specified, image links to the image description page as usual. If specified to the empty value, the image does not link anywhere; this should be used for purely decorative images as per [[ويكيبيديا:ALT]]. Important: If the image is under a free license like the GFDL or a CC license, you must not use this parameter as the terms of those licenses require the license, or a link to it, to be reproduced with the image. The image must, therefore, link to its image page. Public domain and (theoretically) fair use images are not subject to this restriction. | اسم الصفحة | اختياري |
Thumbtime 1 | thumbtime1 | If image1 is an Ogg Theora file, sets the time within the video that is used for the initial display. Either a number of seconds or hours:minutes:seconds. Similarly for Thumb time 2, etc. | نص | اختياري |
Image 2 | image2 | دون وصف
| ملف | مقترح |
Width 2 | width2 | دون وصف | رقم | اختياري |
Alt text 2 | alt2 | دون وصف | سطر | اختياري |
Caption 2 | caption2 | دون وصف | محتوى | مقترح |
Link 2 | link2 | دون وصف | اسم الصفحة | اختياري |
Thumbtime 2 | thumbtime2 | دون وصف | نص | اختياري |
Image 3 | image3 | دون وصف
| ملف | اختياري |
Width 3 | width3 | دون وصف | رقم | اختياري |
Alt text 3 | alt3 | دون وصف | سطر | اختياري |
Caption 3 | caption3 | دون وصف | محتوى | اختياري |
Link 3 | link3 | دون وصف | اسم الصفحة | اختياري |
Thumbtime 3 | thumbtime3 | دون وصف | نص | اختياري |
Image gap | image_gap | Override the distance between adjacent images. Integer width in pixels; no "px" suffix
| رقم | اختياري |
Image style | image_style | Override the default styling of the image frame. | نص | اختياري |
Header | header | A header text to place above the entire frame. | محتوى | اختياري |
Header background | header_background | Defines the background color of the header field. Changing the background can be bad for accessibility, avoid when possible
| نص | اختياري |
Header alignment | header_align | دون وصف
| نص | اختياري |
Footer | footer | دون وصف | محتوى | اختياري |
Footer background | footer_background | Defines the background color of the footer field. Changing the background can be bad for accessibility, avoid when possible
| نص | اختياري |
Footer alignment | footer_align | دون وصف
| نص | اختياري |
Alignment within an Infobox | border | دون وصف
| غير معروف | اختياري |
تصنيفات تتبع
[عدل]- تصنيف:صفحات تستخدم قالب عدة صور بمقاس تلقائي (628 صفحة)
- تصنيف:صفحات تستخدم قالب عدة صور بمقاس محدد (99 صفحة)
انظر أيضاً
[عدل]- {{معرض}}
- {{مصفوفة الصور}}
- {{إطار صورة}}
- {{توليف صورة}}