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 Wikid77 (talk | contribs) at 10:43, 9 November 2007 (created: to split excessive "nonincluded" text from Template:Location_map_Egypt that was killing map-templates due to large nonincluded text clogging template processing). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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 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.

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 - 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 of image for marker symbol (default: 8px, 1px=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-->
}}

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
| 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