الگو:Image frame
آخرین ویرایش :
۱۷ اردیبهشت ۱۳۹۷
این الگو یک شبهقاب، در اطراف تصاویر ایجاد میکند. این الگو میتواند برای قرار دادن دو یا چند تصویر به یک قاب با هم، در قالبهای پیچیدهتری مانند {{superimpose}} مورد استفاده قرار گیرد.
استفاده
{{Image frame|width=|content=|caption=|link=|align=|pos=}}
پارامترها
- ضروری
- width: عرض تصویر در قاب، به پیکسل (though do not add "px" to the width: ie, use width=175 and not width=175px)
- content: محتوای بخش اصلی (به طور کلی عکس)
- اختیاری
- caption: محتوای بخش شرح عکس
- link: لینک برای پیوند "به منظور شرح تفصیلی" در بخش شرح عکس (in the future, may also be used as the link for the image field inside the frame, though it would probably require an additional height parameter)
- linkoverride: اجازه میدهد تا هر چیزی به جای پیوند 'اطلاعات' مورد استفاده قرار گیرد
- align: مقادیر معتبر: راست (پیشفرض)، چپ، مرکز. / right, left, center/
- pos: جای قرار دادن شرح عکس. مقادیر معتبر: بالا، پایین (پیشفرض) / top, bottom /
نمونه
با تکمیل پارامترها به شرح زیر، نتیجه این خواهد شد که زیر کد نشان داده شده است.
{{Image frame|width=200|content=[[File:Example image not to be used in article namespace.jpg|100px]][[File:Example image not to be used in article namespace.jpg|100px]]
|caption=مثال برای طریقه استفاده|link=Hello world|align=center}}
{{Image frame|width=200|content=[[File:Example image not to be used in article namespace.jpg|100px]][[File:Example image not to be used in article namespace.jpg|100px]]
|caption=مثال برای طریقه استفاده|link=Hello world|align=center|pos=top}}
جستارهای وابسته
- {{Image array}}
- {{فتوکلاژ}}
- {{تصویر چندگانه}}
- {{Auto images}}