Template:Msgbox: Difference between revisions
imported>Ttv pedro270707 mNo edit summary |
imported>Ttv pedro270707 m (Line break only if title is present) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div class="msgbox {{#ifeq: {{{1|}}} | important | important | {{#ifeq: {{{1|}}} | warning | warning | {{#ifeq: {{{1|}}} | info | info | }} }} }}"> | <includeonly><div class="msgbox {{#ifeq: {{{1|}}} | important | important | {{#ifeq: {{{1|}}} | warning | warning | {{#ifeq: {{{1|}}} | info | info | }} }} }}"> | ||
{{#if: {{{4|}}} | <span style="flex: 0 0 auto;">{{{4|}}}</span> | }}<div style="display:inline-block | {{#if: {{{4|}}} | <span style="flex: 0 0 auto;">{{{4|}}}</span> | }}<div style="display:inline-block;"><span style="font-weight: bold;">{{{2|}}}</span>{{#if: {{{3|}}} | {{#if: {{{2|}}} | <br> | }}<span>{{{3|}}}</span>}}</div></div></includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
<!-- Put categories on the documentation page --> | <!-- Put categories on the documentation page --> | ||
</noinclude> | </noinclude> |
Latest revision as of 17:45, 8 August 2023
[view | | | ]Documentation
This template creates a message box. It should generally be used in other templates rather than as a standalone one in an article.
Arguments[edit source]
Argument | Note |
---|---|
1 |
Sets the color of the template. Valid arguments are info (blue color), warning (yellow color) and important (red color).
|
2 |
Sets the title of the message box. |
3 |
Sets the description of the message box. |
4 |
Sets the image of the message box. It can also be a sprite. |
[view | | | ]The above documentation is transcluded from Template:Msgbox/doc.