Difference between revisions of "Template:UO Image"

m
m
Line 1: Line 1:
<includeonly>{{#ifeq: {{{1|}}}|map|
+
{{UO_Image|map|felucca|1|123,8|N|172,59|W|75|yes}}
<div style="display:inline;"><div style="position: relative;width:{{#expr:{{{5|175}}}*2}}px;height:{{#expr:{{{5|175}}}*2}}px;overflow: hidden;display: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|}}} }}
+
 
 +
<includeonly>{{#ifeq: {{{1|}}}|map|{{#ifexpr:{{#ifeq:{{{5}}}|N|1|0}} or {{#ifeq:{{{5}}}|S|1|0}}|convert|
 +
<div style="display:inline-block;"><div style="position: relative;width:{{#expr:{{{5|175}}}*2}}px;height:{{#expr:{{{5|175}}}*2}}px;overflow: hidden;display: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 21: Line 23:
 
Vesper {{UO_Image|map|felucca|2926|842|215}}
 
Vesper {{UO_Image|map|felucca|2926|842|215}}
 
Kotl City {{UO_Image|map|eodon|577|2371|153}}
 
Kotl City {{UO_Image|map|eodon|577|2371|153}}
Sea Market {{UO_Image|map|felucca|4550|2355|75|yes}}
+
Sea Market {{UO_Image|map|trammel|4550|2355|75|yes}}
 
</nowiki>
 
</nowiki>
 
Result:
 
Result:
{{UO_Image|map|felucca|2926|842|215}} {{UO_Image|map|eodon|577|2371|153}} {{UO_Image|map|felucca|4550|2355|75|yes}}
+
{{UO_Image|map|felucca|2926|842|215}} {{UO_Image|map|eodon|577|2371|153}} {{UO_Image|map|trammel|4550|2355|75|yes}}
 
</noinclude><includeonly>{{#ifeq: {{{1|}}}|shard|[[File:UO-image-shard-{{ucfirst: {{{2}}} }}.png|{{{3|120}}}px|link={{{link|}}}]]}}</includeonly><noinclude>
 
</noinclude><includeonly>{{#ifeq: {{{1|}}}|shard|[[File:UO-image-shard-{{ucfirst: {{{2}}} }}.png|{{{3|120}}}px|link={{{link|}}}]]}}</includeonly><noinclude>
 
== Shard Shields ==
 
== Shard Shields ==

Revision as of 16:29, 4 September 2016

Template loop detected: Template:UO Image

{{#ifeq: map|map|convert


Maps

{{UO_Image|map|facet|x|y|w|b}}
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)
b = optional, set to 'yes' to also show the coordinates of the center of the circle

Examples:
Vesper {{UO_Image|map|felucca|2926|842|215}}
Kotl City {{UO_Image|map|eodon|577|2371|153}}
Sea Market {{UO_Image|map|trammel|4550|2355|75|yes}}

Result: Template loop detected: Template:UO Image

{{#ifeq: map|map|

MAP0-1v2.png
Template loop detected: Template:UO Image

{{#ifeq: map|map|

MAP5-1v2.png
Template loop detected: Template:UO Image

{{#ifeq: map|map|

MAP1-1v2.png

Coordinates: 4550 x 2355


Shard Shields

{{UO_Image|shard|name|size}}
Where:
name = the name of the shard
link = optional, the name of the page you want linked to from the image.
size = optional, size in pixels.  By default it is 60px.

Examples:
Baekdu: {{UO_Image|shard|Baekdu}}
Chesapeake: {{UO_Image|shard|Chesapeake}}
Formosa: {{UO_Image|shard|Formosa}}
Yamato: {{UO_Image|shard|Yamato|60}}

Result: Template loop detected: Template:UO Image

{{#ifeq: shard|map|

<div style="-webkit-clip-path: circle(175px at {{{3}}}px {{{4}}}px); clip-path: circle(175px at {{{3}}}px {{{4}}}px); transform: translate(Expression error: Unrecognized punctuation character "{".px,Expression error: Unrecognized punctuation character "{".px);">File:MAP-1.png

UO-image-shard-Baekdu.png Template loop detected: Template:UO Image

{{#ifeq: shard|map|

<div style="-webkit-clip-path: circle(175px at {{{3}}}px {{{4}}}px); clip-path: circle(175px at {{{3}}}px {{{4}}}px); transform: translate(Expression error: Unrecognized punctuation character "{".px,Expression error: Unrecognized punctuation character "{".px);">File:MAP-1.png

UO-image-shard-Chesapeake.png Template loop detected: Template:UO Image

{{#ifeq: shard|map|

<div style="-webkit-clip-path: circle(175px at {{{3}}}px {{{4}}}px); clip-path: circle(175px at {{{3}}}px {{{4}}}px); transform: translate(Expression error: Unrecognized punctuation character "{".px,Expression error: Unrecognized punctuation character "{".px);">File:MAP-1.png

UO-image-shard-Formosa.png Template loop detected: Template:UO Image

{{#ifeq: shard|map|

<div style="-webkit-clip-path: circle(175px at 60px {{{4}}}px); clip-path: circle(175px at 60px {{{4}}}px); transform: translate(115px,Expression error: Unrecognized punctuation character "{".px);">File:MAP-1.png

UO-image-shard-Yamato.png


Icons

{{UO_Image|icon|name|size}}
Where:
name = the name of the icon
size = optional, size in pixels.  By default it is 40px.
 

Valid icons:

{{#ifeq: icon|map|

<div style="-webkit-clip-path: circle(175px at {{{3}}}px {{{4}}}px); clip-path: circle(175px at {{{3}}}px {{{4}}}px); transform: translate(Expression error: Unrecognized punctuation character "{".px,Expression error: Unrecognized punctuation character "{".px);">File:MAP-1.png

UO-image-icon-Caution.png Caution