Thanks for using our site!

If you're looking to become an editor, please read the Becoming an Editor section carefully.

Template:MapCoord: Difference between revisions

From ranchstory
Jump to navigationJump to search
imported>Kiwibasket
mNo edit summary
imported>Kiwibasket
mNo edit summary
Line 13: Line 13:
Use inside [[Template:MobileImgMap]].
Use inside [[Template:MobileImgMap]].
</noinclude><!--
</noinclude><!--
--><includeonly><div class="imglink" style="width: {{#expr: {{{x1}}} / {{{IMGWIDTH}}} }}%; height: {{#expr: {{{y1}}} / {{{IMGHEIGHT}}} }}%; left: {{#expr:( {{{x2}}}-{{{x1}}} ) / {{{IMGWIDTH}}} }}%; top: {{#expr:( {{{y2}}}-{{{y1}}} ) / {{{IMGHEIGHT}}} }}%;">[[File:transparent.png|link={{{LINK}}}]]</div></includeonly>
--><includeonly><div class="imglink" style="width: {{#expr:( {{{x1}}} / {{{IMGWIDTH}}} )*100 }}%; height: {{#expr:( {{{y1}}} / {{{IMGHEIGHT}}} )*100 }}%; left: {{#expr:(( {{{x2}}}-{{{x1}}} ) / {{{IMGWIDTH}}} )*100 }}%; top: {{#expr:(( {{{y2}}}-{{{y1}}} ) / {{{IMGHEIGHT}}} )*100 }}%;">[[File:transparent.png|link={{{LINK}}}]]</div></includeonly>

Revision as of 20:25, 18 June 2021

{{MapCoord
| IMGWIDTH=
| IMGHEIGHT=
| x1=
| y1=
| x2=
| y2=
| LINK=
}}

Use inside Template:MobileImgMap.