Underrail Wiki:Imagemap guide

From Underrail Wiki
Revision as of 12:27, 13 October 2020 by Wikiman (talk | contribs) (category)
Jump to navigation Jump to search

We now have support for imagemaps! With this we can create imagemaps of each Global Map image with clickable links on each zone, leading into article or screenshot image of that zone. This will be a handy visual way of navigating through location articles. The work-intensive part is defining coordinates for all the link shapes. Hundreds of zones on the global maps, all of them polygon-shaped. There are various online tools to help with this, for example https://imagemap.org/

Of course, imagemaps can also be used on anything else you want.

Syntax

See https://www.mediawiki.org/wiki/Extension:ImageMap for all the details.

  • poly x y x y x y [[wikilink]] (with as many pairs of xy coordinates as necessary) for precise polygon shapes. Ideally use this to define link regions.
  • circle x y radius [[wikilink]] for simple circles if you're too lazy for polygons. Just a spot in the center and a radius.
  • rect x y x y [[wikilink]] (upper left, lower right) for rectangles. Not a very good option for global map work since the zones are rotated 45 degrees.
  • The below SGS imagemap has examples of all.
  • The coordinates map to the full size source image and automatically scale down when the image is thumbnailed into smaller size.
  • Tip: you can visually check the shape of clickable areas on imagemaps by navigating links on the page with tab and shift+tab.

Example

Lower UnderrailFile:StationAlpha-Level2.pngFile:StationAlpha-Level3.pngFile:StationAlpha-Level4.pngFile:StationAlpha-Level5.pngFile:StationAlpha-Level6.pngFile:StationAlpha-Level7.pngFile:StationAlpha-Level8.pngFile:StationAlpha-Level9.pngSouth Gate Station DocksLower Caves
Click on any zone to see the map image. Click on the arrows to move to a different map.