|
Thanks for using our site! |
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="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|}}}|width: {{#expr:( {{{ICONWIDTH}}} / {{{IMGWIDTH}}}) *100}}%;}}">[[File:{{#if:{{{ICON|}}}|{{{ICON}}}|transparent.png}}|link={{#if:{{{LINK|}}}|{{{LINK}}}}}]]</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|}}}|width: {{#expr:( {{{ICONWIDTH}}} / {{{IMGWIDTH}}}) *100}}%; height: {{#expr:( {{{ICONHEIGHT}}} / {{{IMGHEIGHT}}}) *100}}%;}}">[[File:{{#if:{{{ICON|}}}|{{{ICON}}}|transparent.png}}|link={{#if:{{{LINK|}}}|{{{LINK}}}}}]]</div></includeonly> | ||
Revision as of 00:48, 19 June 2021
{{MapCoord
| IMGWIDTH=
| IMGHEIGHT=
| x1=
| y1=
| x2=
| y2=
| LINK=
}}
Use inside Template:MobileImgMap.