Шаблон:Mbox: различия между версиями

Материал из Eco - Русская Wiki
Перейти к:навигация, поиск
[досмотренная версия][досмотренная версия]
Нет описания правки
Нет описания правки
 
(не показаны 2 промежуточные версии этого же участника)
Строка 1: Строка 1:
<includeonly><center>
<includeonly><center><div class="alert alert-{{#if:{{{color|}}}|{{{color}}}|primary}}" {{#if:{{{colorborder|}}}|style="border-style: solid; border-width: 5px; border-color: {{{colorborder}}};" }}role="alert">{{#if:{{{icon|}}}|<i class="fa fa-2x {{{icon}}}"></i>|<i class="fa fa-2x fa-info-circle"></i>}} {{{text}}}</div></center></includeonly><noinclude>{{Documentation}}</noinclude>
{| style="border-style: solid; border-width: 5px; border-color: {{{colorborder|}}}; background-color:{{{colorbackground|}}}; color: {{{colortext|}}};"
| style="vertical-align:middle; text-align:center;" | [[File:{{#if:{{{icon|}}}|{{{icon}}}|Imbox_deletion.png}}]]
{{#if:{{{text|}}}|{{!}} style="vertical-align:middle;" {{!}} {{{text}}}|}}
|}
</center></includeonly><noinclude>{{Mbox/doc}}</noinclude>

Текущая версия от 15:29, 2 июля 2025

Документация шаблона
Примечание: шаблон может быть не виден без параметров. Просмотреть или редактировать документацию. (О шаблоне документации)

What is {{Mbox}}

[править код]

The {{Mbox}} template is a standard text box with an icon.

Mbox is used in: Category:Notice_templates

This template it most of all used to create other templates, there is no need to use this directly on a page.

That said, here are some examples:

{{Mbox
| icon = 
| colorborder = 
| colorbackground = 
| colortext = 
| text = 
}}

Suggested icons:

  • - fa-info-circle
  • - fa-exclamation-circle
  • - fa-ban

and many other Font Awesome icons

 {{Mbox
| icon = 
| colorborder = 
| color = 
| text = This is a test.
}}
{{Mbox
| icon = fa-ban
| colorborder = Pink
| color= danger
| text = This is also a test.
}}