Template:Ambox/core: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<table class= | <table class="metadata plainlinks ambox {{#switch:{{{small|}}} | ||
| left = mbox-small-left | | left = mbox-small-left | ||
}} {{#switch:{{{type|}}} | }} {{#switch:{{{type|}}} | ||
Line 10: | Line 10: | ||
| notice <!-- notice = default --> | | notice <!-- notice = default --> | ||
| #default = ambox-notice | | #default = ambox-notice | ||
}} | }}" style="{{{style|}}}"> | ||
<tr> | <tr> | ||
{{#switch:{{{image|}}} | {{#switch:{{{image|}}} | ||
| blank <!-- Fall back to | | blank <!-- Fall back to "none", since deprecated. --> | ||
| none = <td class= | | 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= | <td class="mbox-image">{{ | ||
#switch:{{{small|}}} | #switch:{{{small|}}} | ||
| left = <!-- Don't use the DIV --> | | left = <!-- Don't use the DIV --> | ||
| #default = <div style= | | #default = <div style="width: 52px;"> | ||
}} | }} | ||
{{#if:{{{image|}}} | {{#if:{{{image|}}} | ||
Line 41: | Line 41: | ||
}}</td> | }}</td> | ||
}} | }} | ||
<td class= | <td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | ||
{{#if:{{{imageright|}}} | {{#if:{{{imageright|}}} | ||
| {{#ifeq:{{{imageright|}}}|none | | {{#ifeq:{{{imageright|}}}|none | ||
| <!-- No image. --> | | <!-- No image. --> | ||
| <td class= | | <td class="mbox-imageright">{{#switch:{{{small|}}} | ||
| left = {{{imageright}}} | | left = {{{imageright}}} | ||
| #default = <div style= | | #default = <div style="width: 52px;"> {{{imageright}}} </div> | ||
}}</td> | }}</td> | ||
}} | }} | ||
Line 53: | Line 53: | ||
</tr> | </tr> | ||
</table><!-- | </table><!-- | ||
Detect and report usage with faulty | Detect and report usage with faulty "type" parameter: | ||
-->{{#switch:{{{type|}}} | -->{{#switch:{{{type|}}} | ||
| <!-- No type fed, is also valid input --> | | <!-- No type fed, is also valid input --> | ||
Line 62: | Line 62: | ||
| move | | move | ||
| protection | | protection | ||
| notice = <!-- Do nothing, valid | | notice = <!-- Do nothing, valid "type" --> | ||
| #default = <div style= | | #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 | Detect and report usage of deprecated "image=blank": | ||
-->{{#switch:{{{image|}}} | -->{{#switch:{{{image|}}} | ||
| blank = [[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --> | | blank = [[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --> |
Latest revision as of 16:03, 10 October 2010
![]() |
{{{text}}} |
[create] File:Template-info.svg Template documentation
Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |