Toggle menu
14
236
69
27.3K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 22:35, 21 February 2025 by Prd (talk | contribs) (Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> === Usage === {{tl|Scrollable-top}} starts a scrollable section, and is used in place of {{tl|scrollable}} if the latter does not function properly with the enclosed section. The section ends with {{tl|scrollable-bottom}} Usage: <syntaxhighlight lang="wikitext"> {{scrollable-top|height=xxx}} insert scrollable section here {{scrollable-bottom}} </syntaxhighlight> ===Ex...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

{{Scrollable-top}} starts a scrollable section, and is used in place of {{scrollable}} if the latter does not function properly with the enclosed section. The section ends with {{scrollable-bottom}}

Usage:

{{scrollable-top|height=xxx}}

insert scrollable section here

{{scrollable-bottom}}

Examples

This template allows the ability to create a scrollable portion on a page. The first pararmeter "1" allows setting of the height.

Example 1
{{scrollable-top|height=40}}

This is the content of the pane <br/>
It is scrollable from the sidescroll <br/>
The height setting for this box is 40px <br/>

{{scrollable-bottom}}

produces:

This is the content of the pane
It is scrollable from the sidescroll
The height setting for this box is 40px

Example 2
{{scrollable-top|20}}
<!-- this is the content area -->
This is the content of the pane
<!-- this is the height parameter: -->
{{scrollable-bottom}}

produces:

This is the content of the pane


Reason

This complements {{scrollable}}, which like many other templates, doesn't work well with some elements when used in its parameter list.

See also