Jump to content

Module:Location map/data/Kiribati/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Zyxw (talk | contribs) at 20:11, 26 September 2010 (created documentation with examples). 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)

Template:Location map Kiribati is a location map definition used to overlay markers and labels on an equirectangular projection map of Kiribati. It is used by "Template:Location map" when invoked with parameter "Kiribati": {{Location map | Kiribati | ...}}. The markers are placed by latitude and longitude coordinates on the default map or a similar map image.

[[Image:Template:Location map/data/Kiribati|left|thumb|300px|Location map for Template:Location map/data/Kiribati]]

Map parameters
name Template:Location map/data/Kiribati name used in default map caption
image Template:Location map/data/Kiribati file name of map image, without "Image:" or "File:"
top Template:Location map/data/Kiribati latitude at top of map
bottom Template:Location map/data/Kiribati latitude at bottom of map
left Template:Location map/data/Kiribati longitude at left edge of map
right Template:Location map/data/Kiribati longitude at right edge of map Expression error: Unrecognized punctuation character "[".
crosses180 Template:Location map/data/Kiribati for equirectangular projection maps that cross the 180th meridian

Usage

For a description of the parameters, see {{Location map}} and {{Location map many}}.

Location map: Eastern hemisphere, Deg/Min/Sec coordinates

South Tarawa is located in Kiribati
South Tarawa
South Tarawa
Location of South Tarawa in Kiribati
{{Location map | Kiribati
| width = 250 | float = right
| caption = Location of [[South Tarawa]] 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 is located in Kiribati
South Tarawa
South Tarawa
Location of South Tarawa in Kiribati
{{Location map | Kiribati
| width = 250 | float = right
| caption = Location of [[South Tarawa]] in Kiribati
| label = South Tarawa
| background = lightblue
| position = right
| lat = 1.32556
| long = 172.9833333
}}

Location map: Western hemisphere, Deg/Min/Sec coordinates

Kiritimati is located in Kiribati
Kiritimati
Kiritimati
Location of Kiritimati in Kiribati
{{Location map | Kiribati
| width = 250 | float = right
| caption = Location of [[Kiritimati]] 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

Kiritimati is located in Kiribati
Kiritimati
Kiritimati
Location of Kiritimati in Kiribati
{{Location map | Kiribati
| width = 250 | float = right
| caption = Location of [[Kiritimati]] in Kiribati
| label = Kiritimati
| background = lightgreen
| position = bottom
| lat = 1.867
| long = -157.4
}}

As shown above, the current implementation of Template:Location map does not properly display the marker on equirectangular projection maps using crosses180 when given a negative decimal longitude (western hemisphere). One workaround is to include the lon_dir parameter as shown below: Lua error in Module:Location_map at line 391: A hemisphere can only be provided with DMS degrees for longitude.

{{Location map | Kiribati
| width = 250 | float = right
| caption = Location of [[Kiritimati]] in Kiribati
| label = Kiritimati
| background = lightgreen
| position = bottom
| lat = 1.867
| long = -157.4
| lon_dir = W
}}

Location map many: Deg/Min/Sec coordinates

Location map/data/Kiribati/doc is located in Kiribati
South Tarawa
South Tarawa
Kiritimati
Kiritimati
{{Location map many | Kiribati
| width = 250 | float = right
| caption = [[South Tarawa]] and [[Kiritimati]] 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

Location map/data/Kiribati/doc is located in Kiribati
South Tarawa
South Tarawa
Kiritimati
Kiritimati
{{Location map many | Kiribati
| width = 250 | float = right
| caption = [[South Tarawa]] and [[Kiritimati]] in Kiribati
| label = South Tarawa | label_size = 90
| bg = lightblue | pos = right
| lat = 1.32556
| long = 172.9833333
| label2 = Kiritimati | label2_size = 90
| bg2 = lightgreen | pos2 = bottom
| lat2 = 1.867
| long2 = -157.4
}}

As shown above, the current implementation of Template:Location map many does not properly display the marker on equirectangular projection maps using crosses180 when given a negative decimal longitude (western hemisphere). One workaround is to include the parameter lon_dir (or lon2_dir, lon3_dir, etc.): Lua error in Module:Location_map at line 391: A hemisphere can only be provided with DMS degrees for longitude.

{{Location map many | Kiribati
| width = 250 | float = right
| caption = [[South Tarawa]] and [[Kiritimati]] in Kiribati
| label = South Tarawa | label_size = 90
| bg = lightblue | pos = right
| lat = 1.32556
| long = 172.9833333
| label2 = Kiritimati | label2_size = 90
| bg2 = lightgreen | pos2 = bottom
| lat2 = 1.867
| long2 = -157.4
| lon2_dir = W
}}