Module:Location map/data/Fiji

From blackwiki
< Module:Location map
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)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Location map of Fiji
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.

Usage

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

Map definition

  • name = Fiji
    Name used in the default map caption
  • 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

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