Difference between revisions of "Module:Location map/data/Cameroon/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Zyxw
(update documentation and add example using Template:Location map+)
m (11 revisions imported)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
−
{{Documentation subpage}}
+
<!-- Place categories where indicated at the bottom of this page; interwikis at Wikidata -->
−
<!-- Categories and interwikis go at the bottom of this page. -->
+
{{Module:Location map/data/doc
−
 
+
|image=[[File:Cameroon CIA WFB 2006 map.png|thumb|250px|Map of Cameroon]]
−
'''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.
+
|examples=
−
 
 
−
== Usage ==
 
−
These definitions are used by the following templates when invoked with parameter "Cameroon":
 
−
* {{tlx|Location map | Cameroon&nbsp;| ...}}
 
−
* {{tlx|Location map many | Cameroon&nbsp;| ...}}
 
−
* {{tlx|Location map+ | Cameroon&nbsp;| ...}}
 
−
* {{tlx|Location map~ | Cameroon&nbsp;| ...}}
 
−
 
 
−
== Map definition ==
 
−
; name
 
−
: used in default map caption (<tt>{{{{BASEPAGENAME}}|name}}</tt>)
 
−
; image
 
−
: the default map image, without "Image:" or "File:" (<tt>[[:File:{{{{BASEPAGENAME}}|image}}|{{{{BASEPAGENAME}}|image}}]]</tt>)
 
−
; image1
 
−
: an alternative map image, usually a relief map (<tt>[[:File:{{{{BASEPAGENAME}}|image1}}|{{{{BASEPAGENAME}}|image1}}]]</tt>)
 
−
; top
 
−
: [[latitude]] at top edge of map, in [[decimal degrees]] (<tt>{{{{BASEPAGENAME}}|top}}</tt>)
 
−
; bottom
 
−
: latitude at bottom edge of map, in decimal degrees (<tt>{{{{BASEPAGENAME}}|bottom}}</tt>)
 
−
; left
 
−
: [[longitude]] at left edge of map, in decimal degrees (<tt>{{{{BASEPAGENAME}}|left}}</tt>)
 
−
; right
 
−
: longitude at right edge of map, in decimal degrees (<tt>{{{{BASEPAGENAME}}|right}}</tt>)
 
−
 
 
−
== Alternative map ==
 
−
The map shown above as '''image1''' (<tt>{{{{BASEPAGENAME}}|image1}}</tt>) can be displayed by using the ''AlternativeMap'' or ''relief'' parameters in {{tl|Location map}}, {{tl|Location map many}} and {{tl|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) ===
 
=== Location map, using default map (image) ===
 
{{Location map | Cameroon
 
{{Location map | Cameroon
−
| width = 150
+
| width   = 140
−
| lat  = 3.87
+
| lat_deg = 3.87
−
| long  = 11.52
+
| lon_deg = 11.52
−
| label = Yaoundé
+
| label   = Yaoundé
 
}}
 
}}
 
<pre style="width:30em">
 
<pre style="width:30em">
 
{{Location map | Cameroon
 
{{Location map | Cameroon
−
| width = 150
+
| width   = 140
−
| lat  = 3.87
+
| lat_deg = 3.87
−
| long  = 11.52
+
| lon_deg = 11.52
−
| label = Yaoundé
+
| label   = Yaoundé
 
}}
 
}}
 
</pre>
 
</pre>
 
{{clear}}
 
{{clear}}
  
−
=== Location map, using relief map (image1) ===
+
=== Location map many, using relief map (image1) ===
−
{{Location map | Cameroon
 
−
| relief = yes
 
−
| width  = 150
 
−
| lat    = 3.87
 
−
| long  = 11.52
 
−
| label  = Yaoundé
 
−
}}
 
−
<pre style="width:30em">
 
−
{{Location map | Cameroon
 
−
| relief = yes
 
−
| width  = 150
 
−
| lat    = 3.87
 
−
| long  = 11.52
 
−
| label  = Yaoundé
 
−
}}
 
−
</pre>
 
−
{{clear}}
 
−
 
 
−
=== Location map many, using default map ===
 
 
{{Location map many | Cameroon
 
{{Location map many | Cameroon
−
| caption = Two locations in Cameroon
+
| relief  = yes
−
| width  = 150
+
| width    = 140
−
| lat    = 3.87
+
| caption = Two locations in Cameroon
−
| long    = 11.52
+
| lat1_deg = 3.87
−
| label   = Yaoundé
+
| lon1_deg = 11.52
−
| lat2    = 10.582
+
| label1   = Yaoundé
−
| long2  = 14.327
+
| lat2_deg = 10.582
−
| label2 = Maroua
+
| lon2_deg = 14.327
 +
| label2   = Maroua
 
}}
 
}}
 
<pre style="width:30em">
 
<pre style="width:30em">
 
{{Location map many | Cameroon
 
{{Location map many | Cameroon
−
| caption = Two locations in Cameroon
+
| relief  = yes
−
| width  = 150
+
| width    = 140
−
| lat    = 3.87
+
| caption = Two locations in Cameroon
−
| long    = 11.52
+
| lat1_deg = 3.87
−
| label   = Yaoundé
+
| lon1_deg = 11.52
−
| lat2    = 10.582
+
| label1   = Yaoundé
−
| long2  = 14.327
+
| lat2_deg = 10.582
−
| label2 = Maroua
+
| lon2_deg = 14.327
 +
| label2   = Maroua
 
}}
 
}}
 
</pre>
 
</pre>
Line 95: Line 50:
 
{{Location map+ | Cameroon
 
{{Location map+ | Cameroon
 
| AlternativeMap = Cameroon physical map.svg
 
| AlternativeMap = Cameroon physical map.svg
 +
| width  = 140
 
| caption = Two locations in Cameroon
 
| caption = Two locations in Cameroon
−
| width  = 150
 
 
| places  =
 
| places  =
 
   {{Location map~ | Cameroon
 
   {{Location map~ | Cameroon
−
   | lat  = 3.87
+
   | lat_deg = 3.87
−
   | long  = 11.52
+
   | lon_deg = 11.52
−
   | label = Yaoundé
+
   | label   = Yaoundé
 
   }}
 
   }}
 
   {{Location map~ | Cameroon
 
   {{Location map~ | Cameroon
−
   | lat  = 10.582
+
   | lat_deg = 10.582
−
   | long  = 14.327
+
   | lon_deg = 14.327
−
   | label = Maroua
+
   | label   = Maroua
 
   }}
 
   }}
 
}}
 
}}
Line 112: Line 67:
 
{{Location map+ | Cameroon
 
{{Location map+ | Cameroon
 
| AlternativeMap = Cameroon physical map.svg
 
| AlternativeMap = Cameroon physical map.svg
 +
| width  = 140
 
| caption = Two locations in Cameroon
 
| caption = Two locations in Cameroon
−
| width  = 150
 
 
| places  =
 
| places  =
 
   {{Location map~ | Cameroon
 
   {{Location map~ | Cameroon
−
   | lat  = 3.87
+
   | lat_deg = 3.87
−
   | long  = 11.52
+
   | lon_deg = 11.52
−
   | label = Yaoundé
+
   | label   = Yaoundé
 
   }}
 
   }}
 
   {{Location map~ | Cameroon
 
   {{Location map~ | Cameroon
−
   | lat  = 10.582
+
   | lat_deg = 10.582
−
   | long  = 14.327
+
   | lon_deg = 14.327
−
   | label = Maroua
+
   | label   = Maroua
 
   }}
 
   }}
 
}}
 
}}
 
</pre>
 
</pre>
−
{{clear}}
+
| see also =  
−
 
 
−
== See also ==
 
−
* [[Template:Location map]]
 
−
* [[Template:Location map+]]
 
−
* [[Template:Location map many]]
 
−
<includeonly>
 
−
<!-- Categories and interwikis go here: -->
 
  
−
</includeonly>
+
}}<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 +
<!-- Categories below this line; interwikis at Wikidata -->
 +
[[Category:Location map templates by country|Cameroon]]
 +
}}</includeonly>

Latest revision as of 06:31, 27 September 2020


Location map of Cameroon
name Cameroon
border
coordinates
13.5
8.2 ←↕→ 16.6
1.4
map center Lua error: callParserFunction: function "#coordinates" was not found.
image Cameroon adm location map.svg
400x400px
image1 Cameroon physical map.svg
400x400px

Module:Location map/data/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 = Cameroon
    Name used in the default map caption
  • bottom = 1.4
    Latitude at bottom edge of map, in decimal degrees
  • left = 8.2
    Longitude at left edge of map, in decimal degrees
  • right = 16.6
    Longitude at right edge of map, in decimal degrees

Alternative map

The {{Location map}}, {{Location map many}}, and {{Location map+}} templates have parameters to specify an alternative map image. The map displayed as image1 can be used with the relief or AlternativeMap parameters. Examples may be found below or in the following:

Precision

Longitude: from West to East this map definition covers 8.4 degrees.

  • At an image width of 200 pixels, that is 0.042 degrees per pixel.
  • At an image width of 1000 pixels, that is 0.0084 degrees per pixel.

Latitude: from North to South this map definition covers 12.1 degrees.

  • At an image height of 200 pixels, that is 0.0605 degrees per pixel.
  • At an image height of 1000 pixels, that is 0.0121 degrees per pixel.

Examples using location map templates

Location map, using default map (image)

Yaoundé (Cameroon)
{{Location map | Cameroon
| width   = 140
| lat_deg = 3.87
| lon_deg = 11.52
| label   = Yaoundé
}}

Location map many, using relief map (image1)

{{Location map many | Cameroon
| relief   = yes
| width    = 140
| caption  = Two locations in Cameroon
| lat1_deg = 3.87
| lon1_deg = 11.52
| label1   = Yaoundé
| lat2_deg = 10.582
| lon2_deg = 14.327
| label2   = Maroua
}}

Location map+, using AlternativeMap

{{Location map+ | Cameroon
| AlternativeMap = Cameroon physical map.svg
| width   = 140
| caption = Two locations in Cameroon
| places  =
  {{Location map~ | Cameroon
  | lat_deg = 3.87
  | lon_deg = 11.52
  | label   = Yaoundé
  }}
  {{Location map~ | Cameroon
  | lat_deg = 10.582
  | lon_deg = 14.327
  | label   = Maroua
  }}
}}

See also

Location map templates

Creating new map definitions