Module:Location map/data/Fiji
< Module:Location map
Jump to navigation
Jump to search
Revision as of 12:22, 22 March 2018 by blackwiki>Frietjes (created from Template:Location map Fiji, edit history will be saved in Module talk:Location map/data/Fiji/doc)
| name | Fiji | ||
|---|---|---|---|
| x | (100*(($2 + ($2 < 0)*360) - 174.4)/((-177.9 + 360) - 174.4)) | ||
| y | (100*($1 - (-12.3))/((-21.8) - (-12.3))) | ||
| image | Fiji location map.svg
| ||
| 400x400px | |||
Module:Location map/data/Fiji is a location map definition used to overlay markers and labels on an equirectangular projection map of Fiji. The markers are placed by latitude and longitude coordinates on the default map or a similar map image.
Contents
- 1 Usage
- 2 Map definition
- 3 Examples using location map templates
- 3.1 Location map: Eastern hemisphere, Deg/Min/Sec coordinates
- 3.2 Location map: Eastern hemisphere, Decimal coordinates
- 3.3 Location map: Western hemisphere, Deg/Min/Sec coordinates
- 3.4 Location map: Western hemisphere, Decimal coordinates
- 3.5 Location map many: Deg/Min/Sec coordinates
- 3.6 Location map many: Decimal coordinates
- 4 See also
Usage
These definitions are used by the following templates when invoked with parameter "Fiji":
{{Location map | Fiji | ...}}{{Location map many | Fiji | ...}}{{Location map+ | Fiji | ...}}{{Location map~ | Fiji | ...}}
Map definition
name = Fiji- Name used in the default map caption
image = Fiji location map.svg- The default map image, without "Image:" or "File:"
x = (100*(($2 + ($2 < 0)*360) - 174.4)/((-177.9 + 360) - 174.4))- An expression to calculate a location on the map via its longitude; evaluates as 0 along the left edge and 100 along the right edge
y = (100*($1 - (-12.3))/((-21.8) - (-12.3)))- An expression to calculate a location on the map via its latitude; evaluates as 0 along the top edge and 100 along the bottom edge
Examples using location map templates
Location map: Eastern hemisphere, Deg/Min/Sec coordinates
Location of Eori in Fiji
{{Location map | Fiji
| width = 150
| caption = Location of [[Eori]] in Fiji
| label = Eori
| background = lightblue
| position = left
| lat_deg= 17 | lat_min=26 | lat_sec=17 | lat_dir=S
| lon_deg=177 | lon_min=03 | lon_sec=48 | lon_dir=E
}}
Location map: Eastern hemisphere, Decimal coordinates
Location of Eori in Fiji
{{Location map | Fiji
| width = 150
| caption = Location of [[Eori]] in Fiji
| label = Eori
| background = lightblue
| position = left
| lat = -17.43806
| long = 177.06333
}}
Location map: Western hemisphere, Deg/Min/Sec coordinates
Location of Batiki in Fiji
{{Location map | Fiji
| width = 150
| caption = Location of [[Batiki]] in Fiji
| label = Batiki
| background = lightgreen
| position = bottom
| lat_deg = 17 | lat_min = 47 | lat_sec = | lat_dir = S
| lon_deg = 179 | lon_min = 09 | lon_sec = | lon_dir = W
}}
Location map: Western hemisphere, Decimal coordinates
Location of Batiki in Fiji
{{Location map | Fiji
| width = 150
| caption = Location of [[Batiki]] in Fiji
| label = Batiki
| background = lightgreen
| position = bottom
| lat = -17.783
| long = -179.15
}}
Location map many: Deg/Min/Sec coordinates
{{Location map many | Fiji
| width = 150
| caption = [[Eori]] and [[Batiki]] in Fiji
| label = Eori | label_size = 90 | bg = lightblue | pos = left
| lat_deg = 17 | lat_min = 26 | lat_sec = 17 | lat_dir = S
| lon_deg =177 | lon_min = 03 | lon_sec = 48 | lon_dir = E
| label2 = Batiki | label2_size = 90 | bg2 = lightgreen | pos2 = bottom
| lat2_deg = 17 | lat2_min = 47 | lat2_sec = | lat2_dir = S
| lon2_deg =179 | lon2_min = 09 | lon2_sec = | lon2_dir = W
}}
Location map many: Decimal coordinates
{{Location map many | Fiji
| width = 150
| caption = [[Eori]] and [[Batiki]] in Fiji
| label = Eori | label_size = 90
| bg = lightblue | pos = left
| lat = -17.43806
| long = 177.06333
| label2 = Batiki | label2_size = 90
| bg2 = lightgreen | pos2 = bottom
| lat2 = -17.783
| long2 = -179.15
}}
See also
Location map templates
- Template:Location map, to display one mark and label using latitude and longitude
- Template:Location map many, to display up to nine marks and labels
- Template:Location map+, to display an unlimited number of marks and labels
Creating new map definitions
return {
name = 'Fiji',
y = '(100*($1 - (-12.3))/((-21.8) - (-12.3)))',
x = '(100*(($2 + ($2 < 0)*360) - 174.4)/((-177.9 + 360) - 174.4))',
image = 'Fiji location map.svg'
}