Template:Scroll box: Difference between revisions

From FrathWiki
Jump to navigationJump to search
(Stole this code from Wookiepedia)
 
m (→‎Usage instructions: Documeted added height variable)
Line 1: Line 1:
<table cellpadding="0" cellspacing="0" border="0" style="width:{{{width|100%}}}; margin-bottom:3px; margin-top:3px;"><tr><td style="background:transparent;"><div style="overflow:auto; height:{{{height|230px}}}; width:{{{width|100%}}};  -moz-border-radius-topleft:0.5em; border:1px solid #AAAAAA; padding-left:0.5em; background:transparent;">
{{{content|{{{1}}}}}}
</div></td><td style="width:8px;"></td></tr></table><noinclude>__NOTOC__
<table cellpadding="0" cellspacing="0" border="0" style="width:{{{width|100%}}}; margin-bottom:3px; margin-top:3px;"><tr><td style="background:transparent;"><div style="overflow:auto; height:{{{height|230px}}}; width:{{{width|100%}}};  -moz-border-radius-topleft:0.5em; border:1px solid #AAAAAA; padding-left:0.5em; background:transparent;">
<table cellpadding="0" cellspacing="0" border="0" style="width:{{{width|100%}}}; margin-bottom:3px; margin-top:3px;"><tr><td style="background:transparent;"><div style="overflow:auto; height:{{{height|230px}}}; width:{{{width|100%}}};  -moz-border-radius-topleft:0.5em; border:1px solid #AAAAAA; padding-left:0.5em; background:transparent;">
{{{content|{{{1}}}}}}
{{{content|{{{1}}}}}}
Line 13: Line 16:
<pre><nowiki>
<pre><nowiki>
{{scroll box
{{scroll box
|width=75%
|width=75% <!-- Should be a relative value! -->
|height=10em <!-- Should be an absolute value! 2 lines = 3em approx. -->
|content=
|content=


}}
}}
</nowiki></pre>
</nowiki></pre>
==Example==
===Code===
<pre><nowiki>
{{scroll box
|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
}}
===Alternative code===
<pre><nowiki>
{{scroll box|
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}
</nowiki></pre>
===Result===
{{scroll box|
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}
[[Category:Utility templates|{{PAGENAME}}]]</noinclude>


==Example==
==Example==

Revision as of 06:27, 24 April 2007

{{{1}}}

{{{1}}}

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% <!-- Should be a relative value! -->
|height=10em <!-- Should be an absolute value! 2 lines = 3em approx. -->
|content=

}}

Example

Code

{{scroll box
|content=
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}

Result

  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah

Example

Code

{{scroll box
|content=
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}

Result

Template loop detected: Template:Scroll box

Alternative code

{{scroll box|
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}

Result

Template loop detected: Template:Scroll box</noinclude>

Alternative code

{{scroll box|
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}

Result

  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah

Example

Code

{{scroll box
|content=
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}

Result

Template loop detected: Template:Scroll box

Alternative code

{{scroll box|
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}

Result

Template loop detected: Template:Scroll box</noinclude>

Example

Code

{{scroll box
|content=
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}

Result

  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah

Example

Code

{{scroll box
|content=
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}

Result

Template loop detected: Template:Scroll box

Alternative code

{{scroll box|
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}

Result

Template loop detected: Template:Scroll box</noinclude>

Alternative code

{{scroll box|
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}

Result

  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah
  • blah

Example

Code

{{scroll box
|content=
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}

Result

Template loop detected: Template:Scroll box

Alternative code

{{scroll box|
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}

Result

Template loop detected: Template:Scroll box</noinclude>