Template:Scrolling map/Documentation: Difference between revisions

Template page
w:c:strategywiki>Garrett
 
m (2 revisions imported: Imported from https://strategywiki.org/)
 
(One intermediate revision by one other user not shown)
Line 9: Line 9:
# Height constraint (in pixels, without the "px") — ''optional''
# Height constraint (in pixels, without the "px") — ''optional''
# Width constraint (in pixels, without the "px") — ''optional''
# Width constraint (in pixels, without the "px") — ''optional''
There is also an optional parameter: <tt>imagewidth</tt> to modify the size of the image itself, rather than the boundaries of the scrollbox.
 
;Optional
*<tt>imagewidth</tt> to modify the size of the image itself, rather than the boundaries of the scrollbox.
*<tt>float</tt>: specify left or right.


If width/height aren't specified, the image will expand to either its full width/height, or the width of the page (whichever comes first). Height can't be constrained by the page.
If width/height aren't specified, the image will expand to either its full width/height, or the width of the page (whichever comes first). Height can't be constrained by the page.
<noinclude>[[Category:Template documentation|S]]</noinclude>
<noinclude>[[Category:Template documentation|S]]</noinclude>

Latest revision as of 18:27, 28 October 2023

For displaying large side-scrolling maps in a useful fashion.

Usage[edit source]

{{Scrolling map|imagename.jpg|300|500}}

Parameters[edit source]

  1. Image name (don't include the "File:")
  2. Height constraint (in pixels, without the "px") — optional
  3. Width constraint (in pixels, without the "px") — optional
Optional
  • imagewidth to modify the size of the image itself, rather than the boundaries of the scrollbox.
  • float: specify left or right.

If width/height aren't specified, the image will expand to either its full width/height, or the width of the page (whichever comes first). Height can't be constrained by the page.