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
No edit summary
imported>Kiwibasket
No 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}}%; height: {{#expr:( {{{ICONHEIGHT}}} / {{{IMGHEIGHT}}}) *100}}%;}}">[[File:{{#if:{{{ICON|}}}|{{{ICON}}}|transparent.png{{!}}{{#expr:{{{x2}}}-{{{x1}}}}}x{{#expr:{{{y2}}}-{{{y1}}}}}px }}|link={{{LINK|}}}]]</div></includeonly>
--><includeonly><div class="imglink" style="left: {{#expr:(( {{{x1}}} / {{{IMGWIDTH}}} )*100)/3 * 4 }}%; top: {{#expr:(( {{{y1}}} / {{{IMGHEIGHT}}} )*100)/3 * 4 }}%; {{#if:{{{x2|}}}{{{y2|}}}|width: {{#expr:((( {{{x2}}}-{{{x1}}} ) / {{{IMGWIDTH}}} )*100)/3 * 4 }}%; height: {{#expr:((( {{{y2}}}-{{{y1}}} ) / {{{IMGHEIGHT}}} )*100)/3 * 4 }}%;}}{{#if:{{{ICON|}}}|width: {{#expr:(( {{{ICONWIDTH}}} / {{{IMGWIDTH}}}) *100)/3 * 4}}%; height: {{#expr:(( {{{ICONHEIGHT}}} / {{{IMGHEIGHT}}}) *100)/3 * 4}}%;}}">[[File:{{#if:{{{ICON|}}}|{{{ICON}}}|transparent.png{{!}}{{#expr:{{{x2}}}-{{{x1}}}}}x{{#expr:{{{y2}}}-{{{y1}}}}}px }}|link={{{LINK|}}}]]</div></includeonly>

Revision as of 11:41, 19 June 2021

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

Use inside Template:MobileImgMap.