Template:Msgbox: Difference between revisions

From BTA-Mirror
imported>Ttv pedro270707
(Created page with "{{ #ifeq: {{{1|}}} | important | <div style="background-color: rgba(255, 40, 40, 0.6); width: 80%; padding: 8px; border: 1px solid rgb(255, 0, 0); border-left: 4px solid rgb(255, 0, 0);">{{#if: {{{4|}}} | [[File:{{{4|}}}|64x64px]] }}<div style="display:inline-block; padding-left: 10px;"><span style="font-weight: bold;">{{{2|}}}</span>{{#if: {{{3|}}} | <br><span>{{{3|}}}</span>}}</div></div> | {{ #ifeq: {{{1|}}} | warning | <div style="background-color: rgba(255, 255, 80,...")
 
imported>Ttv pedro270707
m (Line break only if title is present)
 
(23 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 | }} }} }}">
#ifeq: {{{1|}}} | important | <div style="background-color: rgba(255, 40, 40, 0.6); width: 80%; padding: 8px; border: 1px solid rgb(255, 0, 0); border-left: 4px solid rgb(255, 0, 0);">{{#if: {{{4|}}} | [[File:{{{4|}}}|64x64px]] }}<div style="display:inline-block; padding-left: 10px;"><span style="font-weight: bold;">{{{2|}}}</span>{{#if: {{{3|}}} | <br><span>{{{3|}}}</span>}}</div></div> | {{
{{#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>
#ifeq: {{{1|}}} | warning | <div style="background-color: rgba(255, 255, 80, 0.6); width: 80%; padding: 5px; border: 1px solid rgb(200, 160, 0); border-left: 4px solid rgb(200, 160, 0);">{{#if: {{{4|}}} | [[File:{{{4|}}}|64x64px]] }}<div style="display:inline-block; padding-left: 10px;"><span style="font-weight: bold;">{{{2|}}}</span>{{#if: {{{3|}}} | <br><span>{{{3|}}}</span>}}</div></div> | {{
{{Documentation}}
#ifeq: {{{1|}}} | info | <div style="background-color: rgba(80, 150, 255, 0.4); width: 80%; padding: 5px; border: 1px solid rgb(100, 100, 160); border-left: 4px solid rgb(100, 100, 160);">{{#if: {{{4|}}} | [[File:{{{4|}}}|64x64px]] }}<div style="display:inline-block; padding-left: 10px;"><span style="font-weight: bold;">{{{2|}}}</span>{{#if: {{{3|}}} | <br><span>{{{3|}}}</span>}}</div></div> | }}
<!-- Put categories on the documentation page -->
}}
</noinclude>
}}<noinclude>{{msgbox|info|This page is a template.|It can be used to use wikitext that would be frequently used throughout the wiki.|Autumn Cherry.png}}</noinclude>

Latest revision as of 17:45, 8 August 2023

[view | edit | history | purge]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 | edit | history | purge]The above documentation is transcluded from Template:Msgbox/doc.