Template:Scroll box: Difference between revisions

From PCSX2 Wiki
Jump to navigation Jump to search
(Scroll Box for possible Galleries on pages. W.I.P.)
 
 
(10 intermediate revisions by the same user not shown)
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:230px; width:{{{width|100%}}};  -moz-border-radius-topleft:0.5em; border:1px solid #d5d5d5; 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|100%}}}; width:{{{width|100%}}};  -moz-border-radius-topleft:0.5em; border:1px solid #d5d5d5; padding-left:0.5em; background:transparent;">
{{{content|{{{1}}}}}}
{{{content|{{{1}}}}}}
</div></td><td style="width:8px;"></td></tr></table><noinclude>
</div></td><td style="width:8px;"></td></tr></table><noinclude>
Line 11: Line 11:
}}
}}
</nowiki></pre>
</nowiki></pre>
NOTE: An optional '''width''' variable can be used to control the width of the scroll box:
<pre>
{{scroll box
|width=75%
|content=
}}
</pre>


==Example==
==Example==
Line 66: Line 57:




===Alternative code===
===Alternative code to manipulate size of box (Necessary for making scrolling galleries)===
'''NOTE:''' If you want the box to automatically adjust to whatever content is in there, simply remove the height and width sections.
<pre>
<pre>
{{scroll box|
{{scroll box
|width=??px
|height=??px
|content=
*AltTest
*AltTest
*AltTest
*AltTest
Line 87: Line 82:
</pre>
</pre>


===Result===
{{scroll box
{{scroll box|
|width=600px
|height=235px
|content=
*AltTest
*AltTest
*AltTest
*AltTest

Latest revision as of 09:24, 1 December 2014

{{{1}}}


Usage instructions

{{scroll box
|content=

}}

Example

Code

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

Result

  • Test
  • Test
  • Test
  • Test
  • Test
  • Test
  • Test
  • Test
  • Test
  • Test
  • Test
  • Test
  • Test
  • Test
  • Test


Alternative code to manipulate size of box (Necessary for making scrolling galleries)

NOTE: If you want the box to automatically adjust to whatever content is in there, simply remove the height and width sections.

{{scroll box
|width=??px
|height=??px
|content=
*AltTest
*AltTest
*AltTest
*AltTest
*AltTest
*AltTest
*AltTest
*AltTest
*AltTest
*AltTest
*AltTest
*AltTest
*AltTest
*AltTest
*AltTest
}}
  • AltTest
  • AltTest
  • AltTest
  • AltTest
  • AltTest
  • AltTest
  • AltTest
  • AltTest
  • AltTest
  • AltTest
  • AltTest
  • AltTest
  • AltTest
  • AltTest
  • AltTest