FANDOM


WarningEdit

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.

DescriptionEdit

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.

RequirementEdit

  • 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>

DocumentationEdit

{{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
}}

ExampleEdit

{{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

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.