Predloga:Lokacijska karta Egipt/dok

Iz Wikipedije, proste enciklopedije
Jump to navigation Jump to search

Predloga:Lokacijska karta Egipt is a location map definition used to overlay markers and labels on an equirectangular projection map of Egipt. The markers are placed by latitude and longitude coordinates on the default map or a similar map image.

Usage[uredi kodo]

These definitions are used by the following templates when invoked with parameter "Egipt":

Map definition[uredi kodo]

name
used in default map caption (Egipt)
image
the default map image, without "Image:" or "File:" (Egypt location map.svg)
image1
an alternative map image, usually a relief map (Egypt relief location map.jpg)
top
latitude at top edge of map, in decimal degrees (32.1)
bottom
latitude at bottom edge of map, in decimal degrees (21.3)
left
longitude at left edge of map, in decimal degrees (24.2)
right
longitude at right edge of map, in decimal degrees (37.3)

Alternative map[uredi kodo]

The map shown above as image1 (Egypt relief location map.jpg) can be displayed by using the AlternativeMap or relief parameters in {{Location map}}, {{Location map many}} and {{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[uredi kodo]

Location map, using default map (image)[uredi kodo]

Alexandria is located in Egipt
Alexandria
Alexandria
Alexandria (Egipt)
{{Lokacijska karta | Egipt
| width = 200 <!--omit "px"-->
| label = Alexandria
| lat   = 31.2
| long  = 29.9
}}
{{Lokacijska karta | Egipt
| width = 200 <!--omit "px"-->
| label = Cairo
| lat   = 30.05
| long  = 31.22
}}
{{Lokacijska karta | Egipt
| width = 200 <!--omit "px"-->
| label = Cairo
| lat   = 30.05
| long  = 31.22
}}

Location map, using relief map (image1)[uredi kodo]

Berenice is located in Egipt
Berenice
Berenice
Berenice on Red Sea
{{Lokacijska karta | Egipt
| 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 -->
}}

Location map many, using default map[uredi kodo]

Lokacijska karta Egipt/dok is located in Egipt
Alexandria
Alexandria
Aswan
Aswan
Alexandria, Cairo and Aswan Cities
{{Location map many | Egipt
| <!--map settings-->
| width       = 200
| float       = right
| caption     = Alexandria, Cairo and Aswan Cities
| <!--1st label settings-->
| lat         = 31.20
| long        = 29.92
| label       = Alexandria 
| label_size  = 70
| background  = DarkWhite
| position    = right
| mark        = Blue pog.svg
| marksize    = 10
| <!--2nd label settings-->
| lat2        = 30.05
| long2       = 31.22
| label2      = Cairo
| label2_size = 70
| background2 = DarkWhite
| position2   = left
| mark2       = Blue pog.svg
| mark2size   = 10
| <!--3rd label settings-->
| lat2        = 24.06
| long2       = 32.91
| label2      = Aswan
| label2_size = 70
| background2 = DarkWhite
| position2   = top
| mark2       = Blue pog.svg
| mark2size   = 10
}}

Location map+, using AlternativeMap[uredi kodo]

Lokacijska karta Egipt/dok is located in Egipt
Sallum
Sallum
Abu Simbel
Abu Simbel
Two locations in Egypt
{{Location map+ | Egipt
| AlternativeMap = Egypt relief location map.jpg
| width   = 200
| caption = Two locations in Egypt
| places  =
  {{Location map~ | Egipt
  | lat   = 31.61
  | long  = 25.92
  | label = Sallum 
  }}
  {{Location map~ | Egipt
  | lat   = 22.34
  | long  = 31.37
  | label = Abu Simbel
  }}
}}

Other options[uredi kodo]

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[uredi kodo]