Template:Scrolling map: Difference between revisions

Template page
w:c:strategywiki>Rocky
m (right place in templates)
w:c:strategywiki>DrBob
(Expanded)
Line 1: Line 1:
<div style="height: {{{2}}}px; width: {{{3}}}px; overflow: auto;">[[Image:{{{1}}}]]</div><noinclude>
<includeonly><div style="{{#if:{{{2|}}}|height:{{{2}}}px;}}{{#if:{{{3|}}}|width:{{{3}}}px;}}overflow:auto">[[Image:{{{1}}}]]</div></includeonly><noinclude>For displaying large side-scrolling maps in a useful fashion.


For displaying large side-scrolling maps in a useful fashion.
==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''
 
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>

Revision as of 14:49, 3 July 2007

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

Usage

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

Parameters

  1. Image name (don't include the "Image:")
  2. Height constraint (in pixels, without the "px") — optional
  3. Width constraint (in pixels, without the "px") — optional

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.