Difference between revisions of "Template:UO Image"

m (Undo revision 272877 by BrianFreud (talk))
m
Line 174: Line 174:
 
Valid icons:
 
Valid icons:
 
* {{UO_Image|icon|Caution}} Caution
 
* {{UO_Image|icon|Caution}} Caution
 +
 +
== Common Images ==
 +
 +
</noinclude><includeonly>{{#ifeq: {{{1|}}}|image|<span class="verticalcenterimg">[[File:UO-Item-{{#switch: {{{2}}}
 +
| Batwing = 3960-0
 +
| Blackmoor = 3961-0
 +
| Black Pearl = 3962-0
 +
| Blood Moss = 3963-0
 +
| Bloodspawn = 3964-0
 +
| Bone = 3966-0
 +
| Brimstone = 3967-0
 +
| Daemon Blood = 3965-0
 +
| Daemon Bone = 3968-0
 +
| Dead Wood = 3984-0
 +
| Dragon's Blood = 16503-0
 +
| Dragon's Blood Old = 3970-0
 +
| Executioner's Cap = 3971-0
 +
| Eye of Newt = 3975-0
 +
| Fertile Dirt = 3969-0
 +
| Garlic = 3972-0
 +
| Ginseng = 3973-0
 +
| Grave Dust = 3983-0
 +
| Mandrake Root = 3974-0
 +
| Nightshade = 3976-0
 +
| Nox Crystal = 3982-0
 +
| Obsidian = 3977-0
 +
| Pig Iron = 3978-0
 +
| Pumice = 3979-0
 +
| Serpent's Scale = 3982-0
 +
| Spiders' Silk = 3981-0
 +
| Sulfurous Ash = 3980-0
 +
| Vial of Blood = 3965-0
 +
| Volcanic Ash = 3983-0
 +
| Wyrm's Heart = 3985-0
 +
}}.png|alt={{{2}}}]]</span>{{#ifeq: {{{3|}}}|no||&nbsp;[[UO:{{{2}}}]]}} }}</includeonly><noinclude>
 +
 +
<nowiki>{{UO_Image|image|itemname|text}}
 +
Where:
 +
itemname = the name of the item, one of:
 +
* Batwing
 +
* Blackmoor
 +
* Black Pearl
 +
* Blood Moss
 +
* Bloodspawn
 +
* Daemon Blood
 +
* Vial of Blood
 +
* Bone
 +
* Brimstone
 +
* Daemon Bone
 +
* Fertile Dirt
 +
* Dragon's Blood Old
 +
* Executioner's Cap
 +
* Garlic
 +
* Ginseng
 +
* Mandrake Root
 +
* Eye of Newt
 +
* Nightshade
 +
* Obsidian
 +
* Pig Iron
 +
* Pumice
 +
* Sulfurous Ash
 +
* Spiders' Silk
 +
* Nox Crystal
 +
* Serpent's Scale
 +
* Grave Dust
 +
* Volcanic Ash
 +
* Dead Wood
 +
* Wyrm's Heart
 +
* Dragon's Blood
 +
text: optional, use 'no' to suppress the descriptive text for the image being included.
 +
</nowiki>
 +
Examples:
 +
* <nowiki>{{UO_Image|image|Dragon's Blood}}</nowiki>: {{UO_Image|image|Dragon's Blood}}
 +
* <nowiki>{{UO_Image|image|Dead Wood|no}}</nowiki>: {{UO_Image|image|Dead Wood|no}}
 
</noinclude>
 
</noinclude>

Revision as of 17:14, 17 May 2017

Maps

{{UO_Image|map|facet|x|y|r|b|magnify=xxx|caption=xxx}}

Where:
facet = felucca, trammel, ilshenar, tokuno, ter mur, or eodon
x and y = coords of the center of the circle
r = 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
magnify=xxx = optional.  set 'xxx' to the amount to magnify the image. (2 = 200%, 3 = 300%, etc)
caption=xxx = optional.  set 'xxx' to the desired caption for the map

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:

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

Coordinates: 4550 x 2355


You can also use sextant coordinates.

{{UO_Image|map|facet|c|x|NS|y|EW|r|b}}

Where:
facet = felucca, trammel, ilshenar, tokuno, ter mur, or eodon
c = coordinate system: 
  • 1 = Britannia (Tram or Fel)
  • 2 = Lost Lands
  • 3 = Ilshenar
  • 4 = Malas
  • 5 = Tokuno
  • 6 = Ter Mur
  • 7 = Eodon
x and y = sextant coords of the center of the circle.  Use a comma to separate degrees from minutes.  (For 123o 8'N, you would use '123,8'.)
NS = N or S, whichever is applicable for the sextant location
EW = E or W, whichever is applicable for the sextant location
r = 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

Example:

Location on Ice Island at 123o 8'N 172o 59'W {{UO_Image|map|felucca|1|123,8|N|172,59|W|75|yes}}


Result:

MAP0-1v2.png

Coordinates: 3982 x 223



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

Common Images

{{UO_Image|image|itemname|text}} Where: itemname = the name of the item, one of: * Batwing * Blackmoor * Black Pearl * Blood Moss * Bloodspawn * Daemon Blood * Vial of Blood * Bone * Brimstone * Daemon Bone * Fertile Dirt * Dragon's Blood Old * Executioner's Cap * Garlic * Ginseng * Mandrake Root * Eye of Newt * Nightshade * Obsidian * Pig Iron * Pumice * Sulfurous Ash * Spiders' Silk * Nox Crystal * Serpent's Scale * Grave Dust * Volcanic Ash * Dead Wood * Wyrm's Heart * Dragon's Blood text: optional, use 'no' to suppress the descriptive text for the image being included. Examples:

  • {{UO_Image|image|Dragon's Blood}}: Dragon's Blood Dragon's Blood
  • {{UO_Image|image|Dead Wood|no}}: Dead Wood