قالب:Location map Egypt

من ويكيبيديا، الموسوعه الحره
اذهب إلى التنقل اذهب إلى البحث
Location map of Egypt
name Egypt
border
coordinates
32.1
24.2 ←↕→ 37.3
21.3
map center 26°42′N 30°45′E / 26.7°N 30.75°E / 26.7; 30.75
image Egypt location map.svg
Location map Egypt
Template documentation[view] [edit] [history] [purge]

The map definition, Template:Location_map_Egypt, is intended for overlaying markers/labels on similar maps of Egypt, using coordinates of 20.8-32.8 for latitude and 25.3-35.8 for longitude.
Some of the related mapping procedures are:

Map for Egypt
Map parameters
top 32.1 latitude at top of map
bottom 21.3 latitude at bottom of map
left 24.2 longitude at map left edge
right 37.3 longitude at map right edge
skew skew to narrow longitudes
lat_skew skew to arc latitudes at edges

See {{Location map}} for description of the parameters.

All mapping templates use similar parameters (see Examples):

  • Egypt - the first parameter is always the map name
  • AlternativeMap - name of image (omit "Image:")
  • caption=text - caption text along bottom of image
  • width=250 - for image width (omit "px")
  • label=xxx - movable label (can be padded " XX YY ")
  • label_size - percent from 0-200 (default: 95)
  • background - color of label (such as: darkorange or #4499DD)
  • position=right - (or left, top, bottom) position of label at marker
  • lat =26.25 - for latitude 20.8-32.8 (higher towards top)
  • long=31.92 - for longitude 25.3-35.8 (higher towards right)
  • mark     - name of image for marker symbol (omit "Image:")
  • marksize - size (in pixels) of marker-symbol (default: 8, 1=none)
  • float=right (or left, center) - position of map formatted on page

Some common label background colors are: #CCCC55 for dim yellow,

  • #44EE44 for lime green, #BBBBBB for gray,
  • #44CCDD for light aqua, #DDDDDD for light gray (almost white),
  • PaleGreen for pale green, PaleTurquoise, DarkOrange, etc.
  • By default, the label is transparent overwriting the image.

For small lettering use label_size=80, for tiny words use 55. Note that the words in the label will wrap unless using "nbsp": DO NOT WRAP.

When specifying image "width=270" be sure to OMIT "px" (which causes the image to span the width of the screen) because "px" cannot (yet) be detected by the (new) MediaWiki language which processes those mapping templates.

See each specific mapping template for other parameters to pass.

Examples[تعديل]

Abydos is located in Egypt
Abydos
Abydos
Example for Abydos in Egypt

{{Location map | Egypt
| caption = Example for Abydos in Egypt
| width=210 
| label=Abydos
| label-size=90
| background = #DDDD44
| position=top 
| lat  = 26.18 
| long = 31.92 
| mark=Red_pog2.svg 
| marksize=10 
| float=right 
}}

Berenice is located in Egypt
Berenice
Berenice
Berenice on Red Sea

{{Location map | Egypt
 | caption = Berenice on Red Sea
 | width=210 <!--omit "px"-->
 | label=Berenice
 | label-size=70
 | background = <!--aqua-->#44CCDD
 | position=left<!--right/top/bottom-->
 | lat = 23.92 <!--latitude 20.5-32.8 -->
 | long= 35.45 <!--longitude 25.3-35.8-->
 | mark=Green_pog.svg <!--omit "Image:"-->
 | marksize=10 <!--default: 8, 1=none-->
 | float=right <!--left/center-->
}}

خطأ: الوظيفة "many" غير موجودة.

{{Location map many | Egypt
| width=210 
| label=Sallum | label_size=70
  | background = #DDDD44
  | position=right
  | lat = 31.61 | long = 25.92
  | mark=Blue_pog.svg 
  | marksize=10 
  | markhigh=10
| label2=Abu Simbel | label2_size=70
  | background2 = DarkOrange
  | position2=top
  | lat2 = 22.34 | long2 = 31.37
  | mark2=Blue_pog.svg 
  | mark2size=10 
| float=right 
| caption = Sallum north, Abu Simbel
            in south
}}

Other options[تعديل]

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:

  • Over longitude=35.8 will push a label off-map to the right;
  • 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[تعديل]