Customize Your Wiki
Register
Advertisement

Warning[]

This template should not be used in main article space, as it renders any content obscured within the template unprintable.

Please, if you see a scroll box in article space, remove it and put a hidden warning.

Description[]

This template creates a scroll-box within a page that allows for large content to be limited to a given number of pixels on the page.

Requirement[]

  • Create a template page named Scroll box.
  • Copy and paste the following data into the created template.
<table cellpadding="0" cellspacing="0" border="0" style="width:{{{width|100%}}}; margin-bottom:3px; margin-top:3px;"><tr><td style="background:transparent;"><div style="overflow:auto; height:{{{height|230px}}}; width:{{{width|100%}}};  -moz-border-radius-topleft:0.5em; border:1px solid #AAAAAA; padding-left:0.5em; background:transparent;">{{{text}}}</div></td><td style="width:8px;"></td></tr></table>

Documentation[]

{{Scroll box
|width =      //width of the box in pixel or percent (default = 100%)
|height =     //height of the box in pixel (default = 230px)
|text =       //text that should be displayed inside this frame. Note: the scroll bar will appear only if the text is long enough to overflow the given height (required field, no default value
}}

Example[]

{{scroll box|text=
* Example 01
* Example 02
* Example 03
* Example 04
* Example 05
* Example 06
* Example 07
* Example 08
* Example 09
* Example 10
* Example 11
* Example 12
* Example 13
}}

Result:

Scrollbox Example

{{{text}}}
Advertisement