Template:ScrollBox/doc: Difference between revisions
Jump to navigation
Jump to search
(docs - open for improvements as usual) |
m (comment) |
||
Line 11: | Line 11: | ||
=== Examples === | === Examples === | ||
<!-- Use 'wikitable' instead, or 'bottom-border' is invisible. Bonus for looking nice too --> | |||
{| class="wikitable" style="width:100%; table-layout:fixed;" | {| class="wikitable" style="width:100%; table-layout:fixed;" | ||
! style="width:50%;" | Wikitext | ! style="width:50%;" | Wikitext |
Revision as of 07:57, 31 October 2021

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}}} - Text that's inside the ScrollBox.
- {{{title}}} - The title that's above the scroll box. Leave empty for no title.
- {{{bottom-border}}} - If a short, thin line should be present at the bottom. Use if the scrollbar becomes unreliable from long lists.
- {{{noscroll}}} - If scrolling shouldn't be active at all. 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.
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 }} |
|