الگو:Imbox

از ویکی‌خبر، مرجع خبری آزاد
نماد توضیحات توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]

این الگو از فراالگوهای پیامی ویکی‌خبر است که در فضای نام تصاویر استفاده می‌شود.

رویه (پارامترها)[ویرایش]

{{imbox
| type  = speedy / delete / content / style / notice / 
          move / protection / license / featured
| image = none / [[Image:Some image.svg|40px]]
| imageright = [[Image:Some image.svg|40px]]
| style = CSS value
| textstyle = CSS value
| text  = The message body text.
| below = More text or another imbox.
}}
}}

This is the {{imbox}} or image message box meta-template. As with Ambox, Imbox is licensed under the GFDL and not CC-BY 2.5 like Wikinews content cause it's from Wikipedia. It is used to create message boxes for the Image namespace.

This template works almost exactly like {{ambox}} and uses the same parameters.

طریقه استفاده[ویرایش]

مثال:

{{imbox | text = Some text.}}


مثال‌های گوناگون:

{{imbox
| type      = style
| image     = [[File:Emblem-question-yellow.svg|40px]]
| style     = width: 400px; 
| textstyle = color: red; font-weight: bold; font-style: italic;
| text      = پیام شما.
}}

انتخاب نوع تصاویر این جعبه پیامی[ویرایش]

پیرو مثال‌های مختلفی که در بخش پارامترها گفته شد، با انتخاب type یا نوع جعبه پیام خودتان می‌توانید تصاویر مختلفی را در این الگوها و به روش‌های گوناگون به کار برید.

تصاویر دیگر[ویرایش]

The default images shown above are mostly for convenience. In many cases it is more appropriate to use more specific images. These examples use the image parameter to specify an image other than the default images.

رنگ‌های دلخواه[ویرایش]

When used without the Type option, custom colors can be passed into Imbox.

{{imbox
| border  = #FF0000
| background = #ccc
| image = [[File:Gnome-dev-camera.svg|42px]]
| text  = رنگ‌های دلخواه!
}}

produces