|
Thanks for using our site! |
Template:MapCoord: Difference between revisions
From ranchstory
Jump to navigationJump to search
imported>Kiwibasket No 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="left: {{#expr:(( {{{x1}}} / {{{IMGWIDTH}}} )*100)/3 | --><includeonly><div class="imglink" style="left: {{#expr:(( {{{x1}}} / {{{IMGWIDTH}}} )*100)/4 * 3 }}%; top: {{#expr:(( {{{y1}}} / {{{IMGHEIGHT}}} )*100)/4 * 3 }}%; {{#if:{{{x2|}}}{{{y2|}}}|width: {{#expr:((( {{{x2}}}-{{{x1}}} ) / {{{IMGWIDTH}}} )*100)/4 * 3 }}%; height: {{#expr:((( {{{y2}}}-{{{y1}}} ) / {{{IMGHEIGHT}}} )*100)/4 * 3 }}%;}}{{#if:{{{ICON|}}}|width: {{#expr:(( {{{ICONWIDTH}}} / {{{IMGWIDTH}}}) *100)/4 * 3}}%; height: {{#expr:(( {{{ICONHEIGHT}}} / {{{IMGHEIGHT}}}) *100)/4 * 3}}%;}}">[[File:{{#if:{{{ICON|}}}|{{{ICON}}}|transparent.png{{!}}{{#expr:{{{x2}}}-{{{x1}}}}}x{{#expr:{{{y2}}}-{{{y1}}}}}px }}|link={{{LINK|}}}]]</div></includeonly> | ||
Revision as of 11:42, 19 June 2021
{{MapCoord
| IMGWIDTH=
| IMGHEIGHT=
| x1=
| y1=
| x2=
| y2=
| LINK=
}}
Use inside Template:MobileImgMap.