Jump to content

Module:Location map/data/Egypt/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Zyxw (talk | contribs) at 18:25, 6 August 2011 (add document subpage formatting, remove undisplayed copy of old map values, update examples). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The map definition, Template:Location map Egypt, is intended for overlaying markers/labels on similar maps of Egypt, using coordinates of 20.8 to 32.8 for latitude and 25.3 to 35.8 for longitude.

Map for Egypt
Map parameters
top Template:Location map Egypt latitude at top of map
bottom Template:Location map Egypt latitude at bottom of map
left Template:Location map Egypt longitude at map left edge
right Template:Location map Egypt longitude at map right edge
skew Template:Location map Egypt skew to narrow longitudes
lat_skew Template:Location map Egypt skew to arc latitudes at edges

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

Usage

Some of the related mapping templates are:

All mapping templates use similar parameters (see Examples):

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

How to use an alternative map

This template normally displays the map shown above as image:

The AlternativeMap or relief parameters in {{Location map}} can be used to display the map shown above as image1:

Further instructions and examples can be found at Template:Location map#Using Alternative Map and Template:Location map#Relief.

Examples

Location map, using default map image

Abydos is located in Egypt
Abydos
Abydos
Abydos (Egypt)
{{Location map | Egypt
| width = 210 <!--omit "px"-->
| label = Abydos
| lat   = 26.18
| long  = 31.92
}}

Location map, using relief parameter

Berenice is located in Egypt
Berenice
Berenice
Berenice on Red Sea
{{Location map | Egypt
| relief    = yes
| float     = right <!--position (or: left/center)-->
| width     = 210
| caption   = Berenice on Red Sea
| label     = Berenice
| label_size= 70
| background= #44CCDD <!--aqua-->
| position  = left <!--or right/top/bottom -->
| lat       = 23.92
| long      = 35.45
| mark      = Green_pog.svg <!--marker image-->
| marksize  = 10 <!--marker size (default: 8, 1=none)-->
}}

Location map many, using AlternativeMap parameter

Location map/data/Egypt/doc is located in Egypt
Sallum
Sallum
Abu Simbel
Abu Simbel
Sallum north, Abu Simbel in south
{{Location map many | Egypt
| <!--map settings-->
| AlternativeMap = Egypt relief location map.jpg
| width    = 210 <!--omit "px"-->
| float    = right <!--position (or: left/center)-->
| caption  = Sallum north, Abu Simbel in south
| <!--1st label settings-->
| label       = Sallum 
| label_size  = 70
| background  = #DDDD44
| position    = right <!--or: left/top/bottom-->
| lat         = 31.61
| long        = 25.92
| mark        = Blue_pog.svg <!--marker image-->
| marksize    = 10 <!--marker size (default: 8)-->
| <!--2nd label settings-->
| label2      = Abu Simbel
| label2_size = 70
| background2 = DarkOrange
| position2   = top <!--or: left/right/bottom -->
| lat2        = 22.34
| long2       = 31.37
| mark2       = Blue_pog.svg <!--marker image-->
| mark2size   = 10 <!--marker size (default: 8)-->
}}

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