Template:Messagebox: Difference between revisions

No edit summary
remove the extraneous {{{1}}} numbered parameter
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<templatestyles src="Messagebox/styles.css" />
<templatestyles src="Messagebox/styles.css" />
<div class="message-box
<div class="message-box
{{#switch:{{{type|}}}
{{#switch:{{{type}}}
| success    = message-success
| success    = message-success
| warning    = message-warning
| warning    = message-warning
Line 10: Line 10:
| #default  = message-normal
| #default  = message-normal
}}" style="{{{style|}}}">
}}" style="{{{style|}}}">
{|
{{#switch:{{{type}}}  
|{{#switch:{{{type}}}  
| success  = [[File:Dialog-ok-apply.svg|20px]]  
| success  = [[File:Dialog-ok-apply.svg]|20px]]  
| warning  = [[File:Dialog-warning.svg|20px]]  
| warning  = [[File:Dialog-warning.svg]|20px]]  
| failure  = [[File:Dialog-error.svg|20px]]  
| failure  = [[File:Dialog-error.svg]|20px]]  
| restricted = [[File:Dialog-password.svg|20px]]  
| restricted= [[File:Dialog-password.svg]|20px]]  
| forbidden = [[File:Dialog-cancel.svg|20px]]  
| forbidden = [[File:Dialog-cancel.svg]|20px]]  
| normal  
| normal  
| #default = [[File:Dialog-information.svg|20px]] }}
| #default = [[File:Dialog-information.svg|20px]]  
|{{{1|{{{text}}}}}}
}}
|}
{{{text}}}
</div>
</div>
<!-- Detect and report usage with faulty "type" parameter:
<!-- Detect and report usage with faulty "type" parameter: