Jump to content

Template:MessageBox: Difference between revisions

No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<table class="message-box" style="border: {{{border|}}}; border-radius: {{{borderRadius|}}}; background-color: {{{backgroundColor|}}};">
<nowiki>{{MessageBox|type= error / warning / info|text= Some text ...
<td style="padding-right: 10px;">{{{imageSource|}}}</td>
}}
<td style="font-family: {{{fontFamily|}}}; font-size: {{{fontSize|14px}}}">{{{text|}}}</td>
</nowiki>
</noinclude>
 
{{#ifeq: {{lc: {{{type|}}} }} | error |
<table class="message-box" style="border: 1px solid #9f3526; background-color: #ffe9e5;">
<td style="padding-right: 10px">[[File:Caution_red.png|30x30px]]</td>
<td>{{{text|This is an error message box.}}}</td>
</table>
</table>
}}
{{#ifeq: {{lc: {{{type|}}} }} | warning |
<table class="message-box" style="border: 1px solid #ab7f2a; background-color: #fdf2d5;">
<td style="padding-right: 10px">[[File:Caution_yellow.png|30x30px]]</td>
<td>{{{text|This is a warning message box.}}}</td>
</table>
}}
{{#ifeq: {{lc: {{{type|}}} }} | info |
<table class="message-box" style="border: 1px solid #a3caff; background-color: #eaf3ff;">
<td style="padding-right: 10px">[[File:Info_blue.png|30x30px]]</td>
<td>{{{text|This is an info message box.}}}</td>
</table>
}}