Template:Fmbox: Difference between revisions
Content added Content deleted
Reception123 (talk | contribs) (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 (Changed protection level for "Template:Fmbox": High-risk template or module; used in system message ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))) |
||
Line 1: | 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}} |
{{documentation}} |
||
<!-- Add categories and interwikis to the /doc subpage, not here! --> |
<!-- Add categories and interwikis to the /doc subpage, not here! --> |