Difference between revisions of "Template:Scroll"

From Zelda Dungeon Wiki
Jump to navigation Jump to search
m
(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|auto}}}; height: {{{height|auto}}};">{{{1|}}}</div></onlyinclude>
+
<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|Fixed width value (e.g. "300px")|optional|auto}}
+
{{Usage/Param|width|Maximum width value (e.g. "300px")|optional|none}}
{{Usage/Param|height|Fixed height value (e.g. "300px")|optional|auto}}
+
{{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