Difference between revisions of "Template:Scroll box"
From Hetalia Archives
Line 1: | Line 1: | ||
− | <div style="height:{{{1}}}em; overflow:auto; border: 1px solid # | + | <div style="height:{{{1}}}em; overflow:auto; border: 1px solid #cccccc">{{{2}}}</div><noinclude> |
==Usage instructions== | ==Usage instructions== |
Latest revision as of 20:56, 26 November 2017
{{{2}}}
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|15| *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
- 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
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
{{{2}}}