Difference between revisions of "Template:UO Image"

m
m
Line 1: Line 1:
 
<includeonly>{{#ifeq: {{{1|}}}|map|
 
<includeonly>{{#ifeq: {{{1|}}}|map|
<div style="position: relative;width:{{#expr:{{{5|175}}}*2}}px;height:{{#expr:{{{5|175}}}*2}}px;overflow: hidden;"><div style="-webkit-clip-path: circle({{{5|175}}}px at {{{3}}}px {{{4}}}px); transform: translate({{#expr: {{{5|175}}}-{{{3}}} }}px,{{#expr: {{{5|175}}}-{{{4}}} }}px);">[[File:MAP{{#switch: {{lc:{{{2|}}} }}
+
<div style="position: relative;width:{{#expr:{{{5|175}}}*2}}px;height:{{#expr:{{{5|175}}}*2}}px;overflow: hidden;inline-block;"><div style="-webkit-clip-path: circle({{{5|175}}}px at {{{3}}}px {{{4}}}px); clip-path: circle({{{5|175}}}px at {{{3}}}px {{{4}}}px); transform: translate({{#expr: {{{5|175}}}-{{{3}}} }}px,{{#expr: {{{5|175}}}-{{{4}}} }}px);">[[File:MAP{{#switch: {{lc:{{{2|}}} }}
 
|felucca=0
 
|felucca=0
 
|trammel=1
 
|trammel=1
Line 20: Line 20:
 
Examples:
 
Examples:
 
Vesper {{UO_Image|map|felucca|2926|842|215}}
 
Vesper {{UO_Image|map|felucca|2926|842|215}}
Kotl City {{UO_Image|map|eodon|369|155|126}}
+
Kotl City {{UO_Image|map|eodon|369|155|128}}
 
</nowiki>
 
</nowiki>
 
Result:
 
Result:
{{UO_Image|map|felucca|2926|842|215}} {{UO_Image|map|eodon|369|155|126}}
+
{{UO_Image|map|felucca|2926|842|215}} {{UO_Image|map|eodon|369|155|128}}
 
</noinclude>
 
</noinclude>

Revision as of 21:47, 17 August 2016


Maps

{{UO_Image|map|facet|x|y|w}}
Where:
facet = felucca, trammel, ilshenar, tokuno, ter mur, or eodon
x and y = coords of the center of the circle
w = the radius of the circle to draw (in pixels)

Examples:
Vesper {{UO_Image|map|felucca|2926|842|215}}
Kotl City {{UO_Image|map|eodon|369|155|128}}

Result:

MAP0-1v2.png
MAP5-1v2.png