Шаблон:Ambox/doc

Матеріал з База знань «Управління публічним інвестуванням»
< Шаблон:Ambox
Версія від 15:53, 4 жовтня 2021, створена Regionet (обговорення | внесок) (Створена сторінка: {{Documentation subpage}} '''<nowiki>{{Ambox}}</nowiki>''' stands for '''A'''rticle '''m'''essage '''box'''. This template is used in many :Category:Ambox Der...)
(різн.) ← Попередня версія | Поточна версія (різн.) | Новіша версія → (різн.)
Перейти до навігації Перейти до пошуку

{{Ambox}} stands for Article message box. This template is used in many pages.

History[ред.]

This template is a derived work. It is, however, NOT exactly the same as Wikipedia's template of the same name! All CSS has been integrated into the template, and therefore some features are not available. However it is still a very useful template!

Usage instructions[ред.]

Example to display a notice:

 {{Ambox
 | type  = notice
 | text  = Hello world!
 }}

The code above should return:

There are lots more examples of ambox use on the Wiki labels page.

type[ред.]

Amboxes are divided into various types. Each type should have a corresponding colour code. The colour-coding helps to inform of the severity of the issues at a glance, so you can use the following parameters to change the color of your ambox.

stacked[ред.]

To display multiple boxes stacked on top of each other (without anything else between them), you may set the optional stacked= parameter to any non-empty value for all successive occurences of the box (except the first one), as in the examples above.

imageright[ред.]

You can display an additional small image (icon) on the right hand side of the box by passing an 'imageright' parameter with an image reference. For example:

imageright = [[File:Broom icon.svg|40px|link=WikiProject Cleanup]]

(This adds the little sweeping broom icon on the right which you see on Template:Cleanup)