Template:Fmbox: Difference between revisions

Content deleted Content added
imported>Happy-melon
add id parameter (sorry to steal your edit, DG, but I'm bored and now intend spending a happy hour adding the parameter to all its instances :-D)
imported>Davidgothberg
Adding "type=warning" with "fmbox-warning" class and "Image:Cmbox deletion.png". Adding error reporting of faulty "type" parameter.
Line 1:
<table id="{{{id|}}}" class="plainlinks fmbox
{{#switch:{{{type|}}}
| warning = fmbox-warning
| editnotice = fmbox-editnotice
| system <!-- system = default -->
Line 6 ⟶ 7:
}} {{{class|}}}" style="clear: both; margin: 0.2em 0; border: 1px solid #aaa; background: #f9f9f9; width: 100%;
{{#switch:{{{type|}}}
| warning = background: #FFDBDB; border: 1px solid #BB7979;
| editnotice = background: transparent;
| system <!-- system = default -->
Line 16 ⟶ 18:
{{#if:{{{image|}}}
| {{{image}}}
| {{#switch:{{{type|}}}
| [[Image:Imbox notice.png|40x40px]]
| warning = [[Image:Cmbox deletion.png|40x40px]]
| editnotice = [[Image:Imbox notice.png|40x40px]]
| system <!-- system = default -->
| #default = [[Image:Imbox notice.png|40x40px]]
}}
}}</td>
}}
Line 24 ⟶ 31:
}}
</tr>
</table><!-- Detect and report usage with faulty "type" parameter:
</table><noinclude>
-->{{#switch:{{{type|}}}
| <!-- No type fed, is also valid input -->
| warning
| editnotice
| system = <!-- Do nothing, valid "type" -->
| #default = [[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
</table>}}<noinclude>
 
{{pp-template|small=yes}}