Template:Scroll: Difference between revisions
Jump to navigation
Jump to search
Want an adless experience? Log in or Create an account.
mNo edit summary |
(switched to max-width/height so it doesn't take up space if it doesn't need to) |
||
Line 1: | Line 1: | ||
<onlyinclude><div style="overflow: auto; width: {{{width| | <onlyinclude><div style="overflow: auto; max-width: {{{width|none}}}; max-height: {{{height|none}}};">{{{1|}}}</div></onlyinclude> | ||
==Purpose== | ==Purpose== | ||
Line 6: | Line 6: | ||
==Usage== | ==Usage== | ||
{{Usage|width{{=}}|height{{=}}|content}} | {{Usage|width{{=}}|height{{=}}|content}} | ||
{{Usage/Param|width| | {{Usage/Param|width|Maximum width value (e.g. "300px")|optional|none}} | ||
{{Usage/Param|height| | {{Usage/Param|height|Maximum height value (e.g. "300px")|optional|none}} | ||
{{Usage/Param|content|The content to which to apply this wrapper}} | {{Usage/Param|content|The content to which to apply this wrapper}} | ||
{{Cat|Utility Templates}} | {{Cat|Utility Templates}} |
Latest revision as of 22:25, February 23, 2013
Purpose
This is a "decorator" that wraps content with a scroll-bar window.
Usage
{{Scroll| width= | height= | content }}
- width — Maximum width value (e.g. "300px") (Optional. Default: none)
- height — Maximum height value (e.g. "300px") (Optional. Default: none)
- content — The content to which to apply this wrapper