Template:Imbox/test1

From Wikipedia, the free encyclopedia

Contents

[edit] David's sandbox for {{imbox}}

Here David Göthberg is testing new code versions.

The box above is template code on this page, the boxes below are transclusions of this page and show how that code renders when the box is stacked. If you have updated the code above then you have to purge this page to see the effect on the examples below.

Shortcut:
WP:TEST

Some text just to test bottom margin.

[edit] Special

Some other parameter combinations.

[edit] Parameters

List of all parameters:

{{imbox/test1
| type  = speedy / delete / content / style / notice / 
          move / protection / license / featured
| image = none / [[Image:Some image.svg|40px]]
| imageright = [[Image:Some image.svg|40px]]
| style = CSS value
| textstyle = CSS value
| text  = The message body text. 
}}

[edit] Examples of varying width

Note: The Creative Commons box above has more padding around the "Some rights reserved" image since that image itself has a lot of whitespace. To fix that the image should be modified, not imbox.

[edit] Testing the below parameter

These examples currently use the "style" parameter to set the margins for the inner imboxes. If/when we decide to use the "below" parameter we can add CSS code to MediaWiki:Common.css that makes it so that imboxes that are placed inside other imboxes automatically get the right margins.

With a left image:

With both a left and right image:

With no images:

[edit] Testing imbox-inside

Description

Testing imboxes inside the {{information}} template.

Source
Date

{{{date}}}

Author

David Göthberg

Permission
(Reusing this image)