Template:Scroll box: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (Text replacement - "-moz-border-radius" to "border-radius") |
mNo edit summary |
||
Line 1: | Line 1: | ||
<table cellpadding="0" cellspacing="0" border="0" style="width:{{{width|95%}}}"><tr><td style="background:transparent | <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"> | ||
{{{content|{{{1}}}}}} | {{{content|{{{1}}}}}} | ||
</div></td></tr></table><noinclude>__NOTOC__ | </div></td></tr></table></includeonly><noinclude>__NOTOC__ | ||
==Usage instructions== | ==Usage instructions== | ||
<pre><nowiki> | <pre><nowiki> | ||
Line 21: | Line 21: | ||
==Example== | ==Example== | ||
===Code=== | ===Code=== | ||
<pre | <pre> | ||
{{scroll box | {{scroll box | ||
|content= | |content= | ||
Line 40: | Line 40: | ||
*blah | *blah | ||
}} | }} | ||
</pre> | |||
===Result=== | ===Result=== | ||
Line 63: | Line 63: | ||
===Alternative code=== | ===Alternative code=== | ||
<pre | <pre> | ||
{{scroll box| | {{scroll box| | ||
*blah | *blah | ||
Line 81: | Line 81: | ||
*blah | *blah | ||
}} | }} | ||
</pre> | |||
===Result=== | ===Result=== | ||
Line 101: | Line 101: | ||
*blah | *blah | ||
}} | }} | ||
[[Category:Formatting templates]]</noinclude> | [[Category:Formatting templates]]</noinclude> |
Revision as of 15:46, May 30, 2024
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
|
Alternative code
{{scroll box| *blah *blah *blah *blah *blah *blah *blah *blah *blah *blah *blah *blah *blah *blah *blah }}
Result
|