Difference between revisions of "Module:Location map/data/Kiribati/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Frietjes
blackwiki>Frietjes
Line 1: Line 1:
{{Documentation subpage}}
+
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
{{Module:Location map/data/doc
 
+
| examples =
'''Template:Location map Kiribati''' is a location map definition used to overlay markers and labels on an [[equirectangular projection]] map of [[Kiribati]]. 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 "Kiribati":
 
* {{tlx|Location map | Kiribati&nbsp;| ...}}
 
* {{tlx|Location map many | Kiribati&nbsp;| ...}}
 
* {{tlx|Location map+ | Kiribati&nbsp;| ...}}
 
* {{tlx|Location map~ | Kiribati&nbsp;| ...}}
 
 
 
== Map definition ==
 
; name
 
: used in default map caption (<tt>{{{{BASEPAGENAME}}|name}}</tt>)
 
; image
 
: the default map image, without "Image:" or "File:" (<tt>[[:File:{{{{BASEPAGENAME}}|image}}|{{{{BASEPAGENAME}}|image}}]]</tt>)
 
; image1
 
: an alternative map image, usually a relief map (<tt>[[:File:{{{{BASEPAGENAME}}|image1}}|{{{{BASEPAGENAME}}|image1}}]]</tt>)
 
; x
 
: 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
 
: 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
 
 
 
=== Technical details ===
 
{{Location map/modulo math details| top= 6| bottom =-13| left=169| right=-149}}
 
 
 
== Alternative map ==
 
The map defined as '''image1''' (<tt>{{{{BASEPAGENAME}}|image1}}</tt>) can be displayed by using the ''AlternativeMap'' or ''relief'' parameters in {{tl|Location map}}, {{tl|Location map many}} and {{tl|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 ===
 
=== Location map: Eastern hemisphere, Deg/Min/Sec coordinates ===
 
{{Location map | Kiribati
 
{{Location map | Kiribati
Line 186: Line 158:
 
}}
 
}}
 
</pre>
 
</pre>
{{clear}}
+
</pre>
 +
| see also =
 +
* [[Module:Location map/data/Pacific Ocean]]
  
== See also ==
+
}}<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
* [[Template:Location map]]
+
<!-- Categories below this line; interwikis at Wikidata -->
* [[Template:Location map+]]
 
* [[Template:Location map many]]
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
 
[[Category:Location map by country templates|Kiribati]]
 
[[Category:Location map by country templates|Kiribati]]
 
[[Category:Location map templates crossing 180th meridian|Kiribati]]
 
[[Category:Location map templates crossing 180th meridian|Kiribati]]
  
</includeonly>
+
}}</includeonly>

Revision as of 12:34, 22 March 2018


Location map of Kiribati
name Kiribati
border
coordinates
6
169 ←↕→ -149
-13
map center Lua error: callParserFunction: function "#coordinates" was not found.
image Kiribati location map.svg
400x400px
image1 Kiribati relief location map.jpg
400x400px


Module:Location map/data/Kiribati is a location map definition used to overlay markers and labels on an equirectangular projection map of Kiribati. 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 "Kiribati":

Map definition

  • name = Kiribati
    Name used in the default map caption
  • bottom = -13
    Latitude at bottom edge of map, in decimal degrees
  • left = 169
    Longitude at left edge of map, in decimal degrees
  • right = -149
    Longitude at right edge of map, in decimal degrees

Alternative map

The {{Location map}}, {{Location map many}}, and {{Location map+}} templates have parameters to specify an alternative map image. The map displayed as image1 can be used with the relief or AlternativeMap parameters. Examples may be found below or in the following:

Precision

Longitude: from West to East this map definition covers 42 degrees.

  • At an image width of 200 pixels, that is 0.21 degrees per pixel.
  • At an image width of 1000 pixels, that is 0.042 degrees per pixel.

Latitude: from North to South this map definition covers 19 degrees.

  • At an image height of 200 pixels, that is 0.095 degrees per pixel.
  • At an image height of 1000 pixels, that is 0.019 degrees per pixel.

Examples using location map templates

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

{{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

{{Location map | Kiribati
| width = 250 | float = right
| caption = Location of [[South Tarawa]] 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

{{Location map | Kiribati
| AlternativeMap = Kiribati relief location map.jpg
| 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, relief map

{{Location map | Kiribati
| relief = yes
| width = 250 | float = right
| caption = Location of [[Kiritimati]] 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 many | Kiribati
| AlternativeMap = Kiribati relief location map.jpg
| 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, relief map

{{Location map many | Kiribati
| relief = yes
| width = 250 | float = right
| caption = [[South Tarawa]] and [[Kiritimati]] 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

Location map templates

Creating new map definitions