Difference between revisions of "Template:Ambox/core"
Jump to navigation
Jump to search
(Created page with "<table class="metadata plainlinks ambox {{#switch:{{{small|}}} | left = mbox-small-left }} {{#switch:{{{type|}}} | speedy = ambox-speedy | delete = ambox-delete |...") |
|||
Line 1: | Line 1: | ||
− | + | <table class="metadata plainlinks ambox {{#switch:{{{small|}}} | |
| left = mbox-small-left | | left = mbox-small-left | ||
}} {{#switch:{{{type|}}} | }} {{#switch:{{{type|}}} | ||
Line 8: | Line 8: | ||
| move = ambox-move | | move = ambox-move | ||
| protection = ambox-protection | | protection = ambox-protection | ||
− | | notice | + | | notice <!-- notice = default --> |
| #default = ambox-notice | | #default = ambox-notice | ||
− | }}" style="{{{style|}}}" | + | }}" style="{{{style|}}}"> |
− | + | <tr> | |
{{#switch:{{{image|}}} | {{#switch:{{{image|}}} | ||
− | | blank | + | | blank <!-- Fall back to "none", since deprecated. --> |
− | | none = | + | | none = <td class="mbox-empty-cell"></td> <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --> |
| #default = | | #default = | ||
− | + | <td class="mbox-image">{{ | |
#switch:{{{small|}}} | #switch:{{{small|}}} | ||
− | | left = | + | | left = <!-- Don't use the DIV --> |
− | | #default = | + | | #default = <div style="width: 52px;"> |
}} | }} | ||
{{#if:{{{image|}}} | {{#if:{{{image|}}} | ||
Line 30: | Line 30: | ||
| move = Ambox move.png | | move = Ambox move.png | ||
| protection = Ambox protection.png | | protection = Ambox protection.png | ||
− | | notice | + | | notice <!-- notice = default --> |
| #default = Ambox notice.png | | #default = Ambox notice.png | ||
}} | {{#switch:{{{small|}}} | }} | {{#switch:{{{small|}}} | ||
Line 37: | Line 37: | ||
}} |link=|alt=]] | }} |link=|alt=]] | ||
}}{{#switch:{{{small|}}} | }}{{#switch:{{{small|}}} | ||
− | | left = | + | | left = <!-- Don't use the /DIV --> |
− | | #default = | + | | #default = </div> |
− | }} | + | }}</td> |
}} | }} | ||
− | + | <td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | |
{{#if:{{{imageright|}}} | {{#if:{{{imageright|}}} | ||
| {{#ifeq:{{{imageright|}}}|none | | {{#ifeq:{{{imageright|}}}|none | ||
− | | | + | | <!-- No image. --> |
− | | | + | | <td class="mbox-imageright">{{#switch:{{{small|}}} |
| left = {{{imageright}}} | | left = {{{imageright}}} | ||
− | | #default = | + | | #default = <div style="width: 52px;"> {{{imageright}}} </div> |
− | }} | + | }}</td> |
}} | }} | ||
}} | }} | ||
− | + | </tr> | |
− | + | </table><!-- | |
Detect and report usage with faulty "type" parameter: | Detect and report usage with faulty "type" parameter: | ||
− | -- | + | -->{{#switch:{{{type|}}} |
− | | | + | | <!-- No type fed, is also valid input --> |
| speedy | | speedy | ||
| delete | | delete | ||
Line 62: | Line 62: | ||
| move | | move | ||
| protection | | protection | ||
− | | notice = | + | | notice = <!-- 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 --> |
− | }} | + | }}<!-- |
Detect and report usage of deprecated "image=blank": | Detect and report usage of deprecated "image=blank": | ||
− | -- | + | -->{{#switch:{{{image|}}} |
− | | blank = [[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]] | + | | blank = [[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> |