Template:Scrollable-top/doc

From English Wikipedia @ Freddythechick

Usage

{{Scrollable-top}} starts a scrollable section, and is used in place of {{scrollable}} if the latter does not function properly with the enclosed section. The section ends with {{scrollable-bottom}}

Usage:

<syntaxhighlight lang="wikitext">

insert scrollable section here

</syntaxhighlight>

Examples

This template allows the ability to create a scrollable portion on a page. The first pararmeter "1" allows setting of the height.

Example 1

<syntaxhighlight lang="wikitext">

This is the content of the pane
It is scrollable from the sidescroll
The height setting for this box is 40px

</syntaxhighlight>

produces:

This is the content of the pane
It is scrollable from the sidescroll
The height setting for this box is 40px

Example 2

<syntaxhighlight lang="wikitext">

This is the content of the pane

</syntaxhighlight>

produces:

This is the content of the pane

Reason

This complements {{scrollable}}, which like many other templates, doesn't work well with some elements when used in its parameter list.

See also