More actions
(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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Content | 1 | The content to place within a scroll-able container | Content | required |
| Overflow | overflow | The direction the scrollbar should appear on. If blank, defaults to both.
| Content | optional |