Jump to content

Template:Ambox/core: Difference between revisions

From IdeaWazaWiki
wikademia>Davidgothberg
Making "image=blank" fall back to "image=none" since deprecated, but also reporting to the error category.
wikademia>Eme
m 1 revision
 
(4 intermediate revisions by 3 users not shown)
Line 10: Line 10:
| notice    <!-- notice = default -->
| notice    <!-- notice = default -->
| #default  = ambox-notice
| #default  = ambox-notice
}}" style="{{#switch:{{{small|}}}
}}" style="{{{style|}}}">
| left = margin: 4px 1em 4px 0; width: 238px; border-collapse: collapse; font-size: 88%; line-height: 1.25em;
}} {{{style|}}}">
<tr>
<tr>
{{#switch:{{{image|}}}
{{#switch:{{{image|}}}
| blank    <!-- Fall back to "none", since deprecated. -->
| blank    <!-- Fall back to "none", since deprecated. -->
| 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. -->
| 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">{{
   <td class="mbox-image">{{
Line 25: Line 23:
   {{#if:{{{image|}}}
   {{#if:{{{image|}}}
   | {{{image}}}
   | {{{image}}}
   | [[Image:{{#switch:{{{type|}}}
   | [[File:{{#switch:{{{type|}}}
     | speedy    = Ambox speedy deletion.png
     | speedy    = Ambox speedy deletion.png
     | delete    = Ambox deletion.png
     | delete    = Ambox deletion.png
     | content    = Ambox content.png
     | content    = Ambox content.png
     | style      = Ambox style.png
     | style      = Edit-clear.svg
     | move      = Ambox move.png
     | move      = Ambox move.png
     | protection = Ambox protection.png
     | protection = Ambox protection.png
Line 37: Line 35:
       | left = 20x20px  
       | left = 20x20px  
       | #default = 40x40px  
       | #default = 40x40px  
       }} ]]
       }} |link=|alt=]]
   }}{{#switch:{{{small|}}}
   }}{{#switch:{{{small|}}}
   | left = <!-- Don't use the /DIV -->
   | left = <!-- Don't use the /DIV -->
Line 71: Line 69:
| 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 -->
}}<noinclude>
}}<noinclude>
{{pp-template}}
{{documentation}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 21:29, 18 December 2010

[create] Template documentation