FANDOM


This template generates a map note as a map marker. This template is intended for use in the 'note' parameter of the Map template, though may be used separately in any block type container. See Template:Map.

Usage
  • 1 or x - the relative horizontal marker position
  • 2 or y - the relative vertical marker position
  • 3 or marker - marker type name. Default is 'Blip'
  • 4 or title - the short display name for the note
  • 5 or desc - legend markup for the note. Used by the large map legend
  • icon - if 1, then return only a simple icon wiki image. Optional
Notes on 'x' and 'y': These are the map coordinates of the map note marker, noting a position of a marker on the map. Any number of decimal places for the coordinate number can be used, like 52, 52.3, 52.2995843, etc. See additional Note docs
Notes on 'marker': Several different marker type names may refer to the same marker type or icon. For a wiki specific list of note marker types and icons. See additional Note docs.
Notes on 'desc' legend markup: the note description can optionally a more complex format, like 'Location##Elite mob;;Location::Hogger'. These formats add additional categories and elements to the map legend. See
Examples
{{Map/Extents|0|0|100|100}}
{{Map/Note|10.8|15.6|Skull}}
{{Map/Note|35.8|38.6}}
{{Map/Note|60.8|61.6|Star|Hogger|Location##Elite mob;;Location::Hogger}}
{{Map/Note|85.8|80.6|Wiki|Stormwind|City::Stormwind}}
{{Map/Extents|clear=1}}
Wiki
Legend markup

Basic rules and features:

  • Markup for a basic legend entry looks like 'Services##Taxi' or 'Services::Bank of Orgrimmar'
  • Each basic entry has a category name on the left, and a marker specific name on the right.
  • Basic entries can use '##' for generic entries or '::' for specific named entries.
  • Multiple basic entries can be combined for a single marker using ';;' as a delimiter, like: 'Trainer::Bob;;Trainer##Skinning;;Trainer##Leatherworking'
  • Multiple basic entries allow a single marker to be represented more than once in the legend.

Notes and hints:

{{Map|Elwynn Forest|size=400|notes=
 Location##Elite mob;;Location::Hogger
 Point of Interest::Graveyard
 Location::Raid meets here
 Location##Elite mob;;Location::Hogger
}}
Location

Elite mob 1 2

Hogger 1 2

Point of Interest
  • Only map notes with a legend parameter are featured in the legend. The rest are omitted.
  • There are no predefined categories or entry types. They simply spring to life when you use them.

An illustrated legend markup guide:

  • A legend entry consists of two parts:
    1. The category of the legend entry and
    2. the actual name of the entry
  • The two parts are separated by '##' or '::'
    1. Services::Bank of Orgrimmar
    2. Trainer##Fishing
  • There are two kinds of legend entries:
1. Indexed entries. Useful when the note stands for something generic.
  • Services##Taxi
  • Indexed entries are separated by ## and are rendered like this:
{{Map/Note|20|30|...|Location##Elite mob}}
{{Map/Note|45|80|...|Location##Elite mob}}
Location
Elite mob12
  • Indexed entries are always presented as numbers, even if there are no duplicates in the legend.
2. Named entries. Useful when the note stands for a unique place or thing, or any proper name.
  • Profession Trainer::Arnold Leland
  • Services::Bank of Orgrimmar
  • Named entries are separated by :: and are rendered like this:
{{Map/Note|63|36|...|Point of Interest::Graveyard}}
{{Map/Note|20|34|...|Location::Raid meets here}}
Location
Point of Interest
  • Named entries will be treated like indexed entries, if there are exact duplicates in the legend.
{{Map/Note|20|30|...|Location::Hogger}}
{{Map/Note|45|80|...|Location::Hogger}}
Location
Hogger12
  • A legend category may have both indexed and named entries.
  • Indexed entries are listed first.
  • Both groups are sorted alphabetically.
  • Any map note may have more than one entry in the legend. Make use of this feature liberally.
  • Trainer::Jalane;;Trainer##Skinning;;Trainer##Leatherworking
  • Multiple entries are separated by ;; and are rendered like these:
Location::Raid meets here;;Location##Elite;;Location::Hogger
Location
Elite mob 1
Alternate example showing multiple roles for a character.
Trainer::Jalane;;Trainer##Skinning;;Trainer##Leatherworking
Trainer
Leatherworking 1
Skinning 1
  • The order of multiple entries in a single note does not matter.
  • The entries do not need to be in the same category.
Advanced Usage
  • Position notes - The position coordinates are based on the defined extents of the map or block. By default they are linear 'percents' % with extents defined as an origin of 0,0 at the upper left corner, and 100,100 at the bottom right corner. See Template:Map/Extents about using other systems and extents.
  • Calling Map/Note outside Map - When using Map/Note outside of the Map template, Extents need to be defined first using the Map/Extents command, and then cleared when done. Normally Map would supply the default extents and clear them automatically. See the example above.
For Admins and Maintainers

This template generates a Map "note" as an icon and tooltip on a map, using the user specified marker type, and allows the user to define the hover text and large map light-box legend notes.

The marker type name passed to Note is filtered or translated here in the wiki code, into the final icon wiki file name used to display the icon. Wiki maintainers can add or change this templates code to add or change acceptable marker type names. This template allows all of the markers for the wiki over time to be managed in one common place.

For rendering a Map/Note outside of the Map and it's 'note' parameter, see advanced section above and see the example code in this template. For rendering just a simple image for regular wiki text/code using marker type names use the 'icon=1' option, or use the simplified convenience template Template:Map/Icon.


See Template:Map/Note/doc for any additional wiki specific information.


Community content is available under CC-BY-SA unless otherwise noted.