|
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 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
<pre> | <pre> | ||
location area: {{MapCoord | IMGWIDTH= | IMGHEIGHT= | x1= | y1= | x2= | y2= | LINK= | | location area: {{MapCoord | IMGWIDTH= | IMGHEIGHT= | x1= | y1= | x2= | y2= | LINK= | ALTTEXT= }} | ||
icons: {{MapCoord | IMGWIDTH= | IMGHEIGHT= | x1= | y1= | | icons: {{MapCoord | IMGWIDTH= | IMGHEIGHT= | x1= | y1= | ALTTEXT= | ICONWIDTH= | ICONHEIGHT= | ICONRESIZE=Yes }} | ||
</pre> | </pre> | ||
Use inside [[Template:ImgMap]]. | Use inside [[Template:ImgMap]]. | ||
</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}}}|Yes|width: {{#expr:(( {{{ICONWIDTH}}} / {{{IMGWIDTH}}}) *100)}}%; height: {{#expr:(( {{{ICONHEIGHT}}} / {{{IMGHEIGHT}}}) *100)}}%;|width: {{#expr:((( {{{ICONWIDTH}}} *1.5 )/ {{{IMGWIDTH}}}) *100)}}%; height: {{#expr:((( {{{ICONHEIGHT}}}*1.5) / {{{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:{{{ | --><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}}}|Yes|width: {{#expr:(( {{{ICONWIDTH}}} / {{{IMGWIDTH}}}) *100)}}%; height: {{#expr:(( {{{ICONHEIGHT}}} / {{{IMGHEIGHT}}}) *100)}}%;|width: {{#expr:((( {{{ICONWIDTH}}} *1.5 )/ {{{IMGWIDTH}}}) *100)}}%; height: {{#expr:((( {{{ICONHEIGHT}}}*1.5) / {{{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:{{{ALTTEXT|}}}|{{!}}{{{ALTTEXT}}} }}]]</div></includeonly> | ||
Revision as of 11:35, 20 June 2021
location area: {{MapCoord | IMGWIDTH= | IMGHEIGHT= | x1= | y1= | x2= | y2= | LINK= | ALTTEXT= }}
icons: {{MapCoord | IMGWIDTH= | IMGHEIGHT= | x1= | y1= | ALTTEXT= | ICONWIDTH= | ICONHEIGHT= | ICONRESIZE=Yes }}
Use inside Template:ImgMap.