الگو:Ivory messagebox/توضیحات: تفاوت میان نسخهها
wikipedia.org>CommonsDelinker (ربات: جایگزینی Ambox_notice.svg با Information_icon4.svg) |
(بدون تفاوت)
|
نسخهٔ ۱۶ ژوئن ۲۰۲۰، ساعت ۲۱:۵۲
این الگو در ۶۵٬۰۰۰+ صفحه بهکار رفته است و تغییر دادن آن میتواند تأثیرات گستردهای داشتهباشد. لطفاً تغییرات را در زیرصفحههای /تمرین یا /آزمایشی الگو، یا در زیرصفحهٔ کاربری خودتان بیازمایید. توصیه میشود که ابتدا در خصوص تغییرات مورد نظر در صفحهٔ بحث گفتگو کرده و سپس آنها را پیادهسازی کنید. |
The ivory messagebox or Ivmbox is a simplistic, full-width box intended to surround important messages or notices. The ivory background of this template contrasts well to the white background used by most Wikipedia users on most Wikipedia pages (so it is noticeable enough to be used in notices or messages), but the background colour is not as garish as many other message boxes.
The basic use of the template is as follows. If the message you wish to convey using Ivmbox contains complex wiki-code or equals signs, it may be necessary to use |1=Lorem ipsum [etc…]
instead of merely |Lorem ipsum [etc…]
:
{{Ivmbox|Lorem ipsum [etc…]}}
which gives:
The template can display an image to the left of the text content. By default, the image will be 25px in width:
{{Ivmbox|Lorem ipsum [etc…]|Information icon4.svg}}
The image can be made smaller or larger using the |imagesize=
parameter:
{{Ivmbox|Lorem ipsum [etc…]|Information icon4.svg|imagesize=40px}}
Advanced use
By default, if an icon is used with Ivmbox, the icon will not be clickable (in ویکیپدیا:ساختار درج پرونده, |link=
will be declared but empty). If you wished, for example, clicking the image to lead to فهرست نخست وزیران بریتانیا, you would include the following parameter:
|image link=List of Prime Ministers of the United Kingdom
The image, by default, also has no caption; in a similar style, the caption can be declared by including the following parameter:
|image caption=Lorem ipsum
The background of an Ivmbox is the off-white X11 colour ivory. If you like the functionality of Ivmbox but require it to display with a background other than the off-white ivory it uses by default, simply include the parameter |bg=
; for example:
|bg=salmon
for a salmon message box
|bg=#90EE90
for a #90EE90 (light green) message box.
See also
There are several meta-templates in the mbox family:
- {{ambox}} – For article message boxes.
- {{cmbox}} – For category message boxes.
- {{imbox}} – For file (image) page message boxes.
- {{mbox}} – Has namespace detection, for message boxes that are used on several types of pages and thus need to change style depending on what page they are used on.
- {{ombox}} – For other pages message boxes.
- {{tmbox}} – For talk page message boxes.
Closely related meta-templates:
- {{asbox}} – For article stub message boxes.
- {{dmbox}} – For disambiguation and set index message boxes.
- {{fmbox}} – For header and footer message boxes.