Template:Scroll box: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
mNo edit summary
 
(18 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<table cellpadding="0" cellspacing="0" border="0" style="width:{{{width|100%}}}"><tr><td style="background:transparent;"><div style="overflow:auto; height:230px; width:{{{width|100%}}};-moz-border-radius:0.5em; border:1px solid #AAAAAA; background:none; padding:5px; overflow-y: scroll;">
<includeonly><div class="scroll-box" style="overflow:auto;width:{{{width|auto}}};height:{{{height|250px}}};background:{{{bg|#f8f9fa}}};border:1px solid {{{border|#c8ccd1}}};padding:0 0.75em;margin:1em 0">
{{{content|{{{1}}}}}}
{{{content|{{{1}}}}}}
</div></td></tr></table><noinclude>__NOTOC__
</div></includeonly><noinclude>
==Usage instructions==
This template inserts a scrollable content box onto the page.
<pre><nowiki>
{{scroll box
|content=
 
}}
</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==
==Usage==
===Code===
<pre>
<pre><nowiki>
{{scroll box
{{scroll box
|content=
|content=
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}
</nowiki></pre>


===Result===
{{scroll box
|content=
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}
}}
</pre>


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


===Result===
[[Category:Structural templates]]</noinclude>
{{scroll box|
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}
[[Category:MarioWiki Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 14:03, 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.