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
Created page with "<div class="imglink" style="width: {{#expr: {{{x1}}} / {{{IMGWIDTH}}} }}%; height: {{#expr: {{{y1}}} / {{{IMGHEIGHT}}} }}%; left: {{#expr:( {{{x2}}}-{{{x1}}} ) / {{{IMGWIDTH}}..."
 
imported>Kiwibasket
mNo edit summary
 
(72 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="imglink" style="width: {{#expr: {{{x1}}} / {{{IMGWIDTH}}} }}%; height: {{#expr: {{{y1}}} / {{{IMGHEIGHT}}} }}%; left: {{#expr:( {{{x2}}}-{{{x1}}} ) / {{{IMGWIDTH}}} }}%; top: {{#expr:( {{{y2}}}-{{{y1}}} ) / {{{IMGHEIGHT}}} }}%;">[[File:transparent.png|link={{{LINK}}}]]</div>
<noinclude>
<pre>
location area: {{MapCoord | IMGWIDTH= | IMGHEIGHT= | x1= | y1= | x2= | y2= | LINK= | ALTTEXT= }}
icons: {{MapCoord | IMGWIDTH= | IMGHEIGHT= | x1= | y1= | ALTTEXT= | ICON= | ICONWIDTH= | ICONHEIGHT= | ICONRESIZE=Yes }}
</pre>
Use inside [[Template:ImgMap]].
</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:{{{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.