Template:Messagebox: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
<templatestyles src="Messagebox/styles.css" />
<div class="message-box
<div class="message-box
{{#switch:{{{type|}}}
{{#switch:{{{type|}}}
Line 9: Line 10:
| #default  = message-normal
| #default  = message-normal
}}" style="{{{style|}}}">
}}" style="{{{style|}}}">
{{{text}}}
{|
|{{#switch:{{{type|}}}
| success  = [[Image:Dialog-ok-apply.svg]|20px]]
| warning  = [[Image:Dialog-warning.svg]|20px]]
| failure  = [[Image:Dialog-error.svg]|20px]]
| restricted= [[Image:Dialog-password.svg]|20px]]
| forbidden = [[Image:Dialog-cancel.svg]|20px]]
| normal <!-- normal = default -->
| #default  = [[Image:Dialog-information.svg|20px]]
}}
|{{{1|{{{text}}}}}
|}
</div>
</div>
<!-- Detect and report usage with faulty "type" parameter:
<!-- Detect and report usage with faulty "type" parameter: