Difference between revisions of "Template:Imbox"

839 bytes added ,  14:55, 3 February 2009
m
1 revision
m (1 revision)
 
m (1 revision)
Line 1: Line 1:
=== Testing {{tl|imbox}} ===
<table class="plainlinks imbox
 
{{#switch:{{{type|}}}
The boxes below are transclusions of {{tl|imbox}}. If you have updated the code of imbox then you might need to [http://en.wikipedia.org/w/index.php?title=Template:Imbox/testcases&action=purge purge this page] to see the effect on the examples below.
| speedy    = imbox-speedy
 
| delete    = imbox-delete
{{imbox
| content    = imbox-content
| type = speedy
| style      = imbox-style
| text = speedy
| move      = imbox-move
}}
| protection = imbox-protection
{{imbox
| license    = imbox-license
| type = delete
| featured  = imbox-featured
| text = delete
| notice          <!-- notice = default -->
}}
| #default  = imbox-notice
[[Image:Canis lupus laying.jpg|thumb|60px]]
}}" style="{{{style|}}}">
{{imbox
<tr>
| type = content
{{#ifeq:{{{image|}}}|none
| text = content - lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 0px; width: 1px;"></td>
| imageright = [[Image:Nuvola apps bookcase.svg|40x40px]]
| <td class="mbox-image">
}}
  {{#if:{{{image|}}}
{{imbox
  | {{{image}}}
| type = style
  | {{#switch:{{{type|}}}
| text = style - lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text
    | speedy    = [[Image:Imbox speedy deletion.png|40x40px]]  
| imageright = [[Image:Nuvola apps bookcase.svg|40x40px]]
    | delete    = [[Image:Imbox deletion.png|40x40px]]
}}
    | content    = [[Image:Imbox content.png|40x40px]]
{{imbox
    | style      = [[Image:Imbox style.png|40x40px]]
| type = notice
    | move      = [[Image:Imbox move.png|40x40px]]
| text = notice - lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text
    | protection = [[Image:Imbox protection.png|40x40px]]
| imageright = [[Image:Nuvola apps bookcase.svg|80px]]
    | license    = [[Image:Imbox license.png|40x40px]]
    | featured  = [[Image:Imbox featured.png|40x40px]]
    | notice          <!-- notice = default -->
    | #default  = [[Image:Imbox notice.png|40x40px]]
    }}
  }}</td>
}}
}}
{{imbox
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
| type = move
{{#if:{{{imageright|}}}
| text = move
| <td class="mbox-imageright"> {{{imageright}}} </td>
}}
}}
{{shortcut|WP:TEST}}
</tr>
{{imbox
{{#if:{{{below|}}}
| type = protection
| <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="mbox-text" style="{{{textstyle|}}}"> {{{below}}} </td></tr>
| text = protection
}}
}}
</table><!-- Detect and report usage with faulty "type" parameter:
-->{{#switch:{{{type|}}}
|  <!-- No type fed, is also valid input -->
| speedy
| delete
| content
| style
| move
| protection
| license
| featured
| notice    =    <!-- Do nothing, valid "type" -->
| #default  = [[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
}}<noinclude>


Some text just to test bottom margin.
{{pp-template|small=yes}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
Budlight
Bots, Bureaucrats, Administrators
529

edits