Template:Scroll box: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (Protected "Template:Scroll box" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
mNo edit summary
Line 1: Line 1:
<includeonly><table cellpadding="0" cellspacing="0" border="0" style="width:{{{width|95%}}}"><tr><td style="background:transparent"><div style="width:{{{width|100%}}}; height:{{{height|230px}}}; overflow:auto; overflow-{{{dir|y}}}:scroll; background:none; border:1px solid #aaa; border-radius:0.5em; padding:5px">
<includeonly><div class="scroll-box" style="clear:both;overflow:auto;width:{{{width|max-content}}};height:{{{height|230px}}};background:{{{bg|none}}};border:1px solid {{{border|#aaa}}};box-sizing:border-box;padding:0 0.5em;margin:0.75em 0">
{{{content|{{{1}}}}}}
{{{content|{{{1}}}}}}
</div></td></tr></table></includeonly><noinclude>__NOTOC__
</div></includeonly><noinclude>
==Usage instructions==
This template inserts a scrollable content box onto the page.
<pre><nowiki>
{{scroll box
|content=


}}
==Usage==
</nowiki></pre>
 
NOTE: An optional '''width''' variable can be used to control the width of the scroll box:
<pre><nowiki>
{{scroll box
|width=75%
|content=
 
}}
</nowiki></pre>
 
==Example==
===Code===
<pre>
<pre>
{{scroll box
{{scroll box
|content=
|content=
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}
</pre>
===Result===
{{scroll box
|content=
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}


===Alternative code===
<pre>
{{scroll box|
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}
}}
</pre>
</pre>


===Result===
Optional <code>width</code> and <code>height</code> parameters can be used to adjust the dimensions of the scroll box.
{{scroll box|
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}


[[Category:Structural templates]]</noinclude>
[[Category:Structural templates]]</noinclude>

Revision as of 13:10, December 14, 2024

This template inserts a scrollable content box onto the page.

Usage

{{scroll box
|content=

}}

Optional width and height parameters can be used to adjust the dimensions of the scroll box.