From Wikipedia, the free encyclopedia
|
{{{text}}} |
[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.
|
speedy |
|
delete |
|
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 |
|
|
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 |
|
|
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 |
|
|
move |
|
protection |
Some text just to test bottom margin.
[edit] Special
Some other parameter combinations.
|
No type and no image given (default) |
|
No type and image=none – No image is used and the text uses the whole message box area. |
|
type = license
image = [[Image:Imbox license.svg|40px]] <br> [[Image:Ambox warning yellow.svg|40px]]
imageright = [[Image:Shuttle.svg|30px]] |
|
|
This file is in the public domain because it was created by NASA.
Note that use of NASA logos, insignia and emblems are restricted per US law. |
|
|
image =
Testing the case with empty image parameter. Used to cause a big blank image cell, but we fixed that so now it should show the default image just as if no image parameter at all was fed. |
|
Trying large left side image. - 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 |
|
Trying large left side image. - 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 |
|
[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
|
This file has been released into the public domain by the copyright holder, its copyright has expired, or it is ineligible for copyright. This applies worldwide. |
|
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. |
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:
|
This file has been released into the public domain by the copyright holder, its copyright has expired, or it is ineligible for copyright. This applies worldwide. |
|
This license tag is deprecated! |
|
With both a left and right image:
With no images:
|
This file has been released into the public domain by the copyright holder, its copyright has expired, or it is ineligible for copyright. This applies worldwide. |
|
This license tag is deprecated! |
|
[edit] Testing imbox-inside
Description |
Testing imboxes inside the {{information}} template.
|
Source |
|
With the default imbox styles. |
|
Date |
{{{date}}}
|
Author |
David Göthberg
|
Permission
(Reusing this image) |
|
With "margin: 4px;". This can be done automagically with CSS. |
|