|
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 5: | Line 5: | ||
Use inside [[Template:MobileImgMap]]. | Use inside [[Template:MobileImgMap]]. | ||
</noinclude><!-- | </noinclude><!-- | ||
--><includeonly><div class="imglink" style="left: {{#expr:(( {{{x1}}} / {{{IMGWIDTH}}} )*100) }}%; top: {{#expr:(( {{{y1}}} / {{{IMGHEIGHT}}} )*100) }}%; {{#if:{{{x2|}}}{{{y2|}}}|width: {{#expr:((( {{{x2}}}-{{{x1}}} ) / {{{IMGWIDTH}}} )*100) }}%; height: {{#expr:((( {{{y2}}}-{{{y1}}} ) / {{{IMGHEIGHT}}} )*100) }}%;}}{{#if:{{{ICON|}}}|{{#ifeq:{{{ICONRESIZE}}}|No| |width: {{#expr:(( {{{ICONWIDTH}}} / {{{IMGWIDTH}}}) *100)}}%; height: {{#expr:(( {{{ICONHEIGHT}}} / {{{IMGHEIGHT}}}) *100)}}%;}}}} {{#ifeq:{{{GUIDE}}}|Yes|border: 1px solid red;}}">[[File:{{#if:{{{ICON|}}}|{{{ICON}}}|transparent.png{{!}}{{#expr:{{{x2}}}-{{{x1}}}}}x{{#expr:{{{y2}}}-{{{y1}}}}}px }}|link={{{LINK|}}}{{#if:{{{ICONTEXT|}}}|{{!}}{{{ICONTEXT}}} }}]]</div></includeonly> | --><includeonly><div class="imglink" style="left: {{#expr:(( {{{x1}}} / {{{IMGWIDTH}}} )*100) }}%; top: {{#expr:(( {{{y1}}} / {{{IMGHEIGHT}}} )*100) }}%; {{#if:{{{x2|}}}{{{y2|}}}|width: {{#expr:((( {{{x2}}}-{{{x1}}} ) / {{{IMGWIDTH}}} )*100) }}%; height: {{#expr:((( {{{y2}}}-{{{y1}}} ) / {{{IMGHEIGHT}}} )*100) }}%;}}{{#if:{{{ICON|}}}|{{#ifeq:{{{ICONRESIZE}}}|No|width:{{{ICONWIDTH}}}; height: {{{ICONHEIGHT}}} | width: {{#expr:(( {{{ICONWIDTH}}} / {{{IMGWIDTH}}}) *100)}}%; height: {{#expr:(( {{{ICONHEIGHT}}} / {{{IMGHEIGHT}}}) *100)}}%;}}}} {{#ifeq:{{{GUIDE}}}|Yes|border: 1px solid red;}}">[[File:{{#if:{{{ICON|}}}|{{{ICON}}}|transparent.png{{!}}{{#expr:{{{x2}}}-{{{x1}}}}}x{{#expr:{{{y2}}}-{{{y1}}}}}px }}|link={{{LINK|}}}{{#if:{{{ICONTEXT|}}}|{{!}}{{{ICONTEXT}}} }}]]</div></includeonly> | ||
Revision as of 00:28, 20 June 2021
{{MapCoord | IMGWIDTH= | IMGHEIGHT= | x1= | y1= | x2= | y2= | LINK= }}
Use inside Template:MobileImgMap.