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

From blackwiki
Jump to navigation Jump to search
blackwiki>Wikid77
(created: to split excessive "nonincluded" text from Template:Location_map_Egypt that was killing map-templates due to large nonincluded text clogging template processing)
 
blackwiki>Wikid77
(noted marksize "in pixels" putting "8" not "8px")
Line 54: Line 54:
 
:* caption=text  - caption text along bottom of image
 
:* caption=text  - caption text along bottom of image
 
:* width=250 - for image width (omit "px")
 
:* width=250 - for image width (omit "px")
:* label - movable label (can be padded " XX YY ")
+
:* label=xxx - movable label (can be padded " XX YY ")
 
:* label_size - percent from 0-200 (default: 95)
 
:* label_size - percent from 0-200 (default: 95)
 
:* background - color of label (such as: darkorange or #4499DD)
 
:* background - color of label (such as: darkorange or #4499DD)
Line 61: Line 61:
 
:* long=31.92  - for longitude 25.3-35.8 (higher towards right)
 
:* long=31.92  - for longitude 25.3-35.8 (higher towards right)
 
:* mark     - name of image for marker symbol (omit "Image:")
 
:* mark     - name of image for marker symbol (omit "Image:")
:* marksize - size of image for marker symbol (default: 8px, 1px=none)
+
:* marksize - size (in pixels) of marker-symbol (default: 8, 1=none)
 
:* float=right (or left, center) - position of map formatted on page
 
:* float=right (or left, center) - position of map formatted on page
 
</code>
 
</code>

Revision as of 13:18, 9 November 2007

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 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=xxx - movable label (can be padded "&nbsp;XX&nbsp;YY&nbsp;")
  • 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&nbsp;NOT&nbsp;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

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

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