پرش به محتوا
منوی اصلی
منوی اصلی
انتقال به نوار کناری
نهفتن
ناوبری
صفحهٔ اصلی
تغییرات اخیر
مقالهٔ تصادفی
راهنما دربارهٔ مدیاویکی
صفحههای ویژه
ویکیهزاره
جستجو
جستجو
ظاهر
ساخت حساب
ورود
ابزارهای شخصی
ساخت حساب
ورود
صفحههایی برای ویرایشگرانی که از سامانه خارج شدند
بیشتر بدانید
مشارکتها
بحث
در حال ویرایش
الگو:Ombox/توضیحات
الگو
بحث
فارسی
خواندن
ویرایش مبدأ
نمایش تاریخچه
ابزارها
ابزارها
انتقال به نوار کناری
نهفتن
کنشها
خواندن
ویرایش مبدأ
نمایش تاریخچه
عمومی
پیوندها به این صفحه
تغییرات مرتبط
اطلاعات صفحه
ظاهر
انتقال به نوار کناری
نهفتن
هشدار:
شما وارد نشدهاید. نشانی آیپی شما برای عموم قابل مشاهده خواهد بود اگر هر تغییری ایجاد کنید. اگر
وارد شوید
یا
یک حساب کاربری بسازید
، ویرایشهایتان به نام کاربریتان نسبت داده خواهد شد، همراه با مزایای دیگر.
بررسی ضدهرزنگاری. این قسمت را پر
نکنید
!
این الگو یک فرا الگو است که برای ساخت دستهای از الگوها استفاده میشود، از آن مستقیما به عنوان یک الگو در صفحات استفاده نکنید. مورد استفاده الگوهای بر پایه این الگو صفحاتی در فضاهای نام غیر از فضای اصلی و صفحات بحث میباشد. این الگو هنوز کامل نیست ولی میتوانید از آن استفاده کنید تا در عمل استفاده آن آزمایش شود. {{Used in system}} {{لوآ|Module:Message box}} {{Mbox templates}} This is the {{پیوند الگو|Ombox}} (['''O''']ther pages ['''m''']essage ['''box''']) metatemplate. etter image, then use them instead of the default images shown here. === استفاده === مثال کاربرد ساده: <pre> {{Ombox| text = Some text.}} </pre> {{Ombox| text = Some text.}} {{پاککن}} Complex example: <pre> {{Ombox | type = style | image = [[Image:Emblem-question-yellow.svg|40px]] | style = width: 400px; | textstyle = color: red; font-weight: bold; font-style: italic; | text = The message body text. }} </pre> {{Ombox | type = style | image = [[Image:Emblem-question-yellow.svg|40px]] | style = width: 400px; | textstyle = color: red; font-weight: bold; font-style: italic; | text = The message body text. }} {{پاککن}} === Other pages message box types === The following examples use different '''type''' parameters but use no image parameters; thus, they use the default images for each type. {{Ombox | type = speedy | text = type=<u>speedy</u> – Speedy deletion templates. }} {{Ombox | type = delete | text = type=<u>delete</u> – Deletion templates. }} {{Ombox | type = content | text = type=<u>content</u> – Major warnings and problems, such as {{پیوند الگو|high-risk}}. }} {{Ombox | type = style | text = type=<u>style</u> – Minor warnings and problems. {{پیوند الگو|intricate}} should perhaps use this type. }} {{Ombox | type = notice | text = type=<u>notice</u> – Notices and messages of any kind, both permanent and temporary. Such as {{پیوند الگو|guideline}} and {{پیوند الگو|Wikipedia how to}}. }} {{Ombox | type = move | text = type=<u>move</u> – Merge, split, rename and transwiki messages and proposals. }} {{Ombox | type = protection | text = type=<u>protection</u> – Protection templates such as {{پیوند الگو|pp-protected}} when shown on "other pages". }} === نمونهها === Some examples using the "notice" style: {{Ombox | text = No type and no image given ('''default''') }} {{Ombox | image = none | text = No type and '''image=none''' – No image is used and the '''text''' uses the whole message box area. }} {{Ombox | image = [[Image:Gnome globe current event.svg|42px]] | imageright = [[Image:Nuvola apps bookcase.svg|40px]] | text = image = <nowiki>[[Image:Gnome globe current event.svg|42px]]</nowiki> <br> imageright = <nowiki>[[Image:Nuvola apps bookcase.svg|40px]]</nowiki> }} {{Ombox | type = notice | image = [[Image:Blue check.svg|30px]] | imageright = {{میانبر|WP:SHORT}} | text = '''This page documents an English Wikipedia [[ویکیهزاره:سیاستها و رهنمودها|guideline]].''' It is a generally accepted standard that editors should follow, though it should be treated with [[ویکیهزاره:«از همه قوانین چشمپوشی کنید» یعنی چه؟|common sense]] and the [[ویکیهزاره:از همه مقررات چشمپوشی کنید|occasional exception]]. When editing this page, please ensure that your revision reflects [[ویکیهزاره:اجماع|consensus]]. When in doubt, discuss on the [[{{TALKPAGENAME}}|talk page]]. }} {{Ombox | type = notice | image = [[Image:Nutshell.png|30px]] | text = '''This page in a nutshell:''' This template is used to build message boxes for all pages that are ''not'' articles, talk pages, image pages or category pages. }} === پارامترها === List of all parameters: <pre> {{Ombox | type = speedy / delete / content / style / notice / move / protection | image = none / [[Image:Some image.svg|40px]] | imageright = [[Image:Some image.svg|40px]] | style = CSS values | textstyle = CSS values | plainlinks = no | text = The message body text. | small = {{{small|}}} / yes | smallimage = none / [[Image:Some image.svg|30px]] | smallimageright = none / [[Image:Some image.svg|30px]] | smalltext = A shorter message body text. }} </pre> '''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: ::<code><nowiki>image = [[Image:Crystal package settings.png|40px]]</nowiki></code> :'''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: ::<code><nowiki>imageright = [[Image:Nuvola apps bookcase.png|40px]]</nowiki></code> :'''Anything''' = Any other object that you want to show on the right side. '''style''' :Optional [[شیوهنامه آبشاری|CSS]] values used by the entire message box table. Without quotation marks <code>" "</code> but with the ending semicolons <code>;</code>. For example: ::<code>style = margin-bottom: 0.5em;</code> '''textstyle''' :Optional [[شیوهنامه آبشاری|CSS]] values used by the text cell. For example: ::<code>textstyle = text-align: center;</code> '''plainlinks''' :Normally on Wikipedia, external links have an arrow icon next to them, like this: [http://www.example.com Example.com]. However, in message boxes, the arrow icon is suppressed by default, like this: <span class="plainlinks">[http://www.example.com Example.com]</span>. To get the normal style of external link with the arrow icon, use {{پارا|plainlinks|no}}. '''text''' :The message body text. ==== پارامترهای small ==== {{Ombox | small = yes | text = small = yes }} {{Ombox | type = style | small = yes | text = type = style <br> small = yes }} '''small''' :'''yes''' = Makes it a smaller right floating message box. This also makes the default images smaller. Note that any data fed to the '''smallimage''', '''smallimageright''' and '''smalltext''' parameters is only used if "small=yes". To make it so your template also understands the small parameter you can use this code: ::<code><nowiki>small = {{{small|}}}</nowiki></code> {{Ombox | small = yes | image = [[Image:Replacement filing cabinet.svg|50px]] | smallimage = [[Image:Replacement filing cabinet.svg|32px]] | text = small = yes <br> image = <nowiki>[[Image:Replacement filing cabinet.svg|50px]]</nowiki> <br> smallimage = <nowiki>[[Image:Replacement filing cabinet.svg|32px]]</nowiki> }} '''smallimage''' :'''No parameter''' = If no '''smallimage''' parameter is given then this template falls back to use the '''image''' parameter. If the '''image''' parameter also is empty then a small default image is used. :'''An image''' = Should be an image with usual wiki notation. 30px width is usually about right. For example: ::<code><nowiki>smallimage = [[Image:Replacement filing cabinet.svg|30px]]</nowiki></code> :'''none''' = Means that no image is used. This overrides any image fed to '''image''', when "small=yes". {{Ombox | small = yes | imageright = [[Image:Nuvola apps bookcase.png|50px]] | smallimageright = none | text = small = yes <br> imageright = <nowiki>[[Image:Nuvola apps bookcase.png|50px]]</nowiki> <br> smallimageright = none }} '''smallimageright''' :'''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: ::<code><nowiki>smallimageright = [[Image:Nuvola apps bookcase.png|30px]]</nowiki></code> :'''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. ===جستارهای وابسته=== {{چپچین}}{{Mbox templates see also}}{{پایان چپچین}} <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | <!-- CATEGORIES BELOW THIS LINE, PLEASE: --> [[رده:مستثنی از چاپ]] }}</includeonly>
خلاصه:
لطفاً توجه داشته باشید که همهٔ مشارکتها در ویکیهزاره ممکن است توسط دیگر مشارکتکنندگان تغییر یابند، ویرایش یا حذف شوند. اگر نمیخواهید نوشتههایتان بیرحمانه ویرایش شوند؛ بنابراین، آنها را اینجا ارائه نکنید.
شما همچنین به ما تعهد میکنید که خودتان این را نوشتهاید یا آن را از یک منبع با مالکیت عمومی یا مشابه آزاد آن برداشتهاید (
ویکیهزاره:حق تکثیر
را برای جزئیات بیشتر ببینید).
کارهای دارای حق تکثیر را بدون اجازه ارائه نکنید!
لغو
راهنمای ویرایش
(در پنجرهٔ تازه باز میشود)
صفحههای گنحاندهشده در این صفحه:
الگو:Mbox templates
(
ویرایش
)
الگو:Mbox templates see also
(
ویرایش
)
الگو:Navbox
(
ویرایش
)
الگو:Ombox
(
ویرایش
)
الگو:Tl
(
ویرایش
)
الگو:Tlx
(
ویرایش
)
الگو:Used in system
(
ویرایش
)
الگو:آغاز چپچین
(
ویرایش
)
الگو:الگو
(
ویرایش
)
الگو:الگوب
(
ویرایش
)
الگو:تغییرمسیر ممنوع
(
ویرایش
)
الگو:فهرست ساده/styles.css
(
ویرایش
)
الگو:لوآ
(
ویرایش
)
الگو:میانبر
(
ویرایش
)
الگو:میانبر/styles.css
(
ویرایش
)
الگو:پارا
(
ویرایش
)
الگو:پاککن
(
ویرایش
)
الگو:پایان
(
ویرایش
)
الگو:پایان چپچین
(
ویرایش
)
الگو:پیوند الگو
(
ویرایش
)
الگو:چپچین
(
ویرایش
)
پودمان:Arguments
(
ویرایش
)
پودمان:List
(
ویرایش
)
پودمان:Lua banner
(
ویرایش
)
پودمان:Message box
(
ویرایش
)
پودمان:Message box/configuration
(
ویرایش
)
پودمان:Message box/ombox.css
(
ویرایش
)
پودمان:Navbar
(
ویرایش
)
پودمان:Navbar/configuration
(
ویرایش
)
پودمان:Navbox
(
ویرایش
)
پودمان:Navbox/configuration
(
ویرایش
)
پودمان:Navbox/styles.css
(
ویرایش
)
پودمان:Numeral converter
(
ویرایش
)
پودمان:Set local argument names
(
ویرایش
)
پودمان:Shortcut
(
ویرایش
)
پودمان:Shortcut/config
(
ویرایش
)
پودمان:TableTools
(
ویرایش
)
پودمان:Template link general
(
ویرایش
)
پودمان:Yesno
(
ویرایش
)
جستجو
جستجو
در حال ویرایش
الگو:Ombox/توضیحات
افزودن مبحث