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

From blackwiki
Jump to navigation Jump to search
blackwiki>Plastikspork
(Undid revision 434710431 by 202.74.222.178 (talk))
m (19 revisions imported)
 
(9 intermediate revisions by 7 users not shown)
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 Tuvalu''' is a location map definition used to overlay markers and labels on an ''[[equirectangular projection]]'' map of [[Tuvalu]].  It is used by "[[Template:Location map]]" when invoked with parameter "Tuvalu": <code><nowiki>{{Location map | Tuvalu | ...}}</nowiki></code>. The markers are placed by [[latitude]] and [[longitude]] coordinates on the default map or a similar map image.
 
 
 
[[Image:{{{{BASEPAGENAME}}|image}}|left|thumb|200px|Location map for {{{{BASEPAGENAME}}|name}}]]
 
{| class="wikitable" style="font-size:95%;"
 
|-
 
! colspan="3" style="background-color:#DDD; color:#000" | Map parameters
 
|-
 
! name
 
| {{{{BASEPAGENAME}}|name}}
 
| name used in default map caption
 
|-
 
! image
 
| {{{{BASEPAGENAME}}|image}}
 
| file name of map image, without "Image:" or "File:"
 
|-
 
! x
 
| {{{{BASEPAGENAME}}|x}}
 
| an expression which evaluates as 0 along the left edge of the map, and 100 along the right edge of the map, where {{{2}}} and {{{3}}} are the degrees latitude and longitude respectively.
 
|-
 
! y
 
| {{{{BASEPAGENAME}}|y}}
 
| an expression which evaluates as 0 along the top edge of the map, and 100 along the bottom edge of the map, where {{{2}}} and {{{3}}} are the degrees latitude and longitude respectively.
 
|}
 
{{clear}}
 
 
 
== Usage ==
 
For a description of the parameters, see {{tl|Location map}} and {{tl|Location map many}}.
 
 
 
 
=== Location map: Eastern hemisphere, Deg/Min/Sec coordinates ===
 
=== Location map: Eastern hemisphere, Deg/Min/Sec coordinates ===
 
{{Location map | Tuvalu
 
{{Location map | Tuvalu
| width = 150 | float = right
+
| width = 150
| caption = Location of [[Nanumea]] in Tuvalu
+
| caption = [[Nanumea]] in Tuvalu
 +
| lat_deg= 05 | lat_min=41 | lat_sec= | lat_dir=S
 +
| lon_deg=176 | lon_min=12 | lon_sec= | lon_dir=E
 
| label = Nanumea
 
| label = Nanumea
 
| background = lightblue
 
| background = lightblue
 
| position = right
 
| position = right
| lat_deg= 05 | lat_min=41 | lat_sec= | lat_dir=S
 
| lon_deg=176 | lon_min=12 | lon_sec= | lon_dir=E
 
 
}}
 
}}
 
<pre>
 
<pre>
 
{{Location map | Tuvalu
 
{{Location map | Tuvalu
| width = 150 | float = right
+
| width = 150
| caption = Location of [[Nanumea]] in Tuvalu
+
| caption = [[Nanumea]] in Tuvalu
 
| label = Nanumea
 
| label = Nanumea
 +
| lat_deg= 05 | lat_min=41 | lat_sec= | lat_dir=S
 +
| lon_deg=176 | lon_min=12 | lon_sec= | lon_dir=E
 
| background = lightblue
 
| background = lightblue
 
| position = right
 
| position = right
| lat_deg= 05 | lat_min=41 | lat_sec= | lat_dir=S
 
| lon_deg=176 | lon_min=12 | lon_sec= | lon_dir=E
 
 
}}
 
}}
 
</pre>
 
</pre>
Line 55: Line 27:
 
=== Location map: Eastern hemisphere, Decimal coordinates ===
 
=== Location map: Eastern hemisphere, Decimal coordinates ===
 
{{Location map | Tuvalu
 
{{Location map | Tuvalu
| width = 150 | float = right
+
| width = 150
| caption = Location of [[Nanumea]] in Tuvalu
+
| caption = [[Nanumea]] in Tuvalu
 +
| lat = -5.683
 +
| long = 176.2
 
| label = Nanumea
 
| label = Nanumea
 
| background = lightblue
 
| background = lightblue
 
| position = right
 
| position = right
| lat = -5.683
 
| long = 176.2
 
 
}}
 
}}
 
<pre>
 
<pre>
 
{{Location map | Tuvalu
 
{{Location map | Tuvalu
| width = 150 | float = right
+
| width = 150
| caption = Location of [[Nanumea]] in Tuvalu
+
| caption = [[Nanumea]] in Tuvalu
 +
| lat = -5.683
 +
| long = 176.2
 
| label = Nanumea
 
| label = Nanumea
 
| background = lightblue
 
| background = lightblue
 
| position = right
 
| position = right
| lat = -5.683
 
| long = 176.2
 
 
}}
 
}}
 
</pre>
 
</pre>
Line 78: Line 50:
 
=== Location map: Western hemisphere, Deg/Min/Sec coordinates ===
 
=== Location map: Western hemisphere, Deg/Min/Sec coordinates ===
 
{{Location map | Tuvalu
 
{{Location map | Tuvalu
| width = 150 | float = right
+
| width = 150
 
| caption = Coordinates on Tuvalu map
 
| caption = Coordinates on Tuvalu map
 +
| lat_deg= 10 | lat_min=15 | lat_sec= | lat_dir=S
 +
| lon_deg=179 | lon_min=59 | lon_sec= | lon_dir=W
 
| label = 10°15′S 179°59′W
 
| label = 10°15′S 179°59′W
 
| background = lightgreen
 
| background = lightgreen
 
| position = left
 
| position = left
| lat_deg= 10 | lat_min=15 | lat_sec= | lat_dir=S
 
| lon_deg=179 | lon_min=59 | lon_sec= | lon_dir=W
 
 
}}
 
}}
 
<pre>
 
<pre>
 
{{Location map | Tuvalu
 
{{Location map | Tuvalu
| width = 150 | float = right
+
| width = 150
 
| caption = Coordinates on Tuvalu map
 
| caption = Coordinates on Tuvalu map
 +
| lat_deg= 10 | lat_min=15 | lat_sec= | lat_dir=S
 +
| lon_deg=179 | lon_min=59 | lon_sec= | lon_dir=W
 
| label = 10°15′S 179°59′W
 
| label = 10°15′S 179°59′W
 
| background = lightgreen
 
| background = lightgreen
 
| position = left
 
| position = left
| lat_deg= 10 | lat_min=15 | lat_sec= | lat_dir=S
 
| lon_deg=179 | lon_min=59 | lon_sec= | lon_dir=W
 
 
}}
 
}}
 
</pre>
 
</pre>
Line 101: Line 73:
 
=== Location map: Western hemisphere, Decimal coordinates ===
 
=== Location map: Western hemisphere, Decimal coordinates ===
 
{{Location map | Tuvalu
 
{{Location map | Tuvalu
| width = 150 | float = right
+
| width = 150
 
| caption = Coordinates on Tuvalu map
 
| caption = Coordinates on Tuvalu map
 +
| lat = -10.25
 +
| long = -179.983333
 
| label = -10.25, -179.983333
 
| label = -10.25, -179.983333
 
| background = lightgreen
 
| background = lightgreen
 
| position = left
 
| position = left
| lat = -10.25
 
| long = -179.983333
 
 
}}
 
}}
 
<pre>
 
<pre>
 
{{Location map | Tuvalu
 
{{Location map | Tuvalu
| width = 150 | float = right
+
| width = 150
 
| caption = Coordinates on Tuvalu map
 
| caption = Coordinates on Tuvalu map
 +
| lat = -10.25
 +
| long = -179.983333
 
| label = -10.25, -179.983333
 
| label = -10.25, -179.983333
 
| background = lightgreen
 
| background = lightgreen
 
| position = left
 
| position = left
| lat = -10.25
 
| long = -179.983333
 
 
}}
 
}}
 
</pre>
 
</pre>
{{clear}}
+
| see also =  
 
+
* [[Module:Location map/data/Pacific Ocean]]
== Technical details ==
 
{{Location map/modulo math details| top = -5.3| bottom = -11.0| left = 175.7| right  = -179.8}}
 
  
<includeonly>
+
}}<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:Location map by country templates|Tuvalu]]
+
[[Category:Location map templates by country|Tuvalu]]
[[Category:Location map templates crossing 180th meridian|Tuvalu]]
+
[[Category:Location map templates crossing the 180th meridian|Tuvalu]]
  
[[be-x-old:Шаблён:Лякалізацыйная мапа Тувалу]]
+
}}</includeonly>
[[de:Vorlage:Positionskarte Tuvalu]]
 
[[fr:Modèle:Géolocalisation/Tuvalu]]
 
[[he:תבנית:מפת מיקום/טובאלו]]
 
[[ja:Template:Location map Tuvalu]]
 
[[ka:თარგი:პოზრუკა ტუვალუ]]
 
[[ko:틀:위치 지도 투발루]]
 
[[nl:Sjabloon:Positiekaart Tuvalu]]
 
[[os:Шаблон:ПозКартæ Тувалу]]
 
[[pt:Predefinição:Mapa de localização/Tuvalu]]
 
[[ru:Шаблон:ПозКарта Тувалу]]
 
</includeonly>
 

Latest revision as of 07:30, 27 September 2020


Location map of Tuvalu
name Tuvalu
border
coordinates
-5.3
175.7 ←↕→ -179.8
-11
map center Lua error: callParserFunction: function "#coordinates" was not found.
image Tuvalu location map.svg
400x400px


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

Map definition

  • name = Tuvalu
    Name used in the default map caption
  • bottom = -11
    Latitude at bottom edge of map, in decimal degrees
  • left = 175.7
    Longitude at left edge of map, in decimal degrees
  • right = -179.8
    Longitude at right edge of map, in decimal degrees

Precision

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

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

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

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

Examples using location map templates

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

{{Location map | Tuvalu
| width = 150
| caption = [[Nanumea]] in Tuvalu
| label = Nanumea
| lat_deg= 05 | lat_min=41 | lat_sec= | lat_dir=S
| lon_deg=176 | lon_min=12 | lon_sec= | lon_dir=E
| background = lightblue
| position = right
}}

Location map: Eastern hemisphere, Decimal coordinates

{{Location map | Tuvalu
| width = 150
| caption = [[Nanumea]] in Tuvalu
| lat = -5.683
| long = 176.2
| label = Nanumea
| background = lightblue
| position = right
}}

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

Coordinates on Tuvalu map
{{Location map | Tuvalu
| width = 150
| caption = Coordinates on Tuvalu map
| lat_deg= 10 | lat_min=15 | lat_sec= | lat_dir=S
| lon_deg=179 | lon_min=59 | lon_sec= | lon_dir=W
| label = 10°15′S 179°59′W
| background = lightgreen
| position = left
}}

Location map: Western hemisphere, Decimal coordinates

Coordinates on Tuvalu map
{{Location map | Tuvalu
| width = 150
| caption = Coordinates on Tuvalu map
| lat = -10.25
| long = -179.983333
| label = -10.25, -179.983333
| background = lightgreen
| position = left
}}

See also

Location map templates

Creating new map definitions