Template:Messagebox: Difference between revisions

No edit summary
remove the extraneous {{{1}}} numbered parameter
 
(2 intermediate revisions 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  = [[Image:Dialog-ok-apply.svg]|20px]]
| warning  = [[File:Dialog-warning.svg|20px]]  
| warning  = [[Image:Dialog-warning.svg]|20px]]
| failure  = [[File:Dialog-error.svg|20px]]  
| failure  = [[Image:Dialog-error.svg]|20px]]
| restricted = [[File:Dialog-password.svg|20px]]  
| restricted= [[Image:Dialog-password.svg]|20px]]
| forbidden = [[File:Dialog-cancel.svg|20px]]  
| forbidden = [[Image:Dialog-cancel.svg]|20px]]
| normal  
| normal <!-- normal = default -->
| #default = [[File:Dialog-information.svg|20px]]  
| #default = [[Image: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: