Template:Scroll box: Difference between revisions
From MediaWiki
Jump to navigationJump to search
Created page with "<table class="scrollbox" cellpadding="0" cellspacing="0" border="0" style="width:{{{width|100%}}};"><tr><td><div style="height:{{{height|400px}}}; width:{{{width|100%}}};"> {{..." |
mNo edit summary |
||
| Line 164: | Line 164: | ||
*blah | *blah | ||
*blah | *blah | ||
}} | }}</noinclude> | ||
Revision as of 23:23, 4 November 2018
{{{1}}} |
Usage instructions
{{Scroll_box|content=
}}
NOTE: Optional height and width variables can be used to control the width of the scroll box (height defaults to 400 pixels; the former "scroll box" template was 230 pixels):
{{Scroll_box|height=300px|content=
}}
{{Scroll_box|width=100%|content=
}}
{{Scroll_box|height=230px|width=100%|content=
}}
Example
Code
{{Scroll_box|content=
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}
Result
|
Alternative code
If no width or height are defined, the content= variable is not required either.
{{Scroll_box|
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}
Result
|

