Difference between revisions of "Template:UO Image"
BrianFreud (talk | contribs) m |
BrianFreud (talk | contribs) 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;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|}}} }} | + | <div><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 8: | Line 8: | ||
|ter mur=5 | |ter mur=5 | ||
|eodon=5 | |eodon=5 | ||
− | }}-1.png|link=]] </div>{{#ifeq:{{{6|}}}|yes|<br>{{{3}}}x{{{4}}} }}</div>}} | + | }}-1.png|link=]] </div></div>{{#ifeq:{{{6|}}}|yes|<br>Coordinates: {{{3}}} x {{{4}}} }}</div>}} |
</includeonly><noinclude> | </includeonly><noinclude> | ||
== Maps == | == Maps == |
Revision as of 16:21, 4 September 2016
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|felucca|4550|2355|75|yes}}
Result:
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:
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:
Caution