Difference between revisions of "Template:Imbox/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Edokter
(moving test code)
imported>Edokter
Line 1: Line 1:
=== Testing {{tl|imbox}} ===
+
=== Testing {{tl|imbox/sandbox}} ===
  
 
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.
 
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.
  
{{imbox
+
{{imbox/sandbox
 
| type = speedy
 
| type = speedy
 
| text = speedy
 
| text = speedy
 
}}
 
}}
{{imbox
+
{{imbox/sandbox
 
| type = delete
 
| type = delete
 
| text = delete
 
| text = delete
 
}}
 
}}
 
[[Image:Canis lupus laying.jpg|thumb|60px]]
 
[[Image:Canis lupus laying.jpg|thumb|60px]]
{{imbox
+
{{imbox/sandbox
 
| type = content
 
| type = content
 
| 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  
 
| 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  
 
| imageright = [[Image:Nuvola apps bookcase.svg|40x40px]]
 
| imageright = [[Image:Nuvola apps bookcase.svg|40x40px]]
 
}}
 
}}
{{imbox
+
{{imbox/sandbox
 
| type = style
 
| type = style
 
| 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  
 
| 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  
 
| imageright = [[Image:Nuvola apps bookcase.svg|40x40px]]
 
| imageright = [[Image:Nuvola apps bookcase.svg|40x40px]]
 
}}
 
}}
{{imbox
+
{{imbox/sandbox
 
| type = notice
 
| type = notice
 
| 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  
 
| 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  
 
| imageright = [[Image:Nuvola apps bookcase.svg|80px]]
 
| imageright = [[Image:Nuvola apps bookcase.svg|80px]]
 
}}
 
}}
{{imbox
+
{{imbox/sandbox
 
| type = move
 
| type = move
 
| text = move
 
| text = move
Line 37: Line 37:
 
}}
 
}}
  
{{imbox
+
{{imbox/sandbox
 
| type      = style
 
| type      = style
 
| image    = [[Image:Flag_of_Portugal.svg|40x40px]]
 
| image    = [[Image:Flag_of_Portugal.svg|40x40px]]
Line 45: Line 45:
 
}}
 
}}
  
{{imbox
+
{{imbox/sandbox
 
| type      = style
 
| type      = style
 
| image    = [[Image:Under construction icon-blue.svg|40x40px]]
 
| image    = [[Image:Under construction icon-blue.svg|40x40px]]

Revision as of 13:53, 23 February 2012

Testing {{imbox/sandbox}}

The boxes below are transclusions of {{imbox}}. If you have updated the code of imbox then you might need to purge this page to see the effect on the examples below.

Some text just to test bottom margin.

Special

Some other parameter combinations.

Parameters

List of all parameters:

{{imbox/sandbox
| 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. 
| below = More text or another imbox.
}}

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.

Testing the below parameter

These examples relies on CSS code in MediaWiki:Common.css to make them 100% wide instead of 80% wide when inside another imbox. That is, when an imbox is fed as the "below" parameter to another imbox.

With a left image:

With both a left and right image:

With no images:

Testing mbox-inside

These examples relies on that the surrounding template has the "mbox-inside" class and CSS code in MediaWiki:Common.css to make imboxes 100% wide instead of 80% wide when inside another template.


Description

Testing imboxes inside the {{information}} template.

Source
Date
Author

David Göthberg

Permission
(Reusing this file)