Module:Location map/data/Benin/doc

From blackwiki
< Module:Location map‎ | data/Benin
Revision as of 00:48, 21 August 2011 by blackwiki>Zyxw (create documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is the documentation page for Module:Location map/data/Benin

Template:Location map Benin is a location map definition used to overlay markers and labels on an equirectangular projection map of Benin. The markers are placed by latitude and longitude coordinates on the default map or a similar map image.

Usage

These definitions are used by the following templates when invoked with parameter "Benin":

Map definition

name
used in default map caption (Template:Location map/data/Benin)
image
the default map image, without "Image:" or "File:" ([[:File:Template:Location map/data/Benin|Template:Location map/data/Benin]])
image1
an alternative map image, usually a relief map ([[:File:Template:Location map/data/Benin|Template:Location map/data/Benin]])
top
latitude at top edge of map, in decimal degrees (Template:Location map/data/Benin)
bottom
latitude at bottom edge of map, in decimal degrees (Template:Location map/data/Benin)
left
longitude at left edge of map, in decimal degrees (Template:Location map/data/Benin)
right
longitude at right edge of map, in decimal degrees (Template:Location map/data/Benin)

Alternative map

The map defined as image1 (Template:Location map/data/Benin) can be displayed by using the AlternativeMap or relief parameters in {{Location map}}, {{Location map many}} and {{Location map+}}. Further instructions can be found at Template:Location map#Using Alternative Map and Template:Location map#Relief, or see the examples below.

Examples

Location map, using default map (image)

Porto-Novo (Benin)
{{Location map | Benin
| width = 125
| lat   = 6.497
| long  = 2.605
| label = Porto-Novo
| position = top
}}

Location map, using relief map (image1)

Porto-Novo (Benin)
{{Location map | Benin
| relief = yes
| width  = 125
| lat    = 6.497
| long   = 2.605
| label  = Porto-Novo
| position = top
}}

Location map many, using default map

{{Location map many | Benin
| caption = Two locations in Benin
| width   = 125
| lat     = 6.497
| long    = 2.605
| label   = Porto-Novo
| pos     = top
| lat2    = 9.70
| long2   = 1.67
| label2  = Djougou
}}

Location map+, using AlternativeMap

{{Location map+ | Benin
| AlternativeMap = Benin physical map.svg
| caption = Two locations in Benin
| width   = 125
| places  =
  {{Location map~ | Benin
  | lat   = 6.497
  | long  = 2.605
  | label = Porto-Novo
  | position = top
  }}
  {{Location map~ | Benin
  | lat   = 9.70
  | long  = 1.67
  | label = Djougou
  }}
}}

See also