Jump to content

Template:Scrollbox: Difference between revisions

From Monster Girl Encyclopedia
imported>Ochiverde
m Protected "Template:Scrollbox" (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite))
imported>Soyjak.party
No edit summary
Line 1: Line 1:
<div style="background-color:{{{bgcolor|transparent}}}; border-width:{{{bwidth|1px}}}; border-style:{{{bstyle|solid}}}; border-color:{{{bcolor|#aaaaaa}}}; padding:{{{padding|1px}}}; width:{{{width|auto}}}; height:{{{height|20em}}}; overflow:{{{overflow|auto}}}">
{{{content|}}}
</div><noinclude>


==Usage==
*Use this template to insert a scrollable textarea into a page.
*Do '''not''' subst: this template, but rather insert it in the manner described below.
<table><tr valign="top"><td>
{|class="wikitable mw-collapsible"
!colspan="2"|Template parameters
|-
!bgcolor
|Background color
|-
!bwidth
|Border width
|-
!bstyle
|Border style
|-
!bcolor
|Border color
|-
!padding
|Padding
|-
!width
|Width
|-
!height
|Height
|-
!overflow
|Overflow status
|-
!content
|Main text area for content
|}
</td><td>
{|class="wikitable mw-collapsible"
|-
!colspan="2"|Default values
|-
!bgcolor
|transparent
|-
!bwidth
|1px
|-
!bstyle
|solid
|-
!bcolor
|#aaaaaa
|-
!padding
|10px
|-
!width
|auto
|-
!height
|20em
|-
!overflow
|auto
|-
!content
|(none)
|}
</td><td>
<pre style="overflow:auto">
{{Scrollbox
|bgcolor=
|bwidth=
|bstyle=
|bcolor=
|padding=
|width=
|height=
|overflow=
|content=
}}
</pre>
*All parameters are optional except '''content'''.
</td></tr></table>
[[Category:Utility templates|{{PAGENAME}}]]
</noinclude>

Revision as of 19:05, 14 April 2024