الگو:Location map Kiribati

از ویکی‌پدیا، دانشنامهٔ آزاد
پرش به ناوبری پرش به جستجو
روی نقشه کیریباتی
نام کیریباتی
مختصات
مرزها
6
169 →↕← -149
-13
وسط نقشه ۳°۳۰′جنوبی ۱۷۰°۰۰′غربی / ۳٫۵°جنوبی ۱۷۰°غربی / -3.5; -170
x (100*(({{{3}}} + ({{{3}}} < 0)*360) - 169)/((-149 + 360) - 169))
y (100*({{{2}}} - 6)/((-13) - 6))
تصویر Kiribati location map.svg
Location map Kiribati
توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]

Template:Location map Kiribati is a location map definition used to overlay markers and labels on an equirectangular projection map of کیریباتی. The markers are placed by عرض جغرافیایی and طول جغرافیایی coordinates on the default map or a similar map image.

Usage[ویرایش]

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

Map definition[ویرایش]

name
used in default map caption (کیریباتی)
image
the default map image, without "Image:" or "File:" (Kiribati location map.svg)
image1
an alternative map image, usually a relief map ([[:File:|]])
x
an expression to calculate a location on the map via its طول جغرافیایی; evaluates as 0 along the left edge and 100 along the right edge
y
an expression to calculate a location on the map via its عرض جغرافیایی; evaluates as 0 along the top edge and 100 along the bottom edge

Technical details[ویرایش]

For a map using an equirectangular projection which does not cross +/-180 longitude, or +/-90 latitude, the following expressions can be used: x = 100*(long - left)/(right - left)
y = 100*(lat - top)/(bottom - top) where lat and long are the degrees latitude and longitude respectively. Here, top and bottom are the degrees latitude of the top and bottom edges of the map, left and right are the degrees latitude of the left and right edges of the map. Things are a bit more complicated when the map crosses +/-180 longitude, and some sort of "modulo arithmetic" is required. Here, we add 360 if the longitude is less than 0, then use a mapping based on positive coordinates. The following table can be used to check if the expressions are working as desired:

location lat long (x,y) test (x,y) exact
top/left 6 169 (0,0) (0,0)
top/right 6 -149 (100,0) (100,0)
bottom/left -13 169 (0,100) (0,100)
bottom/right -13 -149 (100,100) (100,100)
center -3.5 190 (50,50) (50,50)

Alternative map[ویرایش]

The map defined as image1 () 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[ویرایش]

Location map: Eastern hemisphere, Deg/Min/Sec coordinates[ویرایش]

South Tarawa در کیریباتی قرار گرفته‌است
South Tarawa
South Tarawa
Location of تاراوای S in Kiribati
{{Location map | Kiribati
| width = 250 | float = right
| caption = Location of [[تاراوای جنوبی]] in Kiribati
| label = South Tarawa
| background = lightblue
| position = right
| lat_deg= 01 | lat_min=19 | lat_sec=32 | lat_dir=N
| lon_deg=172 | lon_min=59 | lon_sec=00 | lon_dir=E
}}

Location map: Eastern hemisphere, Decimal coordinates[ویرایش]

South Tarawa در کیریباتی قرار گرفته‌است
South Tarawa
South Tarawa
Location of تاراوای S in Kiribati
{{Location map | Kiribati
| width = 250 | float = right
| caption = Location of [[تاراوای جنوبی]] in Kiribati
| label = South Tarawa
| background = lightblue
| position = right
| lat = 1.326
| long = 172.983
}}

Location map: Western hemisphere, Deg/Min/Sec coordinates, alternative map[ویرایش]

Kiritimati در کیریباتی قرار گرفته‌است
Kiritimati
Kiritimati
Location of کیریتیماتی in Kiribati
{{Location map | Kiribati
| AlternativeMap = Kiribati relief location map.jpg
| width = 250 | float = right
| caption = Location of [[کیریتیماتی]] in Kiribati
| label = Kiritimati
| background = lightgreen
| position = bottom
| lat_deg= 01 | lat_min=52 | lat_sec= | lat_dir=N
| lon_deg=157 | lon_min=24 | lon_sec= | lon_dir=W
}}

Location map: Western hemisphere, Decimal coordinates, relief map[ویرایش]

Kiritimati در کیریباتی قرار گرفته‌است
Kiritimati
Kiritimati
Location of کیریتیماتی in Kiribati
{{Location map | Kiribati
| relief = yes
| width = 250 | float = right
| caption = Location of [[کیریتیماتی]] in Kiribati
| label = Kiritimati
| background = lightgreen
| position = bottom
| lat = 1.867
| long = -157.4
}}

Location map many: Deg/Min/Sec coordinates, alternative map[ویرایش]

Location map Kiribati در کیریباتی قرار گرفته‌است
South Tarawa
South Tarawa
Kiritimati
Kiritimati
{{Location map many | Kiribati
| AlternativeMap = Kiribati relief location map.jpg
| width = 250 | float = right
| caption = [[تاراوای جنوبی]] and [[کیریتیماتی]] in Kiribati
| label = South Tarawa | label_size = 90
| bg = lightblue | pos = right
| lat_deg= 01 | lat_min=19 | lat_sec=32 | lat_dir=N
| lon_deg=172 | lon_min=59 | lon_sec=00 | lon_dir=E
| label2 = Kiritimati | label2_size = 90
| bg2 = lightgreen | pos2 = bottom
| lat2_deg= 01 | lat2_min=52 | lat2_sec= | lat2_dir=N
| lon2_deg=157 | lon2_min=24 | lon2_sec= | lon2_dir=W
}}

Location map many: Decimal coordinates, relief map[ویرایش]

Location map Kiribati در کیریباتی قرار گرفته‌است
South Tarawa
South Tarawa
Kiritimati
Kiritimati
{{Location map many | Kiribati
| relief = yes
| width = 250 | float = right
| caption = [[تاراوای جنوبی]] and [[کیریتیماتی]] in Kiribati
| label = South Tarawa | label_size = 90
| bg = lightblue | pos = right
| lat = 1.326
| long = 172.983
| label2 = Kiritimati | label2_size = 90
| bg2 = lightgreen | pos2 = bottom
| lat2 = 1.867
| long2 = -157.4
}}

See also[ویرایش]