User:Silly rabbit/Sandbox/Template:Scroll box

Warning
'''This template should not be used in main article space, as it renders any content obscured within the template unprintable. This is especially true with text content, such as citations, according to a June 2007 discussion.'''

Description
This template creates a scroll-box within an article that allows for large content to be limited to a given number of pixels on the page.
 * Examples:
 * Photo gallery: La Spezia (on it.wiki)
 * Photo gallery: Pertini (same as above)
 * To edit the size of captions, you may use the following code:


 *  ........   

Syntax
 &#123;&#123;scroll box |width= width (in pixel or in percent)  |height= height (in pixel)  |text= contents  &#125;&#125; 

The colored text should be properly replaced as here described:

width
 * The width of the box, expressed in pixel or in percent. (default=100%)

height
 * The height of the box, you should express this value exclusively in pixel. (default=230px)

contents
 * The text that should be displayed inside this frame. Note that only if the text is long enough, and you have a overflow, you will see the scroll bar. (required field, no default value)

Result
it:Template:Scroll box