Jump to content

Module:Location map/data/Cameroon/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Zyxw (talk | contribs) at 10:08, 11 August 2011 (update documentation and add example using Template:Location map+). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Template:Location map Cameroon is a location map definition used to overlay markers and labels on an equirectangular projection map of Cameroon. 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 "Cameroon":

Map definition

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

Alternative map

The map shown above as image1 (Template:Location map/data/Cameroon) 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)

Yaoundé is located in Cameroon
Yaoundé
Yaoundé
Yaoundé (Cameroon)
{{Location map | Cameroon
| width = 150
| lat   = 3.87
| long  = 11.52
| label = Yaoundé
}}

Location map, using relief map (image1)

Yaoundé is located in Cameroon
Yaoundé
Yaoundé
Yaoundé (Cameroon)
{{Location map | Cameroon
| relief = yes
| width  = 150
| lat    = 3.87
| long   = 11.52
| label  = Yaoundé
}}

Location map many, using default map

Location map/data/Cameroon/doc is located in Cameroon
Yaoundé
Yaoundé
Maroua
Maroua
Two locations in Cameroon
{{Location map many | Cameroon
| caption = Two locations in Cameroon
| width   = 150
| lat     = 3.87
| long    = 11.52
| label   = Yaoundé
| lat2    = 10.582
| long2   = 14.327
| label2  = Maroua
}}

Location map+, using AlternativeMap

Location map/data/Cameroon/doc is located in Cameroon
Yaoundé
Yaoundé
Maroua
Maroua
Two locations in Cameroon
{{Location map+ | Cameroon
| AlternativeMap = Cameroon physical map.svg
| caption = Two locations in Cameroon
| width   = 150
| places  =
  {{Location map~ | Cameroon
  | lat   = 3.87
  | long  = 11.52
  | label = Yaoundé
  }}
  {{Location map~ | Cameroon
  | lat   = 10.582
  | long  = 14.327
  | label = Maroua
  }}
}}

See also