Difference between revisions of "Template:Scroll box"

From Hetalia Archives
Jump to: navigation, search
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;"><blockquote style="max-height: 15em; overflow: auto; margin: 12px 60px 12px 60px;">{{{2|{{color|Red|'''Error. No text entered.'''}}}}}</blockquote></div></includeonly>
+
<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|content=
+
{{Scroll_box|
 
*blah
 
*blah
 
*blah
 
*blah

Revision as of 20:39, 26 November 2017

{{{1}}}
</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}}}