Template:Fmbox: Difference between revisions

1,552 bytes removed ,  5 months ago
m
1 revision imported
(Created page with "<table {{#if:{{{id|}}}|id="{{{id|}}}"}} class="plainlinks {{{class|}}}" style="{{{style|}}} clear: both; margin: 0.2em 0; width: 100%; border: 1px solid #aaa; background: #f9f...")
 
m (1 revision imported)
Tags: Mobile edit Mobile web edit Advanced mobile edit
 
(One intermediate revision by one other user not shown)
Line 1:
{{#invoke:Message box|fmbox}}<noinclude>
<table {{#if:{{{id|}}}|id="{{{id|}}}"}} class="plainlinks {{{class|}}}" style="{{{style|}}} clear: both; margin: 0.2em 0; width: 100%; border: 1px solid #aaa; background: #f9f9f9;
{{#switch:{{{type|}}}
| warning = border: 1px solid #bb7070; background: #ffdbdb;
| editnotice = background: transparent;
| system <!-- system = default -->
| #default = clear: both; margin: 0.2em 0; border: 1px solid #aaa; background: #f9f9f9; padding: 0.25em 0.9em;
}}" role="presentation">
<tr>
{{#ifeq:{{{image|}}}|none
| <!-- No image. -->
| <td style="border: none; padding: 2px 0 2px 0.9em; text-align: center;">
{{#if:{{{image|}}}
| {{{image}}}
| [[File:{{#switch:{{{type|}}}
| warning = Cmbox deletion.png
| editnotice = Imbox notice.png
| system <!-- system = default -->
| #default = Imbox notice.png
}}|40x40px|link=|alt=]]
}}</td>
}}
<td style="{{{textstyle|}}} border: none; padding: 0.25em 0.9em; width: 100%;"> {{{text}}} </td>
{{#if:{{{imageright|}}}
| <td style="border: none; padding: 2px 0.9em 2px 0; text-align: center;"> {{{imageright}}} </td>
}}
</tr>
</table><!--
Detect and report usage with faulty "type" parameter:
-->{{#switch:{{{type|}}}
| <!-- No type fed, is also valid input -->
| warning
| editnotice
| system = <!-- Do nothing, valid "type" -->
| #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>
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->