Difference between revisions of "Template:Scrollbox"

(Created page with '<div style="border:1px solid #AAA; height:{{{height|230px}}}; margin:3px 0; overflow:auto; padding-left:0.5em; width:{{{width|99%}}}; -moz-border-radius-topleft:0.5em"> {{{1}}} <…')
 
m (Updating)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="border:1px solid #AAA; height:{{{height|230px}}}; margin:3px 0; overflow:auto; padding-left:0.5em; width:{{{width|99%}}}; -moz-border-radius-topleft:0.5em">
+
<includeonly>{{#if: {{NAMESPACE}} |<table style="clear: both; width: {{{width|100%}}}; margin: 3px 0px;" border="0"><tr><td style="background:{{{background|transparent}}};"><div style="overflow: auto; width: 100%; height: {{{height|230px}}}; border: 1px solid #AAA; padding-left: 0.5em; background: {{{background|transparent}}};">
{{{1}}}
+
{{{text|{{{1}}}}}}
</div>
+
</div></td><td style="width: 8px;"></td></tr></table>|
<noinclude>
+
{{{text|{{{1}}}}}}
__NOTOC__
+
}}</includeonly><!--{{Scroll box}} end--><noinclude>
==Usage==
+
{{Documentation}}
<pre>
+
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
{{scrollbox|
+
</noinclude>
}}
 
</pre>
 
 
 
==Example==
 
<pre>
 
{{scrollbox|
 
* blah
 
* blah
 
* blah
 
* blah
 
* blah
 
* blah
 
* blah
 
* blah
 
* blah
 
* blah
 
}}
 
</pre>
 
 
 
Will display as:
 
 
 
{{scrollbox|
 
* blah
 
* blah
 
* blah
 
* blah
 
* blah
 
* blah
 
* blah
 
* blah
 
* blah
 
* blah
 
}}
 
 
 
[[Category:Utility templates|{{PAGENAME}}]]</noinclude>
 

Latest revision as of 22:31, 14 May 2023