Difference between revisions of "Template:Fmbox"
Jump to navigation
Jump to search
(Created page with "<table {{#if:{{{id|}}}|id="{{{id|}}}"}} class="plainlinks fmbox {{#switch:{{{type|}}} | warning = fmbox-warning | editnotice = fmbox-editnotice | system ...") |
|||
Line 1: | Line 1: | ||
− | + | <table {{#if:{{{id|}}}|id="{{{id|}}}"}} class="plainlinks fmbox | |
{{#switch:{{{type|}}} | {{#switch:{{{type|}}} | ||
| warning = fmbox-warning | | warning = fmbox-warning | ||
| editnotice = fmbox-editnotice | | editnotice = fmbox-editnotice | ||
− | | system | + | | system <!-- system = default --> |
| #default = fmbox-system | | #default = fmbox-system | ||
− | }} {{{class|}}} | + | }} {{{class|}}}" style="{{{style|}}}"> |
− | + | <tr> | |
{{#ifeq:{{{image|}}}|none | {{#ifeq:{{{image|}}}|none | ||
− | | | + | | <!-- No image. --> |
− | | | + | | <td class="mbox-image"> |
{{#if:{{{image|}}} | {{#if:{{{image|}}} | ||
| {{{image}}} | | {{{image}}} | ||
Line 15: | Line 15: | ||
| warning = Cmbox deletion.png | | warning = Cmbox deletion.png | ||
| editnotice = Imbox notice.png | | editnotice = Imbox notice.png | ||
− | | system | + | | system <!-- system = default --> |
| #default = Imbox notice.png | | #default = Imbox notice.png | ||
}}|40x40px|link=|alt=]] | }}|40x40px|link=|alt=]] | ||
− | }} | + | }}</td> |
}} | }} | ||
− | + | <td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | |
{{#if:{{{imageright|}}} | {{#if:{{{imageright|}}} | ||
− | | | + | | <td class="mbox-imageright"> {{{imageright}}} </td> |
}} | }} | ||
− | + | </tr> | |
− | + | </table><!-- | |
− | Detect and report usage with faulty | + | Detect and report usage with faulty "type" parameter: |
− | -- | + | -->{{#switch:{{{type|}}} |
− | | | + | | <!-- No type fed, is also valid input --> |
| warning | | warning | ||
| editnotice | | editnotice | ||
− | | system = | + | | system = <!-- Do nothing, valid "type" --> |
− | | #default = | + | | #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}} | {{pp-template}} | ||
{{documentation}} | {{documentation}} | ||
− | + | <!-- Add categories and interwikis to the /doc subpage, not here! --> | |
− | + | </noinclude> |