Template:Scroll box
Jump to navigation
Jump to search
Description
[edit]Creates a scrollable box of text.
Usage
[edit]Parameters
[edit]Required
[edit]- content - The text to show in the box. If no height and width are specified, this can be passed as an unnamed variable instead.
Optional
[edit]- height - The height of the box. Can be specified as a fixed number of pixels or a percentage. Defaults to 400 pixels, the former scroll box template was 230 pixels.
- width - The width of the box. Can be specified as a fixed number of pixels or a percentage.
Code
[edit]{{Scroll_box|content=
}}
{{Scroll_box|height=300px|content=
}}
{{Scroll_box|width=100%|content=
}}
{{Scroll_box|height=230px|width=100%|content=
}}
Examples
[edit]Code
[edit]{{Scroll_box|content=
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}
Result
[edit]
|
Alternative code
[edit]If no width or height are defined, the content= variable can be unnamed.
{{Scroll_box|
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}
Result
[edit]
|