Template:Fmbox: Difference between revisions

43 bytes added ,  13 years ago
make id optional
(not protected)
(make id optional)
Line 1:
<table {{#if:{{{id|}}}|id="{{{id|}}}"}} class="plainlinks mbox mbox-widefmbox
{{#switch:{{{type|}}}
| warning = mboxfmbox-warning
| editnotice = fmbox-editnotice
| system <!-- system = default -->
| #default = mboxfmbox-noticesystem
}} {{{class|}}}" style="{{{style|}}}">
<tr>
Line 25:
}}
</tr>
</table><!--
Detect and report usage with faulty "type" parameter:
-->{{#switch:{{{type|}}}
Line 34:
| #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
}}<noinclude>
 
{{pp-template}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->