Template:Scrollbox: Difference between revisions

MDFW - The Mystery Dungeon Tree of Information.
Jump to navigation Jump to search
m (24 revisions imported)
mNo edit summary
Line 1: Line 1:
<table cellpadding="0" cellspacing="0" border="0" style="width:{{{width|95%}}}"><tr><td style="background:transparent;"><div style="overflow:auto; height:{{{height|230px}}}; width:{{{width|100%}}};-moz-border-radius:0.5em; border:3px solid #000000; background:none; padding:5px; overflow-{{{dir|y}}}: scroll;">
<table style="width:{{{width|100%}}}">
<tr>
<td style="background:transparent">
<div style="overflow:auto; height:{{{height|250px}}}; width:{{{width|100%}}};-moz-border-radius:0.5em; border:1px solid #000000; border-radius:10px 0 0 10px; background-color:rgba(0,0,0,0.1); padding:5px; overflow-{{{dir|y}}}: scroll;">
{{{content|{{{1}}}}}}
{{{content|{{{1}}}}}}
</div></td></tr></table><noinclude>__NOTOC__
</div>
</td>
</tr>
</table><noinclude>__NOTOC__
==Usage instructions==
==Usage instructions==
<pre><nowiki>
<pre><nowiki>

Revision as of 15:59, 28 August 2022

{{{1}}}

Usage instructions

{{scroll box
|content=

}}

NOTE: An optional width variable can be used to control the width of the scroll box:

{{scroll box
|width=75%
|content=

}}

Example

Code

{{scroll box
|content=
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}

Result

Template:Scroll box

Alternative code

{{scroll box|
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}

Result

Template:Scroll box