Template:Scroll box
此模板不应在主要文章空间中使用,因为它会使模板内的任何内容都无法打印。根据英文维基2007年6月讨论,对于文本内容(例如引文)尤其如此。如果您在文章空间中看到滚动框,请将其删除并隐藏警告。 |
Warning
编辑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
编辑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:
- To edit the size of captions, you may use the following code:
<div style="clear:both; text-align:center; font-size:90%">........</div>
Usage
编辑
{{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
编辑示例1(简单)
编辑Code
编辑{{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 }}
结果
编辑Some text:
|
示例2(带1个参数)
编辑Code
编辑{{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 }}
结果
编辑
|
示例3(宽度)
编辑Code
编辑{{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 }}
结果
编辑
|
示例4(宽度和高度)
编辑Code
编辑{{scroll box|width=150px|height=100px|bar=invisible|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 }}
结果
编辑
|