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

From blackwiki
Jump to navigation Jump to search
m (18 revisions imported)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
+
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
<!-- Categories and interwikis go at the bottom of this page. -->
+
{{Module:Location map/data/doc
 
+
|image=[[File:Egypt-CIA WFB Map.png|thumb|220px|Map of Egypt]]
'''Template:Location map Egypt''' is a location map definition used to overlay markers and labels on an [[equirectangular projection]] map of [[Egypt]]. 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 "Egypt":
 
* {{tlx|Location map | Egypt&nbsp;| ...}}
 
* {{tlx|Location map many | Egypt&nbsp;| ...}}
 
* {{tlx|Location map+ | Egypt&nbsp;| ...}}
 
* {{tlx|Location map~ | Egypt&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 | Egypt
 
{{Location map | Egypt
| width = 200 <!--omit "px"-->
+
| width   = 220 <!--omit "px"-->
| label = Alexandria
+
| lat_deg = 31.2
| lat  = 31.2
+
| lon_deg = 29.9
| long  = 29.9
+
| label  = Alexandria
 
}}
 
}}
 
<pre style="width:35em">
 
<pre style="width:35em">
 
{{Location map | Egypt
 
{{Location map | Egypt
| width = 200 <!--omit "px"-->
+
| width   = 220 <!--omit "px"-->
| label = Alexandria
+
| lat_deg = 31.2
| lat  = 31.2
+
| lon_deg = 29.9
| long  = 29.9
+
| label  = Alexandria
}}
 
{{Location map | Egypt
 
| width = 200 <!--omit "px"-->
 
| label = Cairo
 
| lat   = 30.05
 
| long  = 31.22
 
}}
 
{{Location map | Egypt
 
| width = 200 <!--omit "px"-->
 
| label = Cairo
 
| lat  = 30.05
 
| long  = 31.22
 
 
}}
 
}}
 
</pre>
 
</pre>
 
{{clear}}
 
{{clear}}
  
=== Location map, using relief map (image1) ===
+
=== Location map many, using relief map (image1) ===
{{Location map | Egypt
 
| relief    = yes
 
| float    = right <!--or left/center)-->
 
| width    = 200
 
| caption  = Berenice on Red Sea
 
| lat      = 23.92
 
| long      = 35.45
 
| label    = Berenice
 
| label_size= 70
 
| background= #44CCDD <!--aqua-->
 
| position  = left <!--or right/top/bottom -->
 
| mark      = Green_pog.svg <!--marker image-->
 
| marksize  = 10 <!--default: 8, 1=none -->
 
}}
 
<pre style="width:35em">
 
{{Location map | Egypt
 
| relief    = yes
 
| float    = right <!--or left/center)-->
 
| width    = 200
 
| caption  = Berenice on Red Sea
 
| lat      = 23.92
 
| long      = 35.45
 
| label    = Berenice
 
| label_size= 70
 
| background= #44CCDD <!--aqua-->
 
| position  = left <!--or right/top/bottom -->
 
| mark      = Green_pog.svg <!--marker image-->
 
| marksize  = 10 <!--default: 8, 1=none -->
 
}}
 
</pre>
 
{{clear}}
 
 
 
=== Location map many, using default map ===
 
 
{{Location map many | Egypt
 
{{Location map many | Egypt
| <!--map settings-->
+
| relief      = yes
| width      = 200
+
| width      = 220
| float      = right
+
| caption    = Alexandria, Cairo, and Aswan
| caption    = Sallum north, Abu Simbel in south
+
| lat1_deg    = 31.2
| <!--1st label settings-->
+
| lon1_deg    = 29.92
| lat        = 31.61
+
| label1      = Alexandria
| long        = 25.92
+
| position1  = left
| label      = Sallum
+
| lat2_deg   = 30.05
| label_size  = 70
+
| lon2_deg   = 31.22
| background  = #DDDD44
+
| label2      = Cairo
| position   = right
+
| position2  = bottom
| mark        = Blue pog.svg
+
| lat3_deg    = 24.06
| marksize   = 10
+
| lon3_deg    = 32.91
| <!--2nd label settings-->
+
| label3      = Aswan
| lat2        = 22.34
+
| position3   = top
| long2      = 31.37
 
| label2      = Abu&nbsp;Simbel
 
| label2_size = 70
 
| background2 = DarkOrange
 
| position2  = top
 
| mark2      = Blue pog.svg
 
| mark2size   = 10
 
 
}}
 
}}
 
<pre style="width:35em">
 
<pre style="width:35em">
 
{{Location map many | Egypt
 
{{Location map many | Egypt
| <!--map settings-->
+
| relief      = yes
| width      = 200
+
| width      = 220
| float      = right
+
| caption    = Alexandria, Cairo, and Aswan
| caption    = Sallum north, Abu Simbel in south
+
| lat1_deg    = 31.2
| <!--1st label settings-->
+
| lon1_deg    = 29.92
| lat        = 31.61
+
| label1      = Alexandria
| long        = 25.92
+
| position1  = left
| label      = Sallum
+
| lat2_deg   = 30.05
| label_size  = 70
+
| lon2_deg   = 31.22
| background  = #DDDD44
+
| label2      = Cairo
| position   = right
+
| position2  = bottom
| mark        = Blue pog.svg
+
| lat3_deg    = 24.06
| marksize   = 10
+
| lon3_deg    = 32.91
| <!--2nd label settings-->
+
| label3      = Aswan
| lat2        = 22.34
+
| position3   = top
| long2      = 31.37
 
| label2      = Abu&nbsp;Simbel
 
| label2_size = 70
 
| background2 = DarkOrange
 
| position2  = top
 
| mark2      = Blue pog.svg
 
| mark2size   = 10
 
 
}}
 
}}
 
</pre>
 
</pre>
Line 149: Line 62:
 
{{Location map+ | Egypt
 
{{Location map+ | Egypt
 
| AlternativeMap = Egypt relief location map.jpg
 
| AlternativeMap = Egypt relief location map.jpg
| width  = 200
+
| width  = 220
 
| caption = Two locations in Egypt
 
| caption = Two locations in Egypt
 
| places  =
 
| places  =
 
   {{Location map~ | Egypt
 
   {{Location map~ | Egypt
   | lat  = 31.61
+
   | lat_deg = 31.61
   | long  = 25.92
+
   | lon_deg = 25.92
   | label = Sallum  
+
   | label   = Sallum  
 
   }}
 
   }}
 
   {{Location map~ | Egypt
 
   {{Location map~ | Egypt
   | lat  = 22.34
+
   | lat_deg = 22.34
   | long  = 31.37
+
   | lon_deg = 31.37
   | label = Abu Simbel
+
   | label   = Abu Simbel
 
   }}
 
   }}
 
}}
 
}}
Line 166: Line 79:
 
{{Location map+ | Egypt
 
{{Location map+ | Egypt
 
| AlternativeMap = Egypt relief location map.jpg
 
| AlternativeMap = Egypt relief location map.jpg
| width  = 200
+
| width  = 220
 
| caption = Two locations in Egypt
 
| caption = Two locations in Egypt
 
| places  =
 
| places  =
 
   {{Location map~ | Egypt
 
   {{Location map~ | Egypt
   | lat  = 31.61
+
   | lat_deg = 31.61
   | long  = 25.92
+
   | lon_deg = 25.92
   | label = Sallum  
+
   | label   = Sallum  
 
   }}
 
   }}
 
   {{Location map~ | Egypt
 
   {{Location map~ | Egypt
   | lat  = 22.34
+
   | lat_deg = 22.34
   | long  = 31.37
+
   | lon_deg = 31.37
   | label = Abu Simbel
+
   | label   = Abu Simbel
 
   }}
 
   }}
 
}}
 
}}
 
</pre>
 
</pre>
{{clear}}
+
| see also =
 
+
}}<includeonly>
== Other options ==
+
<!-- Categories go here: -->
It is possible to place markers/labels outside a map, by specifying latitude outside 20.5-32.8 or longitude coordinates beyond 25.5-35.8:
+
[[Category:Maps of Egypt]]
:* Over longitude=35.8 will push a label off-map to the right;
+
[[Category:Egypt location map templates| ]]
:* Under longitude= 20.5 will push a label off-map to the left;
 
:* Over latitude= 32.8 will push a label off-map to the top.
 
For templates that restrict coordinates, expand the ''minutes'' field: lat_deg=32.0 but lat_min=120 yielding a combined 34 degrees (60 minutes = 1 degree).
 
 
 
== See also ==
 
* [[Template:Location map]]
 
* [[Template:Location map+]]
 
* [[Template:Location map many]]
 
* [[Template:Location map Egypt relief]]
 
<includeonly>
 
<!-- Categories and interwikis go here: -->
 
 
 
 
</includeonly>
 
</includeonly>

Latest revision as of 06:41, 27 September 2020


Location map of Egypt
name Egypt
border
coordinates
32.1
24.2 ←↕→ 37.3
21.3
map center Lua error: callParserFunction: function "#coordinates" was not found.
image Egypt adm location map.svg
400x400px
image1 Egypt relief location map.jpg
400x400px

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

Map definition

  • name = Egypt
    Name used in the default map caption
  • bottom = 21.3
    Latitude at bottom edge of map, in decimal degrees
  • left = 24.2
    Longitude at left edge of map, in decimal degrees
  • right = 37.3
    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 13.1 degrees.

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

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

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

Examples using location map templates

Location map, using default map (image)

Alexandria (Egypt)
{{Location map | Egypt
| width   = 220 <!--omit "px"-->
| lat_deg = 31.2
| lon_deg = 29.9
| label   = Alexandria
}}

Location map many, using relief map (image1)

Alexandria, Cairo, and Aswan
{{Location map many | Egypt
| relief      = yes
| width       = 220
| caption     = Alexandria, Cairo, and Aswan
| lat1_deg    = 31.2
| lon1_deg    = 29.92
| label1      = Alexandria 
| position1   = left
| lat2_deg    = 30.05
| lon2_deg    = 31.22
| label2      = Cairo
| position2   = bottom
| lat3_deg    = 24.06
| lon3_deg    = 32.91
| label3      = Aswan
| position3   = top
}}

Location map+, using AlternativeMap

{{Location map+ | Egypt
| AlternativeMap = Egypt relief location map.jpg
| width   = 220
| caption = Two locations in Egypt
| places  =
  {{Location map~ | Egypt
  | lat_deg = 31.61
  | lon_deg = 25.92
  | label   = Sallum 
  }}
  {{Location map~ | Egypt
  | lat_deg = 22.34
  | lon_deg = 31.37
  | label   = Abu Simbel
  }}
}}

See also

Location map templates

Creating new map definitions