Difference between revisions of "Template:Ambox/core"
Jump to navigation
Jump to search
blackwiki>Davidgothberg (Putting back the {{pp-template}}. Debresser: We were just about to protect and deploy this template.) |
blackwiki>Davidgothberg (Making "image=blank" fall back to "image=none" since deprecated, but also reporting to the error category.) |
||
| Line 14: | Line 14: | ||
}} {{{style|}}}"> | }} {{{style|}}}"> | ||
<tr> | <tr> | ||
| − | {{# | + | {{#switch:{{{image|}}} |
| − | | <!-- | + | | blank <!-- Fall back to "none", since deprecated. --> |
| − | | <td class="mbox-image">{{#switch:{{{small|}}} | + | | none = <td class="mbox-empty-cell" style="border: none; padding: 0px; width: 1px;"></td> <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --> |
| + | | #default = | ||
| + | <td class="mbox-image">{{ | ||
| + | #switch:{{{small|}}} | ||
| left = <!-- Don't use the DIV --> | | left = <!-- Don't use the DIV --> | ||
| #default = <div style="width: 52px;"> | | #default = <div style="width: 52px;"> | ||
| Line 51: | Line 54: | ||
}} | }} | ||
</tr> | </tr> | ||
| − | </table><!-- Detect and report usage with faulty "type" parameter: | + | </table><!-- |
| + | 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 66: | ||
| notice = <!-- Do nothing, valid "type" --> | | notice = <!-- 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 --> | | #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": | ||
| + | -->{{#switch:{{{image|}}} | ||
| + | | blank = [[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --> | ||
}}<noinclude> | }}<noinclude> | ||
Revision as of 20:35, 15 March 2009
| {{{text}}} |
| Template:Ambox/core is deprecated. Please use Template:Ambox instead. |
This is the former sub-template of {{Ambox}}.
| The above documentation is transcluded from Template:Ambox/core/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |