Template:Scroll box: Difference between revisions
From MediaWiki
Jump to navigationJump to search
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<table class="scrollbox" cellpadding="0" cellspacing="0" border="0" style="width:{{{width|100%}}};"><tr><td><div style="height:{{{height| | <table class="scrollbox" cellpadding="0" cellspacing="0" border="0" style="width:{{{width|100%}}};"><tr><td><div style="height:{{{height|100px}}}; width:{{{width|100%}}};"> | ||
{{{content|{{{1}}}}}} | {{{content|{{{1}}}}}} | ||
</div></td><td style="width:8px;"></td></tr></table><noinclude>__NOTOC__ | </div></td><td style="width:8px;"></td></tr></table><noinclude>__NOTOC__ | ||
Revision as of 23:31, 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
|

