Difference between revisions of "Template:UO Image"

m
m
Line 30: Line 30:
 
name = the name of the shard
 
name = the name of the shard
 
link = optional, the name of the page you want linked to from the image.
 
link = optional, the name of the page you want linked to from the image.
size = optional, size in pixels.  By default it is 120px.
+
size = optional, size in pixels.  By default it is 60px.
  
 
Examples:
 
Examples:
Line 40: Line 40:
 
Result:
 
Result:
 
{{UO_Image|shard|Baekdu}} {{UO_Image|shard|Chesapeake}} {{UO_Image|shard|Formosa}} {{UO_Image|shard|Yamato|60}}
 
{{UO_Image|shard|Baekdu}} {{UO_Image|shard|Chesapeake}} {{UO_Image|shard|Formosa}} {{UO_Image|shard|Yamato|60}}
 +
</noinclude><includeonly>{{#ifeq: {{{1|}}}|icon|[[File:UO-image-icon-{{ucfirst: {{{2}}} }}.png|{{{3|40}}}px|link={{{link|}}}]]}}</includeonly><noinclude>
 +
 +
== Icons ==
 +
<nowiki>{{UO_Image|icon|name|size}}
 +
Where:
 +
name = the name of the icon
 +
size = optional, size in pixels.  By default it is 40px.
 +
</nowiki>
 +
Valid icons:
 +
* {{UO_Image|icon|Caution}} Caution
 
</noinclude>
 
</noinclude>

Revision as of 15:54, 31 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|577|2371|153}}
Sea Market {{UO_Image|map|felucca|4550|2355|75}}

Result:

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


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:

UO-image-shard-Baekdu.png UO-image-shard-Chesapeake.png UO-image-shard-Formosa.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:

UO-image-icon-Caution.png Caution