Template:Map/Note

This template generates a map note as a map marker. This template is designed to be used with map generator templates. This template is generally not used directly. See the main Template:.


 * Usage
 * 1 or x - a relative position in percent from the left of the map for the marker
 * 2 or y - a relative position in percent from the top of the map for the marker
 * 3 or marker - the marker type name
 * 4 or title - the short display name for the note
 * 5 - a description for the note


 * Note: the note description format can optionally be a complex Location##Elite mob;;Location::Hogger


 * Examples

This template generates map note as a hover location on the map marked by the user specified symbol image.
 * For Admins and Maintainers

The Symbol or Maker name passed is filtered or translated here into the final icon name that can be used to display a map marker on a map image on a wiki page. Wiki maintainers can add or change the template code to add or change acceptable marker names over time. This template allows marker names to be changed in one common place.

{{#vardefine:x|{{{{{x|{{{1|}}}}}}}}{{#vardefine:y|{{{{{y|{{{2|}}}}}}}}{{#vardefine:marker|{{{marker|{{{3|}}}}}}}}{{#vardefine:title|{{{title|{{{4|}}}}}}}}{{#vardefine:marker|{{#switch:{{#var:marker}} | Alliance | Horde | Neutral | Location | Star | Circle | Diamond | Triangle | Moon | Square | Skull | Cross | Trainer | ClassTrainer | Quest | AvailableQuest | AvailableRRQuest | ActiveQuest | ActiveRRQuest | Banker | Binder | Gossip | Healer | Inn | Petition | Tabard | Taxi | Unlearn | Vendor | Auctioneer | BattleMaster | FlightMaster | FoodDrink | Mailbox | Reagent | Repair | StableMaster | Blue | Green | Red | Purple | White | Barber | Blip | POI0| POI1| POI2| POI3| POI4| POI5| POI6| POI7| POI8| POI9| POI10 | POI11| POI12| POI13| POI14| POI15| POI16| POI17| POI18| POI19| POI20 | POI21| POI22| POI23| POI24| POI25| POI26| POI27| POI28| POI29| POI30 | POI31| POI32| POI33| POI34| POI35| POI36| POI37| POI38| POI39| POI40 | POI41| POI42| POI43| POI44| POI45| POI46| POI47| POI48| POI49| POI50 | POI51| POI52| POI53| POI54| POI55| POI56| POI57| POI58| POI59| POI60 | POI61| POI62| POI63| POI64| POI65| POI66| POI67| POI68| POI69| POI70 | POI71| POI72| POI73| POI74| POI75| POI76| POI77| POI78| POI79| POI80 | POI81| POI82| POI83| POI84| POI85| POI86| POI87| POI88| POI89| POI90 | POI91| POI92| POI93| POI94| POI95| POI96| POI97| POI98| POI99| POI100 | POI101| POI102| POI103| POI104| POI105| POI106| POI107| POI108| POI109| POI110 | POI111| POI112| POI113| POI114| POI115| POI116| POI117| POI118| POI119| POI120 | POI121| POI122| POI123| POI124| POI125| POI126| POI127| POI128| POI129| POI130 | POI131| POI132| POI133| POI134| POI135| POI136| POI137| POI138| POI139| POI140 | POI141| POI142| POI143| POI144| POI145| POI146| POI147| POI148| POI149| POI150 | POI151| POI152| POI153| POI154 | Town | Ship | Camp | Cave = {{#var:marker}} | #default = Blip }}}}{{#vardefine:iconclasses|{{#switch:{{#var:marker}} | Alliance | Horde | Neutral | Location | Star | Circle | Diamond | Triangle | Moon | Square | Skull | Cross | Trainer | ClassTrainer | Quest | AvailableQuest | AvailableRRQuest | ActiveQuest | ActiveRRQuest | Banker | Binder | Gossip | Healer | Inn | Petition | Tabard | Taxi | Unlearn | Vendor | Auctioneer | BattleMaster | FlightMaster | FoodDrink | Mailbox | Reagent | Repair | StableMaster | Blue | Green | Red | Purple | White | Barber | Blip = map-Icon map-{{#var:marker}} | POI0| POI1| POI2| POI3| POI4| POI5| POI6| POI7| POI8| POI9| POI10 | POI11| POI12| POI13| POI14| POI15| POI16| POI17| POI18| POI19| POI20 | POI21| POI22| POI23| POI24| POI25| POI26| POI27| POI28| POI29| POI30 | POI31| POI32| POI33| POI34| POI35| POI36| POI37| POI38| POI39| POI40 | POI41| POI42| POI43| POI44| POI45| POI46| POI47| POI48| POI49| POI50 | POI51| POI52| POI53| POI54| POI55| POI56| POI57| POI58| POI59| POI60 | POI61| POI62| POI63| POI64| POI65| POI66| POI67| POI68| POI69| POI70 | POI71| POI72| POI73| POI74| POI75| POI76| POI77| POI78| POI79| POI80 | POI81| POI82| POI83| POI84| POI85| POI86| POI87| POI88| POI89| POI90 | POI91| POI92| POI93| POI94| POI95| POI96| POI97| POI98| POI99| POI100 | POI101| POI102| POI103| POI104| POI105| POI106| POI107| POI108| POI109| POI110 | POI111| POI112| POI113| POI114| POI115| POI116| POI117| POI118| POI119| POI120 | POI121| POI122| POI123| POI124| POI125| POI126| POI127| POI128| POI129| POI130 | POI131| POI132| POI133| POI134| POI135| POI136| POI137| POI138| POI139| POI140 | POI141| POI142| POI143| POI144| POI145| POI146| POI147| POI148| POI149| POI150 | POI151| POI152| POI153| POI154 = map-POI map-{{#var:marker}} }}}}{{#vardefine:iconfile|{{#switch:{{#var:marker}} | Town | Ship = Icon {{#var:marker}}.png | Camp | Cave = Icon {{#lc:{{#var:marker}}}}.png }}}}{{#vardefine:iconcenter|{{#switch:{{#var:marker}} | Town | Ship | Camp | Cave = margin:-16px 0 0 -12px }}}}{{#vardefine:pX|{{ {{#var:MAPBASENAME}}/Clip|{{#var:x}}|{{#var:left}}|{{#var:right}}}}}}{{#vardefine:pY|{{ {{#var:MAPBASENAME}}/Clip|{{#var:y}}|{{#var:top}}|{{#var:bottom}}}}}}{{#vardefine:pLeft|{{#eval:({{#var:pX}} - {{#var:left}}) / ({{#var:right}} - {{#var:left}})}}{{#vardefine:pTop|{{#eval:({{#var:pY}} - {{#var:top}}) / ({{#var:bottom}} - {{#var:top}})}}{{#vardefine:pLeft|{{ {{#var:MAPBASENAME}}/Clip|{{#var:pLeft}}|0|100}}{{#vardefine:pTop|{{ {{#var:MAPBASENAME}}/Clip|{{#var:pTop}}|0|100}}{{#vardefine:class|{{#var:iconclasses}} map-marker}}{{#vardefine:style|{{#var:iconcenter|}};}}{{#vardefine:hover|{{#if:{{#var:title}}|{{#var:title}} @ }}{{#var:x}},{{#var:y}}}}{{#if:{{#var:iconfile|}}|}}