Template:Postcode area imagemap/doc
Appearance
![]() | This is a documentation subpage for Template:Postcode area imagemap. It may contain usage information, categories and other content that is not part of the original template page. |
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
- where "XX" is the postcode area name, one of
- 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
- Each of the unscaled SVG image files on Wikimedia Commons has the longer side equal to 1000 pixels. So the thickness of lines on two imagemaps from this template will be the same if their longer sides are the same length. But the size of the label text varies because of the greatly varying size of different postcode districts and post towns.
- location
- Optional horizontal thumbnail alignment, one of:
none
for non-wrapping left-alignedcenter
for non-wrapping centre-alignedleft
for wrapping left-alignedright
for wrapping right-aligned
- Defaults to
none
See also