Difference between revisions of "Template:Scroll box"
From Hetalia Archives
Line 1: | Line 1: | ||
− | <div style="padding: 4px; margin-right: 3em; margin-bottom: 0.8em; color: #222222; overflow: hidden; position: relative; top: 0px; left: 0px; border-top: 1px solid #aaaaaa; border-bottom: 1px solid #aaaaaa; border-left: 1px solid #aaaaaa | + | <div style="padding: 4px; margin-right: 3em; margin-bottom: 0.8em; color: #222222; overflow: hidden; position: relative; top: 0px; left: 0px; border-top: 1px solid #aaaaaa; border-bottom: 1px solid #aaaaaa; border-left: 1px solid #aaaaaa;">{{{1}}}</div></includeonly> |
==Usage instructions== | ==Usage instructions== | ||
Line 61: | Line 61: | ||
===Result=== | ===Result=== | ||
− | {{Scroll_box| | + | {{Scroll_box| |
*blah | *blah | ||
*blah | *blah |
Revision as of 20:39, 26 November 2017
</includeonly>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
{{{2}}}
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}}}