"आकृति:Fmbox" के अवतरणसभमे अन्तर

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)
Adding "type=warning" with "fmbox-warning" class and "Image:Cmbox deletion.png". Adding error reporting of faulty "type" parameter.
पङ्क्त्ति १:
<table id="{{{id|}}}" class="plainlinks fmbox
{{#switch:{{{type|}}}
| warning = fmbox-warning
| editnotice = fmbox-editnotice
| system <!-- system = default -->
Line ६ ⟶ ७:
}} {{{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 १६ ⟶ १८:
{{#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 २४ ⟶ ३१:
}}
</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}}
प्राप्ति स्थल "https://mai.wikipedia.org/wiki/आकृति:Fmbox"