Template:ScrollBox/doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Thunder4ik (talk | contribs) m (→top: clean up, replaced: {{Documentation subpage → {{Doc/subpage) |
||
Line 1: | Line 1: | ||
{{ | {{Doc/subpage}} | ||
<!-- Please place categories where indicated at the bottom of this page.) --> | <!-- Please place categories where indicated at the bottom of this page.) --> | ||
Use this to rein in lists such as KV, Input and Ouput lists on entity pages. Reaaally long lists won'tnot flood the entire page this way. | Use this to rein in lists such as KV, Input and Ouput lists on entity pages. Reaaally long lists won'tnot flood the entire page this way. |
Latest revision as of 02:17, 12 January 2024

This is a documentation subpage for Template:ScrollBox.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Use this to rein in lists such as KV, Input and Ouput lists on entity pages. Reaaally long lists won'tnot flood the entire page this way.
Parameters
- {{{1}}} – The text inside the ScrollBox.
- {{{title}}} – The title above the scroll box. Leave empty for no title.
- {{{bottom-border}}} – If set to a non-empty value, then a short, thin line will be present at the bottom. Use if the scrollbar becomes unreliable from long lists.
- {{{noscroll}}} – If set to a non-zero value, scrolling is disabled. Use if scrolling becomes problematic on nested ScrollBoxes.
- {{{maxheight}}} – Change the height threshold for when the ScrollBox should be active. This isn't for things such as KV or I/O lists, as ideally these should use the default to maintain a consistency.
- {{{color}}} – Sets the background color of the ScrollBox.
- {{{border-color}}} – Sets the color of the border of the ScrollBox.
- {{{style}}} – Allows the editor to throw in any other style attributes to the ScrollBox.
Examples
Wikitext | Result |
---|---|
{{ScrollBox|maxheight=8em| # One # Two # Three # Four # Five # Six # Seven # Eight # Nine # Ten }} |
|
{{ScrollBox|maxheight=8em|bottom-border=1| # One # Two # Three # Four # Five # Six # Seven # Eight # Nine # Ten }} |
|
{{ScrollBox|maxheight=8em|bottom-border=1|noscroll=1| # One # Two # Three # Four # Five # Six # Seven # Eight # Nine # Ten }} |
|
{{ScrollBox|maxheight=8em|bottom-border=1|noscroll=0| # One # Two # Three # Four # Five # Six # Seven # Eight # Nine # Ten }} |
|
{{ScrollBox|maxheight=8em|color=#234|border-color=#456|style=border-left:10px solid #FC6| # One # Two # Three # Four # Five # Six # Seven # Eight # Nine # Ten }} |
|