User:C6541/template/scrollbox
Warning
Not to be used on mainspace articles!
Description
This template creates a customizable scroll-box allowing for one to place content in a fixed, scrollable text box. Useful for displaying large lists, paragraphs, etc. without taking up a huge amount of space and without making the page very long.
Syntax
{{User:C6541/template/scrollbox
|content=content to be displayed in box (text, Wiki markup and HTML)
|size=font size of content (size in pixels, percent, or integer; also accepts relative (smaller, etc.), absolute (xx-small, etc.) and more)
|align=page alignment of content (see below)
|header=header to be placed at top inside box (text)
|hsize=font size of header (size in pixels, percent, or integer; also accepts relative (smaller, etc.), absolute (xx-small, etc.) and more)
|halign=page alignment of header (see below)
|height=box height ( )
|width=box width (size in pixels or percent)
|border=box border width (size in pixels)
|shadow=toggle box shadow
|imgborder=toggle image border
|img=toggle image border
|overflow=overflow settings (see below)
}}
| Parameter | Info | Options | Default (if left blank) | Example parameter setting(s) | Needed? | Remove from template code? |
|---|---|---|---|---|---|---|
| content | The content to be displayed in box. If omitted the template will use the first unnamed parameter as the content, else it will be blank | blank | Hello! | Yes | No | |
| size | The font size of the content included in the content parameter. | See for accepted font sizes and formats | normal font size | 17px; 9; | No | Yes if not using content parameter. No if else. |
| align | The page alignment of the content included in the content parameter. | left, center, right, justify | no alignment | right | No | Yes if not using content parameter. No if else. |
| header | Displays a header on first line inside box (text is bold.) | text | Title | No | Yes if not using. No if else. | ||
| hsize | The font size of the header (if there is a header.) | large | 15pt; xx-small | No | No if changing header size. Yes if else. | ||
| halign | The alignment of the header. | left, center, right, justify | center | left | No | No if changing header alignment. Yes if else. |
| height | The height of the box. | size in pixels or percent | 200px | 500px; 50% | No | Yes if not changing height |
| width | The width of the box. | size in pixels or percent | 500px | 250px; 75% | No | Yes if not changing width |
| borders | The width of the border around the box. | size in pixels | 1px | 0px (no border); 3pt | No | Yes if not changing border |
| shadow | Toggle box shadow | boolean | false | true, false | No | Yes if not using |
Test
header(31px,right)
The unnamed string test was successful (17px, left)
box is 100% wide, 100px in height and has a 2px border
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.