• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Scroll box/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Scroll box
This template should not be used in main article space, as it renders any content obscured within the template unprintable. This is especially true with text content, such as citations, according to a June 2007 discussion. Please, if you see a scroll box in article space, remove it and put a hidden warning.
This is the template sandbox page for Template:Scroll box (diff).
Template documentation[view] [edit] [history] [purge]

Contents

  • 1 Warning
  • 2 Description
  • 3 Usage
  • 4 Examples
    • 4.1 Example 1 (Simple)
      • 4.1.1 Code
      • 4.1.2 Result
    • 4.2 Example 2 (With 1 param)
      • 4.2.1 Code
      • 4.2.2 Result
    • 4.3 Example 3 (width)
      • 4.3.1 Code
      • 4.3.2 Result
    • 4.4 Example 4 (width and height)
      • 4.4.1 Code
      • 4.4.2 Result
  • 5 See also

Warning

edit

This template should not be used in main article space, as it renders any content obscured within the template unprintable. This is especially true with text content, such as citations, according to a June 2007 discussion.

Please, if you see a scroll box in article space, remove it and put a hidden warning.

Description

edit

This scrolling list template creates a scroll-box within a page that allows for large content to be limited to a given number of pixels on the page. Examples:

  • Photo gallery: La Spezia (on it.wiki)
  • Photo gallery: Pertini (same as above)
To edit the size of captions, you may use the following code:
<div style="clear:both; text-align:center; font-size:90%">........</div>

Usage

edit

{{scroll box
|width=width (in pixel or in percent)
|height=height (in pixel)
|text=contents
}}

The colored text should be properly replaced as here described:

width

The width of the box, expressed in pixel or in percent. (default=100%)

height

The height of the box, you should express this value exclusively in pixel. (default=230px)

contents

The text that should be displayed inside this frame. Note that the scroll bar will appear only if the text is long enough to overflow the given height. (required field, no default value)

Examples

edit

Example 1 (Simple)

edit

Code

edit
{{scroll box|
* Example 01
* Example 02
* Example 03
* Example 04
* Example 05
* Example 06
* Example 07
* Example 08
* Example 09
* Example 10
* Example 11
* Example 12
* Example 13
* Example 14
* Example 15
}}

Result

edit

Some text:

  • Example 01
  • Example 02
  • Example 03
  • Example 04
  • Example 05
  • Example 06
  • Example 07
  • Example 08
  • Example 09
  • Example 10
  • Example 11
  • Example 12
  • Example 13
  • Example 14
  • Example 15

Example 2 (With 1 param)

edit

Code

edit
{{scroll box|text=
* Example 01
* Example 02
* Example 03
* Example 04
* Example 05
* Example 06
* Example 07
* Example 08
* Example 09
* Example 10
* Example 11
* Example 12
* Example 13
* Example 14
* Example 15
}}

Result

edit
  • Example 01
  • Example 02
  • Example 03
  • Example 04
  • Example 05
  • Example 06
  • Example 07
  • Example 08
  • Example 09
  • Example 10
  • Example 11
  • Example 12
  • Example 13
  • Example 14
  • Example 15

Example 3 (width)

edit

Code

edit
{{scroll box|width=75%|text=
* Example 01
* Example 02
* Example 03
* Example 04
* Example 05
* Example 06
* Example 07
* Example 08
* Example 09
* Example 10
* Example 11
* Example 12
* Example 13
* Example 14
* Example 15
}}

Result

edit
  • Example 01
  • Example 02
  • Example 03
  • Example 04
  • Example 05
  • Example 06
  • Example 07
  • Example 08
  • Example 09
  • Example 10
  • Example 11
  • Example 12
  • Example 13
  • Example 14
  • Example 15

Example 4 (width and height)

edit

Code

edit
{{scroll box|width=150px|height=100px|text=
* Example 01
* Example 02
* Example 03
* Example 04
* Example 05
* Example 06
* Example 07
* Example 08
* Example 09
* Example 10
* Example 11
* Example 12
* Example 13
* Example 14
* Example 15
}}

Result

edit
  • Example 01
  • Example 02
  • Example 03
  • Example 04
  • Example 05
  • Example 06
  • Example 07
  • Example 08
  • Example 09
  • Example 10
  • Example 11
  • Example 12
  • Example 13
  • Example 14
  • Example 15

See also

edit
  • Help:Scrolling list
  • {{Scrolling window}}
The above documentation is transcluded from Template:Scroll box/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Scroll_box/sandbox&oldid=479297464"
Last edited on 28 February 2012, at 13:52

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 28 February 2012, at 13:52 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop