Jump to content

Template:Imbox: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Changing to using the imbox CSS classes in MediaWiki:Common.css. Their 30 day caching time has passed. (Tested in /sandbox.)
Removing notice of move discussion
 
(22 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{#invoke:Message box|imbox}}<noinclude>
<table class="plainlinks imbox
{{documentation}}
{{#switch:{{{type|}}}
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
| speedy = imbox-speedy
| delete = imbox-delete
| content = imbox-content
| style = imbox-style
| move = imbox-move
| protection = imbox-protection
| license = imbox-license
| featured = imbox-featured
| notice <!-- notice = default -->
| #default = imbox-notice
}}" style="{{{style|}}}">
<tr>
{{#ifeq:{{{image|}}}|none
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
| <td class="imbox-image">
{{#if:{{{image|}}}
| {{{image}}}
| {{#switch:{{{type|}}}
| speedy = [[Image:Imbox speedy deletion.png|40x40px]]
| delete = [[Image:Imbox deletion.png|40x40px]]
| content = [[Image:Imbox content.png|40x40px]]
| style = [[Image:Imbox style.png|40x40px]]
| move = [[Image:Imbox move.png|40x40px]]
| protection = [[Image:Imbox protection.png|40x40px]]
| license = [[Image:Imbox license.png|40x40px]]
| featured = [[Image:Imbox featured.png|40x40px]]
| notice <!-- notice = default -->
| #default = [[Image:Imbox notice.png|40x40px]]
}}
}}</td>
}}
<td class="imbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
| <td class="imbox-imageright"> {{{imageright}}} </td>
}}
</tr>
{{#if:{{{below|}}}
| <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="imbox-text" style="{{{textstyle|}}}"> {{{below}}} </td></tr>
}}
</table><noinclude>

{{pp-template|small=yes}}
{{Documentation}}
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 12:49, 30 October 2019