Template:Scrollpane/doc

From Wikisource
Jump to navigation Jump to search

Usage

[edit]

Enable scrollable region of display.

{{centre block|{{scrollpane|border=1px solid grey|height=4em|width=16em|padding=1em 1em 1em 1em|{{lorem ipsum}}}}}}

produces effect:

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Parameters:

border Control border display and attributes (e.g. border=1px dashed silver; default: no border)
height Control height of scrolling region (units must be specified e.g. height=200px; default: unlimited)
padding Fine control of border padding around region (units must be specified e.g. padding=10px 5px 10px 5px; [Reminder: HTML side order is top right bottom left] default: 10px (0.6250em) for all four sides)
width Control width of scrolling region (units must be specified e.g. width=350px; default: unlimited)

Template data

[edit]

Enable scrollable region of display

Template parameters

ParameterDescriptionTypeStatus
texttext 1

text that will be within scrollable pane

Stringrequired
borderborder

control border display and attributes (e.g. border=1px dashed silver; default: no border)

Default
no border
Stringoptional
heightheight

control height of scrolling region (units must be specified e.g. height=200px; default: unlimited)

Stringoptional
paddingpadding

fine control of border padding around region (units must be specified e.g. padding=10px 5px 10px 5px; [Reminder: HTML side order is top right bottom left] default: 10px (0.6250em) for all four sides)

Default
10px
Stringoptional
widthwidth

control width of scrolling region (units must be specified e.g. width=350px; default: unlimited)

Stringoptional