Difference between revisions of "Module:Location map/data/Cameroon/doc"
Jump to navigation
Jump to search
blackwiki>Zyxw (→Examples: add example using Template:Location map many) |
blackwiki>Zyxw (update documentation and add example using Template:Location map+) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Categories and interwikis go at the bottom of this page. --> | <!-- Categories and interwikis go at the bottom of this page. --> | ||
| + | |||
| + | '''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 == | == Usage == | ||
| − | + | These definitions are used by the following templates when invoked with parameter "Cameroon": | |
| + | * {{tlx|Location map | Cameroon | ...}} | ||
| + | * {{tlx|Location map many | Cameroon | ...}} | ||
| + | * {{tlx|Location map+ | Cameroon | ...}} | ||
| + | * {{tlx|Location map~ | Cameroon | ...}} | ||
| − | == | + | == 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>) | |
| − | Further instructions | + | ; 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 == | == Examples == | ||
| Line 16: | Line 34: | ||
{{Location map | Cameroon | {{Location map | Cameroon | ||
| width = 150 | | width = 150 | ||
| − | | lat = 3.87 | + | | lat = 3.87 |
| − | | long = 11.52 | + | | long = 11.52 |
| label = Yaoundé | | label = Yaoundé | ||
}} | }} | ||
| Line 23: | Line 41: | ||
{{Location map | Cameroon | {{Location map | Cameroon | ||
| width = 150 | | width = 150 | ||
| − | | lat = 3.87 | + | | lat = 3.87 |
| − | | long = 11.52 | + | | long = 11.52 |
| label = Yaoundé | | label = Yaoundé | ||
}} | }} | ||
| Line 33: | Line 51: | ||
{{Location map | Cameroon | {{Location map | Cameroon | ||
| relief = yes | | relief = yes | ||
| − | | width = 150 | + | | width = 150 |
| − | | lat = 3.87 | + | | lat = 3.87 |
| − | | long = 11.52 | + | | long = 11.52 |
| − | | label = Yaoundé | + | | label = Yaoundé |
}} | }} | ||
<pre style="width:30em"> | <pre style="width:30em"> | ||
{{Location map | Cameroon | {{Location map | Cameroon | ||
| relief = yes | | relief = yes | ||
| − | | width = 150 | + | | width = 150 |
| − | | lat = 3.87 | + | | lat = 3.87 |
| − | | long = 11.52 | + | | long = 11.52 |
| − | | label = Yaoundé | + | | label = Yaoundé |
}} | }} | ||
</pre> | </pre> | ||
| Line 52: | Line 70: | ||
{{Location map many | Cameroon | {{Location map many | Cameroon | ||
| caption = Two locations in Cameroon | | caption = Two locations in Cameroon | ||
| − | | width = 150 | + | | width = 150 |
| − | | lat = 3.87 | + | | lat = 3.87 |
| − | | long = 11.52 | + | | long = 11.52 |
| − | | label = Yaoundé | + | | label = Yaoundé |
| − | | lat2 = 10.582 | + | | lat2 = 10.582 |
| − | | long2 = 14.327 | + | | long2 = 14.327 |
| − | | label2 = Maroua | + | | label2 = Maroua |
}} | }} | ||
<pre style="width:30em"> | <pre style="width:30em"> | ||
{{Location map many | Cameroon | {{Location map many | Cameroon | ||
| caption = Two locations in Cameroon | | caption = Two locations in Cameroon | ||
| − | | width = 150 | + | | width = 150 |
| − | | lat = 3.87 | + | | lat = 3.87 |
| − | | long = 11.52 | + | | long = 11.52 |
| − | | label = Yaoundé | + | | label = Yaoundé |
| − | | lat2 = 10.582 | + | | lat2 = 10.582 |
| − | | long2 = 14.327 | + | | long2 = 14.327 |
| − | | label2 = Maroua | + | | label2 = Maroua |
| + | }} | ||
| + | </pre> | ||
| + | {{clear}} | ||
| + | |||
| + | === Location map+, using AlternativeMap === | ||
| + | {{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 | ||
| + | }} | ||
| + | }} | ||
| + | <pre style="width:30em"> | ||
| + | {{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 | ||
| + | }} | ||
}} | }} | ||
</pre> | </pre> | ||
{{clear}} | {{clear}} | ||
| + | == See also == | ||
| + | * [[Template:Location map]] | ||
| + | * [[Template:Location map+]] | ||
| + | * [[Template:Location map many]] | ||
<includeonly> | <includeonly> | ||
<!-- Categories and interwikis go here: --> | <!-- Categories and interwikis go here: --> | ||
</includeonly> | </includeonly> | ||
Revision as of 10:08, 11 August 2011
| 40px | This is a documentation subpage for Module:Location map/data/Cameroon. It contains usage information, categories and other content that is not part of the original module page. |
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.
Contents
Usage
These definitions are used by the following templates when invoked with parameter "Cameroon":
{{Location map | Cameroon | ...}}{{Location map many | Cameroon | ...}}{{Location map+ | Cameroon | ...}}{{Location map~ | 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é (Cameroon)
{{Location map | Cameroon
| width = 150
| lat = 3.87
| long = 11.52
| label = Yaoundé
}}
Location map, using relief map (image1)
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 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+ | 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
}}
}}