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

From blackwiki
Jump to navigation Jump to search
blackwiki>Zyxw
(create documentation)
 
blackwiki>Zyxw
(add relief / AlternativeMap)
Line 61: Line 61:
 
== Examples using location map templates ==
 
== Examples using location map templates ==
  
=== Location map ===
+
=== Location map, using default map (image) ===
 
{{Location map | Sudan
 
{{Location map | Sudan
| width  = 200
+
| width  = 250
 
| lat_deg = 15.63
 
| lat_deg = 15.63
 
| lon_deg = 32.53
 
| lon_deg = 32.53
 
| label  = Khartoum
 
| label  = Khartoum
 
}}
 
}}
<pre style="width:30em;">
+
<pre style="width:30em">
 
{{Location map | Sudan
 
{{Location map | Sudan
| width  = 200
+
| width  = 250
 
| lat_deg = 15.63
 
| lat_deg = 15.63
 
| lon_deg = 32.53
 
| lon_deg = 32.53
Line 78: Line 78:
 
{{clear}}
 
{{clear}}
  
=== Location map many ===
+
=== Location map many, using relief map (image1) ===
 
{{Location map many | Sudan
 
{{Location map many | Sudan
| width    = 200
+
| relief  = yes
 +
| width    = 250
 
| caption  = Two locations in Sudan
 
| caption  = Two locations in Sudan
 
| lat1_deg = 15.63
 
| lat1_deg = 15.63
 
| lon1_deg = 32.53
 
| lon1_deg = 32.53
 
| label1  = Khartoum
 
| label1  = Khartoum
 +
| pos1    = bottom
 
| lat2_deg = 19.617
 
| lat2_deg = 19.617
 
| lon2_deg = 37.217
 
| lon2_deg = 37.217
 
| label2  = Port Sudan
 
| label2  = Port Sudan
 +
| pos2    = left
 
}}
 
}}
<pre style="width:30em;">
+
<pre style="width:30em">
 
{{Location map many | Sudan
 
{{Location map many | Sudan
| width    = 200
+
| relief  = yes
 +
| width    = 250
 
| caption  = Two locations in Sudan
 
| caption  = Two locations in Sudan
 
| lat1_deg = 15.63
 
| lat1_deg = 15.63
 
| lon1_deg = 32.53
 
| lon1_deg = 32.53
 
| label1  = Khartoum
 
| label1  = Khartoum
 +
| pos1    = bottom
 
| lat2_deg = 19.617
 
| lat2_deg = 19.617
 
| lon2_deg = 37.217
 
| lon2_deg = 37.217
 
| label2  = Port Sudan
 
| label2  = Port Sudan
 +
| pos2    = left
 
}}
 
}}
 
</pre>
 
</pre>
 
{{clear}}
 
{{clear}}
  
=== Location map+ ===
+
=== Location map+, using AlternativeMap ===
 
{{Location map+ | Sudan
 
{{Location map+ | Sudan
| width  = 200
+
| AlternativeMap = Sudan location map Topographic.png
 +
| width  = 250
 
| caption = Two locations in Sudan
 
| caption = Two locations in Sudan
 
| places  =
 
| places  =
 
   {{Location map~ | Sudan
 
   {{Location map~ | Sudan
   | lat_deg = 15.63
+
   | lat_deg = 15.63
   | lon_deg = 32.53
+
   | lon_deg = 32.53
   | label  = Khartoum
+
   | label   = Khartoum
 +
   | position = bottom
 
   }}
 
   }}
 
   {{Location map~ | Sudan
 
   {{Location map~ | Sudan
   | lat_deg = 19.617
+
   | lat_deg = 19.617
   | lon_deg = 37.217
+
   | lon_deg = 37.217
   | label   = Port Sudan
+
   | label   = Port Sudan
 +
  | position = left
 
   }}
 
   }}
 
}}
 
}}
<pre style="width:30em;">
+
<pre style="width:35em">
 
{{Location map+ | Sudan
 
{{Location map+ | Sudan
| width  = 200
+
| AlternativeMap = Sudan location map Topographic.png
 +
| width  = 250
 
| caption = Two locations in Sudan
 
| caption = Two locations in Sudan
 
| places  =
 
| places  =
 
   {{Location map~ | Sudan
 
   {{Location map~ | Sudan
   | lat_deg = 15.63
+
   | lat_deg = 15.63
   | lon_deg = 32.53
+
   | lon_deg = 32.53
   | label  = Khartoum
+
   | label   = Khartoum
 +
   | position = bottom
 
   }}
 
   }}
 
   {{Location map~ | Sudan
 
   {{Location map~ | Sudan
   | lat_deg = 19.617
+
   | lat_deg = 19.617
   | lon_deg = 37.217
+
   | lon_deg = 37.217
   | label   = Port Sudan
+
   | label   = Port Sudan
 +
  | position = left
 
   }}
 
   }}
 
}}
 
}}

Revision as of 01:37, 2 July 2012

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

Map definition

Alternative map

The map defined as image1 (Template:Location map/data/Sudan) can be displayed by using the relief or AlternativeMap parameters in {{Location map}}, {{Location map many}} and {{Location map+}}. The map defined as image2 (Template:Location map/data/Sudan) can only be displayed by using the AlternativeMap parameter. The use of these two parameters is shown in the examples below. Additional examples can be found at:

Examples using location map templates

Location map, using default map (image)

Khartoum (Sudan)
{{Location map | Sudan
| width   = 250
| lat_deg = 15.63
| lon_deg = 32.53
| label   = Khartoum
}}

Location map many, using relief map (image1)

{{Location map many | Sudan
| relief   = yes
| width    = 250
| caption  = Two locations in Sudan
| lat1_deg = 15.63
| lon1_deg = 32.53
| label1   = Khartoum
| pos1     = bottom
| lat2_deg = 19.617
| lon2_deg = 37.217
| label2   = Port Sudan
| pos2     = left
}}

Location map+, using AlternativeMap

{{Location map+ | Sudan
| AlternativeMap = Sudan location map Topographic.png
| width   = 250
| caption = Two locations in Sudan
| places  =
  {{Location map~ | Sudan
  | lat_deg  = 15.63
  | lon_deg  = 32.53
  | label    = Khartoum
  | position = bottom
  }}
  {{Location map~ | Sudan
  | lat_deg  = 19.617
  | lon_deg  = 37.217
  | label    = Port Sudan
  | position = left
  }}
}}

See also

Location map templates
Infobox templates incorporating (passing values to) the Location map template
List