Difference between revisions of "Template:UO Image"

m
m
 
(48 intermediate revisions by the same user not shown)
Line 81: Line 81:
 
-->{{#if: {{{magnify|}}}|transform:scale({{{magnify|1}}})<!--
 
-->{{#if: {{{magnify|}}}|transform:scale({{{magnify|1}}})<!--
 
-->{{#vardefine: translate|{{#expr: {{#expr: {{{magnify}}} - 1}} * {{#var: pixels}} }} }}<!--
 
-->{{#vardefine: translate|{{#expr: {{#expr: {{{magnify}}} - 1}} * {{#var: pixels}} }} }}<!--
-->translate({{#var:translate}}px,{{#var:translate}}px);<!--
+
--> {{#if:{{{sepia|}}}|rotate(45deg)}} translate({{#var:translate}}px,{{#var:translate}}px);<!--
 
-->{{#vardefine: diameter|{{#expr: {{{magnify}}} * {{#expr: {{#var:pixels}} * 2}} }} }}<!--
 
-->{{#vardefine: diameter|{{#expr: {{{magnify}}} * {{#expr: {{#var:pixels}} * 2}} }} }}<!--
 
-->width:{{#var: diameter}}px;height:{{#var: diameter}}px;<!--
 
-->width:{{#var: diameter}}px;height:{{#var: diameter}}px;<!--
 
-->|width:{{#expr:{{#var:pixels}}*2}}px;height:{{#expr:{{#var:pixels}}*2}}px;}}
 
-->|width:{{#expr:{{#var:pixels}}*2}}px;height:{{#expr:{{#var:pixels}}*2}}px;}}
"><div style="-webkit-clip-path: circle({{#var:pixels}}px at {{#var:x}}px {{#var:y}}px); clip-path: circle({{#var:pixels}}px at {{#var:x}}px {{#var:y}}px); transform: translate({{#expr: {{#var:pixels}}-{{#var:x}} }}px,{{#expr: {{#var:pixels}}-{{#var:y}} }}px);">[[File:MAP{{#switch: {{lc:{{{2|}}} }}|felucca=0
+
">{{#vardefine:map|{{{2}}} }}<div {{#if:{{{blur|}}}|class="blur"}} data-pixels={{#var:pixels}} style="clip-path: circle({{#var:pixels}}px at {{#var:x}}px {{#var:y}}px); transform: translate({{#expr: {{#var:pixels}}-{{#var:x}} }}px,{{#expr: {{#var:pixels}}-{{#var:y}} }}px); width:{{#switch: {{#var:map}}
 +
| felucca = 7168
 +
| trammel = 7168
 +
| lost lands = 7168
 +
| ilshenar = 2304
 +
| malas = 2560
 +
| tokuno = 1448
 +
| ter mur = 1280
 +
| eodon = 1280
 +
}}px; height:{{#switch: {{#var:map}}
 +
| felucca = 4096
 +
| trammel = 4096
 +
| lost lands = 4096
 +
| ilshenar = 1600
 +
| malas = 2048
 +
| tokuno = 1448
 +
| ter mur = 4096
 +
| eodon = 4096
 +
}}px;image-rendering: pixelated;">{{#if:{{{sepia|}}}|<div class="lightsepia">}}[[File:MAP{{#switch: {{lc:{{{2|}}} }}|felucca=0
 
|trammel=1
 
|trammel=1
 +
|lost lands=1
 
|ilshenar=2
 
|ilshenar=2
 
|malas=3
 
|malas=3
Line 92: Line 111:
 
|ter mur=5
 
|ter mur=5
 
|eodon=5
 
|eodon=5
}}-1.png|link=]] </div></div>{{#ifeq:{{#var:showcoords}}|yes|<br><center>Coordinates: {{#var:x}} x {{#var:y}}</center> }}{{#if:{{{caption|}}}|<br><center>{{{caption}}}</center> }}</div>}}</includeonly><noinclude>
+
}}-1.png|link=]]{{#if:{{{sepia|}}}|</div>}}{{#if:{{{compassrose|}}}|<div class="compassrose" style="left:{{#expr:{{#var:x}} - 65}}px; top:{{#var:y}}px;">&nbsp;</div>}} {{#if:{{{pintype|}}}|{{UOAddPin|{{{pintype}}}|{{{pinX}}}|{{{pinY}}}|{{{pinName}}} |scalepin={{{scalepin|.5}}}|sepia=1 }} }}</div></div>{{#ifeq:{{#var:showcoords}}|yes|<br><center>Coordinates: {{#var:x}} x {{#var:y}}</center> }}{{#if:{{{caption|}}}|<br><center>{{{caption}}}</center> }}</div>}}</includeonly><noinclude>
 
== Maps ==
 
== Maps ==
 
  <nowiki>{{UO_Image|map|facet|x|y|r|b|magnify=xxx|caption=xxx}}
 
  <nowiki>{{UO_Image|map|facet|x|y|r|b|magnify=xxx|caption=xxx}}
Line 107: Line 126:
  
 
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|573|2367|139}}
 
Sea Market {{UO_Image|map|trammel|4550|2355|75|yes}}
 
Sea Market {{UO_Image|map|trammel|4550|2355|75|yes}}
 
</nowiki>
 
</nowiki>
Line 177: Line 196:
 
== Common Images ==
 
== Common Images ==
  
</noinclude><includeonly>{{{2}}}{{#ifeq: {{{1|}}}|image|<span class="verticalcenterimg">[[File:UO-Item-{{#switch: {{{2}}}
+
</noinclude><includeonly>{{#if:{{{nobr|}}}|<span style="white-space: nowrap;">}}{{#ifeq: {{{1|}}}|image|<span class="verticalcenterimg">[[File:UO-Item-{{#switch: {{{2}}}
 
| # = {{{3}}}-{{#if:{{{4|}}}|{{{4}}}|0}}
 
| # = {{{3}}}-{{#if:{{{4|}}}|{{{4}}}|0}}
 
| Abyssal Cloth = 5991-2075
 
| Abyssal Cloth = 5991-2075
Line 248: Line 267:
 
| Agapite Ingots = 7154-2425
 
| Agapite Ingots = 7154-2425
 
| Verite Ingots = 7154-2207
 
| Verite Ingots = 7154-2207
| Valorite Ingots = 7154-2219
+
| Bread Loaf = 4155-0
 +
| Ham = 2515-0
 +
| Valorite Ingots = 7154-2219
 
| Bull Fish Steak = 2427-1175
 
| Bull Fish Steak = 2427-1175
 
| Cake Mix = 4159-0
 
| Cake Mix = 4159-0
 
| Candelabra = 2599-0
 
| Candelabra = 2599-0
| Captured Essence = 12686-0
 
 
| Captured Essence = 12686-0
 
| Captured Essence = 12686-0
 
| Carrot = 3191-0
 
| Carrot = 3191-0
Line 270: Line 290:
 
| Color Fixative = 6189-1285
 
| Color Fixative = 6189-1285
 
| Cookie Mix = 4159-0
 
| Cookie Mix = 4159-0
| Copper Wire = 1879-0
+
| Copper Wire = 6265-0
 
| Corruption = 12676-0
 
| Corruption = 12676-0
 
| Crossbow Bolt = 7163-0
 
| Crossbow Bolt = 7163-0
Line 352: Line 372:
 
| Dull Copper Granite = 6009-2419
 
| Dull Copper Granite = 6009-2419
 
| Shadow Iron Granite = 6009-2406
 
| Shadow Iron Granite = 6009-2406
| Copper Granite = 6009-2413
+
| Copper Granite = 6009-2413
| Bronze Granite = 6009-2418
+
| Bronze Granite = 6009-2418
| Gold Granite = 6009-2213
+
| Gold Granite = 6009-2213
| Agapite Granite = 6009-2425
+
| Agapite Granite = 6009-2425
 
| Verite Granite = 6009-2207
 
| Verite Granite = 6009-2207
| Valorite Granite = 6009-2219
+
| Valorite Granite = 6009-2219
 
| Grapes = 2513-0
 
| Grapes = 2513-0
 
| Grave Dust = 3983-0
 
| Grave Dust = 3983-0
Line 387: Line 407:
 
| Leggings Of Bane = 5054-1269
 
| Leggings Of Bane = 5054-1269
 
| Level 1 Treasure Map = 5355-0
 
| Level 1 Treasure Map = 5355-0
 +
| Level 2 Treasure Map = 5355-0
 
| Level 3 Treasure Map = 5355-0
 
| Level 3 Treasure Map = 5355-0
 
| Level 4 Treasure Map = 5355-0
 
| Level 4 Treasure Map = 5355-0
Line 470: Line 491:
 
| Scouring Toxin = 6216-0
 
| Scouring Toxin = 6216-0
 
| Scribe's Pen = 4031-0
 
| Scribe's Pen = 4031-0
| Seed of Renewal = 22326-0
+
| Seed Of Renewal = 22326-0
 
| Serpent's Scale = 3982-0
 
| Serpent's Scale = 3982-0
 
| Sewing Kit = 3997-0
 
| Sewing Kit = 3997-0
Line 618: Line 639:
 
| Black Candle = 5171-2051
 
| Black Candle = 5171-2051
 
| Pagan Obsidian = 40937-0
 
| Pagan Obsidian = 40937-0
 +
| Salt = 19465-0
 +
| Dried Herbs = 3138-0
 +
| Raw Serpent Steak = 42017-0
 +
| Raw Dino Ribs =  42021-0
 +
| Fresh Seasoning = 4102-1150
 +
| Ocean Sapphire = 42004-1917
 
}}.png|alt={{{2}}}]]</span>{{#ifeq: {{{3|}}}|no||{{#switch: {{{2}}}
 
}}.png|alt={{{2}}}]]</span>{{#ifeq: {{{3|}}}|no||{{#switch: {{{2}}}
 
| # = {{#if: {{{5|}}}|&nbsp;[[UO:{{{5}}}|{{#replace:{{{6|{{{5}}}}}}| |&nbsp;}}]]}}
 
| # = {{#if: {{{5|}}}|&nbsp;[[UO:{{{5}}}|{{#replace:{{{6|{{{5}}}}}}| |&nbsp;}}]]}}
Line 624: Line 651:
 
| Black Candle = &nbsp;[[UO:Candle (black)|Black Candle]]
 
| Black Candle = &nbsp;[[UO:Candle (black)|Black Candle]]
 
| Red Candle = &nbsp;[[UO:Candle (red)|Red Candle]]
 
| Red Candle = &nbsp;[[UO:Candle (red)|Red Candle]]
| #default = &nbsp;[[UO:{{{2}}}|{{#replace:{{{2}}}| |&nbsp;}}]]
+
| #default = {{#if: {{{nonbsp|}}| [[UO:{{{2}}}|{{{2}}}]]|&nbsp;[[UO:{{{2}}}|{{#replace:{{{2}}}| |&nbsp;}}]]}}
}} }} }}</includeonly><noinclude>
+
}} }} }}{{#if:{{{nobr}}}|</span>}}</includeonly><noinclude>
  
 
<nowiki>{{UO_Image|image|itemname|text}}</nowiki>
 
<nowiki>{{UO_Image|image|itemname|text}}</nowiki>
Line 906: Line 933:
 
* Scouring Toxin
 
* Scouring Toxin
 
* Scribe's Pen
 
* Scribe's Pen
* Seed of Renewal
+
* Seed Of Renewal
 
* Serpent's Scale
 
* Serpent's Scale
 
* Sewing Kit
 
* Sewing Kit

Latest revision as of 05:51, 13 September 2020

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|573|2367|139}}
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}}

{{UO_Image|image|#|graphic #|hue}}

{{UO_Image|image|#|graphic #|hue|page name|page link text}}

Where:

itemname = the name of the item, one of:

  • Abyssal Cloth
  • Academic Books
  • Acid Sac
  • Amber
  • Amethyst
  • Ancient Parchment
  • Animal Pheromone
  • Antique Documents Kit
  • A Pitcher Of Milk
  • Apple
  • Arcanic Rune Stone
  • A Small Piece Of Blackrock
  • Automaton Actuator
  • Autumn Dragonfish Steak
  • Axle
  • Ball Of Yarn
  • Bananas
  • Bark Fragment
  • Barrel Hoops
  • Barrel Lid
  • Barrel Staves
  • Barrel Tap
  • Basket Of Green Tea
  • Batwing
  • Beeswax
  • Black Dragon Scale
  • Black Moonstone
  • Blackmoor
  • Black Pearl
  • Black Powder
  • Blank Scroll
  • Blight
  • Blood Moss
  • Blood Of The Dark Father
  • Bloodspawn
  • Blue Corn
  • Blue Diamond
  • Blue Dragon Scale
  • Blue Lobster Meat
  • Board
  • Boards
  • Bola Balls
  • Bolt Of Cloth
  • Bone
  • Bottle of Ichor
  • Bottle Of Liquor
  • Bottle Of Wine
  • Boura Pelt
  • Bowl Of Peas
  • Bowl Of Rotworm Stew
  • Brilliant Amber
  • Brilliant Amber
  • Brimstone
  • Broadsword
  • Broadsword
  • Broken Crystals
  • Bronze Ingots
  • Bull Fish Steak
  • Cake Mix
  • Candelabra
  • Captured Essence
  • Captured Essence
  • Carrot
  • Chaga Mushroom
  • Charcoal
  • Citrine
  • Clock Frame
  • Clock Parts
  • Clockwork Assembly
  • Close Helmet
  • Cloth
  • Cocoa Butter
  • Cocoa Liquor
  • Cocoa Pulp
  • Coffee Grounds
  • Coffee Pod
  • Color Fixative
  • Cookie Mix
  • Copper Wire
  • Corruption
  • Crossbow Bolt
  • Crushed Glass
  • Crystal Dust
  • Crystal Fish Steak
  • Crystalline Blackrock
  • Crystal Shards
  • Cure
  • Cut Cloth
  • Cut Of Raw Ribs
  • Daemon Blood
  • Daemon Bone
  • Daemon Claw
  • Darkglow Poison
  • Dark Sapphire
  • Dark Truffle
  • Dead Wood
  • Delicate Scales
  • Diamond
  • Diseased Bark
  • Dough
  • Dragon's Blood
  • Dragon's Blood Old
  • Dragon Scale
  • Dragon Turtle Scute
  • Dread Horn Mane
  • Dry Reeds
  • Dyes
  • Ear Of Corn
  • Ecru Citrine
  • Eggs
  • Elven Fletching
  • Emerald
  • Empty Bottle
  • Enchanted Essence
  • Enchanted Switch
  • Essence Of Achievement
  • Essence Of Balance
  • Essence Of Control
  • Essence Of Diligence
  • Essence Of Direction
  • Essence Of Feeling
  • Essence Of Order
  • Essence Of Passion
  • Essence Of Persistence
  • Essence Of Precision
  • Essence Of Singularity
  • Executioner's Cap
  • Explosion Potion
  • Eye of Newt
  • Eye Of The Travesty
  • Faery Dust
  • Fairy Dragon Wing
  • Fairy Dust
  • Fairy Salmon Steak
  • Feather
  • Feather
  • Fertile Dirt
  • Fey Wings
  • Fire Fish Steak
  • Fire Ruby
  • Foil Sheet
  • Fresh Ginger
  • Garlic
  • Gate Scroll
  • Gauntlets Of Nobility
  • Gears
  • Giant Koi Steak
  • Ginseng
  • Glass Sword
  • Gloss
  • Goblin Blood
  • Gold 1
  • Gold 2
  • Gold 3
  • Gold Coin
  • Gold Dust
  • Gorgon Lens
  • Granite
  • Grapes
  • Grave Dust
  • Great Barracuda Steak
  • Greater Heal Potion
  • Greater Strength Potion
  • Green Dragon Scale
  • Grizzled Bones
  • Hat Of The Magi
  • Head Of Cabbage
  • Head Of Lettuce
  • Heating Stand
  • Hitching Rope
  • Hollow Prism
  • Holy Mackerel Steak
  • Ingots
  • Inoperative Automaton Head
  • Jar Of Honey
  • Jeweled Filigree
  • Keg
  • Lard Of Paroxysmus
  • Lava Berry
  • Lava Fish Steak
  • Lava Serpent Crust
  • Leather
  • Leather Braid
  • Leggings Of Bane
  • Level 1 Treasure Map
  • Level 3 Treasure Map
  • Level 4 Treasure Map
  • Level 5 Treasure Map
  • Lodestone
  • Luminescent Fungi
  • Magical Residue
  • Malleable Alloy
  • Mandrake Root
  • Map
  • Mapmaker's Pen
  • Match Cord
  • Medusa Blood
  • Mento Seasoning
  • Metal Keg
  • Midnight Bracers
  • Moonstone Crystal Shards
  • Mortar And Pestle
  • Muculent
  • Myrmidex Eggsac
  • Nexus Core
  • Nightshade
  • Nox Crystal
  • Obsidian
  • Onion
  • Parasitic Plant
  • Parasitic Poison
  • Peach
  • Pear
  • Perfect Banana
  • Perfect Emerald
  • Pewter Bowl
  • Phillip's Wooden Steed
  • Pig Iron
  • Pile of Barbed Hides
  • Pile of Barbed Leather
  • Pile of Hides
  • Pile of Horned Hides
  • Pile of Horned Leather
  • Pile of Leather
  • Pile of Spined Hides
  • Pile of Spined Leather
  • Plant Clippings
  • Plant Pigment
  • Platemail Tunic
  • Poison Potion
  • Polish
  • Potash
  • Powdered Iron
  • Power Crystal
  • Pristine Dread Horn
  • Protection Scroll
  • Pumice
  • Pumpkin
  • Putrefaction
  • Raptor Teeth
  • Raw Bird
  • Raw Chicken Leg
  • Raw Fish Steak
  • Raw Leg of Lamb
  • Raw Leg Of Lamb
  • Raw Meat
  • Raw Rotworm Meat
  • Reaper Fish Steak
  • Recall Scroll
  • Recipe
  • Red Dragon Scale
  • Reflective Wolf Eye
  • Relic Fragment
  • Resolve's Bridle
  • Ring Of The Elements
  • River Moss
  • Rolling Pin
  • Rope
  • Ruby
  • Runed Prism
  • Sack Of Sugar
  • Saltpeter
  • Samuel's Secret Sauce
  • Sapphire
  • Sausage
  • Scales
  • Scourge
  • Scouring Toxin
  • Scribe's Pen
  • Seed Of Renewal
  • Serpent's Scale
  • Sewing Kit
  • Sextant Parts
  • Shaft
  • Shimmering Crystals
  • Sifter
  • Silver Serpent Venom
  • Silver Snake Skin
  • Skillet
  • Slith Tongue
  • Softened Reeds
  • Solvent Flask
  • Spider Carapace
  • Spider Crab Meat
  • Spider's Silk
  • Spider’s Silk
  • Spiders' Silk
  • Spool Of Thread
  • Springs
  • Squash
  • Staff Of The Magi
  • Star Sapphire
  • Stasis Chamber Power Core
  • Stone Crab Meat
  • Sulfurous Ash
  • Sulphurous Ash
  • Summer Dragonfish Steak
  • Summon Daemon Scroll
  • Sweet Cocoa Butter
  • Sweet Dough
  • Switch
  • Taint
  • Tiger Pelt
  • Tinker's Tools
  • Tithing Points
  • Tourmaline
  • Toxic Venom Sac
  • Training Dummy
  • Tribal Berry
  • Turquoise
  • Unabridged Atlas Of Eodon
  • Unbaked Apple Pie
  • Unbaked Fruit Pie
  • Unbaked Meat Pie
  • Unbaked Peach Cobbler
  • Unbaked Pumpkin Pie
  • Uncooked Cheese Pizza
  • Uncooked Quiche
  • Uncooked Sausage Pizza
  • Undying Flesh
  • Unicorn Fish Steak
  • Unmarked Rune
  • Vanilla
  • Varnish
  • Vial of Blood
  • Vial of Vitriol
  • Void Essence
  • Void Orb
  • Volcanic Ash
  • Wash
  • Water
  • Wheat Sheaf
  • Wheel Of Cheese
  • White Dragon Scale
  • White Pearl
  • Wilted Soul Fragments
  • Wooden Bowl
  • Wood Pulp
  • Workable Glass
  • Wyrm's Heart
  • Yellow Dragon Scale
  • Yellowtail Barracuda Steak
  • Zoogi Fungus

text: optional, use 'no' to suppress the descriptive text for the image being included.

Alternately, any graphic can be referenced by graphic number, using the # as the itemname parameter.

  • Optionally, a specific hue of that graphic can be specified. Otherwise, it will default to hue 0.
  • Optionally, a link can be created for that graphic, if a page name and text for the link are provided as additional parameters.

Examples:

  • {{UO_Image|image|Batwing}}: BatwingBatwing
  • {{UO_Image|image|Dragon's Blood}}: Dragon's BloodDragon's Blood
  • {{UO_Image|image|Dragon's Blood Old}}: Dragon's Blood Old Dragon's Blood
  • {{UO_Image|image|Dead Wood|no}}: Dead Wood
  • {{UO_Image|image|#|6369}}: #
  • {{UO_Image|image|#|3962|1152}}: #
  • {{UO_Image|image|#|3962|1152|Black Pearl (Hue 1152)|Black Pearl}}: # Black Pearl
  • {{UO_Image|image|#|6369||Garlic (Graphic 6369)|Garlic}}: # Garlic