Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Scrollbox: Difference between revisions

Template page
(x/y support)
No edit summary
Line 1: Line 1:
{{#switch: {{{2|{{overflow}}}}}
{{#switch: {{{2|{{overflow|}}}}}
  |x=<div class="scrollbox__container-x">{{{1|}}}</div>
  |x=<div class="scrollbox__container-x">{{{1|}}}</div>
  |y=<div class="scrollbox__container-y">{{{1|}}}</div>
  |y=<div class="scrollbox__container-y">{{{1|}}}</div>
  |<div class="scrollbox__container">{{{1|}}}</div>
  |<div class="scrollbox__container">{{{1|}}}</div>
}}<templatestyles src="Template:Scrollbox/styles.css"/><noinclude>{{/doc}}</noinclude>
}}<templatestyles src="Template:Scrollbox/styles.css"/><noinclude>{{/doc}}</noinclude>

Revision as of 01:44, 28 July 2023

This template renders whatever is placed within it as a scroll-able item if the contents overflow the container or page.

Template parameters

ParameterDescriptionTypeStatus
Content1

The content to place within a scroll-able container

Contentrequired
Overflowoverflow

The direction the scrollbar should appear on. If blank, defaults to both.

Suggested values
x y
Example
x
Contentoptional