|
Thanks for using our site! |
Template:ImgMap: Difference between revisions
From ranchstory
Jump to navigationJump to search
imported>Kiwibasket mNo edit summary |
imported>Kiwibasket mNo edit summary |
||
| (130 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
<pre> | <pre> | ||
{{ | {{ImgMap | ||
| IMGNAME= | | IMGNAME= | ||
| IMGWIDTH= | | IMGWIDTH= | ||
| IMGHEIGHT= | | IMGHEIGHT= | ||
| COLLAPSE=Yes | |||
| REDUCESIZE=Yes | |||
| COORDINATES= | | COORDINATES= | ||
| OVERLAY= | |||
}} | }} | ||
</pre> | </pre> | ||
Insert [[Template:MapCoord]] inside <code>COORDINATES</code>. | Insert [[Template:MapCoord]] inside <code>COORDINATES</code>. | ||
</noinclude><!-- | </noinclude><!-- | ||
--><includeonly><div class="imgwrapper" style="max-width: {{{IMGWIDTH}}}; max-height: {{{IMGHEIGHT}}};">{{{COORDINATES}}}</div></includeonly> | --><includeonly><div class="mapwrapper"><!-- | ||
--><p><div class="imgwrapper" style="max-width: {{#expr:{{{IMGWIDTH}}}{{#ifeq:{{{REDUCESIZE}}}|Yes|/4 * 3}}}}px; max-height: {{#expr:{{{IMGHEIGHT}}}{{#ifeq:{{{REDUCESIZE}}}|Yes|/4 * 3}}}}px;">[[File:{{{IMGNAME}}}|{{#expr:{{{IMGWIDTH}}}{{#ifeq:{{{REDUCESIZE}}}|Yes|/4 * 3}}}}px|link=]]{{{COORDINATES}}}{{#ifeq:{{{COLLAPSE}}}|Yes|<div class="mw-collapsible" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}">}}{{{OVERLAY|}}}{{#ifeq:{{{COLLAPSE}}}|Yes|</div>}}</div><!-- | |||
--><div style="float: right; padding: 0 0.3em;">[[File:Zoom.png|link=File:{{{IMGNAME}}}|Full image]]</div> | |||
<div align=center style="padding: 0.3em;"><big>''Click on an area above to jump to that location.''</big></div></div></includeonly> | |||
Latest revision as of 18:49, 21 June 2021
{{ImgMap
| IMGNAME=
| IMGWIDTH=
| IMGHEIGHT=
| COLLAPSE=Yes
| REDUCESIZE=Yes
| COORDINATES=
| OVERLAY=
}}
Insert Template:MapCoord inside COORDINATES.