Template:Scroll box: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
(It's just not allowed in Proposal archives, but it's still in use on user and user talk pages, and deleting it wasn't the ultimate goal of updating the proposals anyway.)
mNo edit summary
(10 intermediate revisions by 2 users not shown)
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:1px solid #AAAAAA; background:none; padding:5px; overflow-{{{dir|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:Formatting Templates|{{PAGENAME}}]]</noinclude>

Revision as of 15: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.