Template:Scrolling map: Difference between revisions

Template page
w:c:strategywiki>Najzere
m (minor fix)
m (17 revisions imported: Imported from https://strategywiki.org/)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div style="{{#if:{{{2|}}}|height:{{{2}}}px;}}{{#if:{{{3|}}}|width:{{{3}}}px;}}overflow:auto">[[Image:{{{1}}}|{{{imagewidth|{{{1}}}}}}]]</div></includeonly><noinclude>For displaying large side-scrolling maps in a useful fashion.
<includeonly><div style="margin-right:10px;{{#if:{{{2|}}}|height:{{{2}}}px;}}{{#if:{{{3|}}}|width:{{{3}}}px;}}overflow:auto;{{#if:{{{float|}}}|float:{{{float}}};|}}">[[File:{{{1}}}|{{{imagewidth|{{{1}}}}}}]]</div></includeonly><noinclude>{{Documentation}}
 
==Usage==
 
<pre>{{Scrolling map|imagename.jpg|300|500}}</pre>
 
===Parameters===
# Image name ('''don't''' include the "Image:")
# Height 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.
 
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.
 
[[Category:Templates|S]]</noinclude>
[[Category:Templates|S]]</noinclude>

Latest revision as of 18:27, 28 October 2023

This page has been transcluded from Template:Scrolling map/Documentation.


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.