Template:Postcode area imagemap/doc

This is an old revision of this page, as edited by Richardguk (talk | contribs) at 15:41, 18 October 2012 (documentation for Template:Postcode area imagemap). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

This template displays an Help:Imagemap of the postcode districts and post towns in the London postal district or one of the 121 United Kingdom postcode areas (AB to ZE, including BT but excluding the non-UK Crown dependencies of GY, |IM and JE).

The maps used are File:LONDON post town map.svg and File:AB postcode area map.svg to File:ZE postcode area map.svg and this template contains imagemap polygons which correspond to the coordinates of the surrounding postcode areas in each map. This causes a tooltip and link for the relevant postcode area article to appear when users hover the mouse over an adjacent area on the map.

Usage

Basic usage:

{{Postcode area imagemap | map=... }}

Extended usage:

{{Postcode area imagemap | map=... | size=... | ___location=... }}

Parameters

map
The name of the area:
  • where "XX" is the postcode area name, one of
    • XX
    • XX postcode area
  • or one of
    • LONDON
    • London
    • LONDON post town
    • London post town
    • LONDON postal district
    • London postal district
size
Optional image size, specifying the maximum width and/or height, one of:
  • maxwidthpx
  • xmaxheightpx
  • maxwidthxmaxheightpx
(see Wikipedia:Extended image syntax#Size for syntax details)
Defaults to 500x500px

The SVG image files on Wikimedia Commons are scaled so that the longer side has 1000 pixels, so the thickness of lines on two maps will be the same if their longer sides are the same length.

___location
Optional horizontal thumbnail alignment, one of:
  • none for non-wrapping left-aligned
  • center for non-wrapping centre-aligned
  • left for wrapping left-aligned
  • right for wrapping right-aligned
Defaults to none

See also