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
mNo edit summary
imported>Kiwibasket
mNo edit summary
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
<pre>
<pre>
{{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= | ALTTEXT= | ICON= | ICONWIDTH= | ICONHEIGHT= | ICONRESIZE=Yes }}
</pre>
</pre>
Use inside [[Template:MobileImgMap]].
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}}}|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>
--><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>

Latest revision as of 11:46, 20 June 2021

location area: {{MapCoord | IMGWIDTH= | IMGHEIGHT= | x1= | y1= | x2= | y2= | LINK= | ALTTEXT= }}
icons: {{MapCoord | IMGWIDTH= | IMGHEIGHT= | x1= | y1= | ALTTEXT= | ICON= | ICONWIDTH= | ICONHEIGHT= | ICONRESIZE=Yes }}

Use inside Template:ImgMap.