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

From blackwiki
Jump to navigation Jump to search
blackwiki>Zyxw
(create documentation)
 
m (7 revisions imported)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
+
<!-- Place categories where indicated at the bottom of this page; interwikis at Wikidata -->
<!-- Categories and interwikis go at the bottom of this page. -->
+
{{Module:Location map/data/doc
 
+
|image=[[File:Belize-CIA WFB Map.png|thumb|250px|Map of Belize]]
'''Template:Location map Belize''' is a location map definition used to overlay markers and labels on an [[equirectangular projection]] map of [[Belize]]. The markers are placed by [[latitude]] and [[longitude]] coordinates on the default map or a similar map image.
+
|examples=
 
 
== Usage ==
 
These definitions are used by the following templates when invoked with parameter "Belize":
 
* {{tlx|Location map | Belize&nbsp;| ...}}
 
* {{tlx|Location map many | Belize&nbsp;| ...}}
 
* {{tlx|Location map+ | Belize&nbsp;| ...}}
 
* {{tlx|Location map~ | Belize&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>)
 
; top
 
: [[latitude]] at top edge of map, in [[decimal degrees]] (<tt>{{{{BASEPAGENAME}}|top}}</tt>)
 
; bottom
 
: latitude at bottom edge of map, in decimal degrees (<tt>{{{{BASEPAGENAME}}|bottom}}</tt>)
 
; left
 
: [[longitude]] at left edge of map, in decimal degrees (<tt>{{{{BASEPAGENAME}}|left}}</tt>)
 
; right
 
: longitude at right edge of map, in decimal degrees (<tt>{{{{BASEPAGENAME}}|right}}</tt>)
 
 
 
== 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, using default map (image) ===
 
=== Location map, using default map (image) ===
 
{{Location map | Belize
 
{{Location map | Belize
| width = 150
+
| width   = 150
| lat  = 17.25
+
| lat_deg = 17.25
| long  = -88.77
+
| lon_deg = -88.77
| label = Belmopan
+
| label   = Belmopan
 
}}
 
}}
 
<pre style="width:30em">
 
<pre style="width:30em">
 
{{Location map | Belize
 
{{Location map | Belize
| width = 150
+
| width   = 150
| lat  = 17.25
+
| lat_deg = 17.25
| long  = -88.77
+
| lon_deg = -88.77
| label = Belmopan
+
| label   = Belmopan
 
}}
 
}}
 
</pre>
 
</pre>
 
{{clear}}
 
{{clear}}
  
=== Location map, using relief map (image1) ===
+
=== Location map many, using relief map (image1) ===
{{Location map | Belize
+
{{Location map many | Belize
| relief = yes
+
| relief   = yes
| width  = 150
+
| width   = 150
| lat    = 17.25
+
| caption = Two locations in Belize
| long  = -88.77
+
| lat1_deg = 17.25
| label  = Belmopan
+
| lon1_deg = -88.77
 +
| label1  = Belmopan
 +
| pos1    = bottom
 +
| lat2_deg = 17.505
 +
| lon2_deg = -88.187
 +
| label2  = Belize City
 +
| pos2    = top
 
}}
 
}}
 
<pre style="width:30em">
 
<pre style="width:30em">
{{Location map | Belize
 
| relief = yes
 
| width  = 150
 
| lat    = 17.25
 
| long  = -88.77
 
| label  = Belmopan
 
}}
 
</pre>
 
{{clear}}
 
 
=== Location map many, using default map ===
 
 
{{Location map many | Belize
 
{{Location map many | Belize
| caption = Two locations in Belize
+
| relief  = yes
| width   = 150
+
| width   = 150
| lat    = 17.25
+
| caption = Two locations in Belize
| long    = -88.77
+
| lat1_deg = 17.25
| label  = Belmopan
+
| lon1_deg = -88.77
| pos    = bottom
+
| label1   = Belmopan
| lat2    = 17.505
+
| pos1     = bottom
| long2  = -88.187
+
| lat2_deg = 17.505
| label2 = Belize City
+
| lon2_deg = -88.187
| pos2    = top
+
| label2   = Belize City
}}
+
| pos2     = top
<pre style="width:35em">
 
{{Location map many | Belize
 
| caption = Two locations in Belize
 
| width  = 150
 
| lat    = 17.25
 
| long    = -88.77
 
| label   = Belmopan
 
| pos     = bottom
 
| lat2    = 17.505
 
| long2  = -88.187
 
| label2 = Belize City
 
| pos2   = top
 
 
}}
 
}}
 
</pre>
 
</pre>
Line 99: Line 54:
 
{{Location map+ | Belize
 
{{Location map+ | Belize
 
| AlternativeMap = Belize physical map.svg
 
| AlternativeMap = Belize physical map.svg
 +
| width  = 150
 
| caption = Two locations in Belize
 
| caption = Two locations in Belize
| width  = 150
 
 
| places  =
 
| places  =
 
   {{Location map~ | Belize
 
   {{Location map~ | Belize
   | lat  = 17.25
+
   | lat_deg  = 17.25
   | long = -88.77
+
   | lon_deg = -88.77
   | label = Belmopan
+
   | label   = Belmopan
 
   | position = bottom
 
   | position = bottom
 
   }}
 
   }}
 
   {{Location map~ | Belize
 
   {{Location map~ | Belize
   | lat  = 17.505
+
   | lat_deg  = 17.505
   | long = -88.187
+
   | lon_deg = -88.187
   | label = Belize City
+
   | label   = Belize City
 
   | position = top
 
   | position = top
 
   }}
 
   }}
Line 118: Line 73:
 
{{Location map+ | Belize
 
{{Location map+ | Belize
 
| AlternativeMap = Belize physical map.svg
 
| AlternativeMap = Belize physical map.svg
 +
| width  = 150
 
| caption = Two locations in Belize
 
| caption = Two locations in Belize
| width  = 150
 
 
| places  =
 
| places  =
 
   {{Location map~ | Belize
 
   {{Location map~ | Belize
   | lat  = 17.25
+
   | lat_deg  = 17.25
   | long = -88.77
+
   | lon_deg = -88.77
   | label = Belmopan
+
   | label   = Belmopan
 
   | position = bottom
 
   | position = bottom
 
   }}
 
   }}
 
   {{Location map~ | Belize
 
   {{Location map~ | Belize
   | lat  = 17.505
+
   | lat_deg  = 17.505
   | long = -88.187
+
   | lon_deg = -88.187
   | label = Belize City
+
   | label   = Belize City
 
   | position = top
 
   | position = top
 
   }}
 
   }}
 
}}
 
}}
 
</pre>
 
</pre>
{{clear}}
 
  
== See also ==
+
| see also =
* [[Template:Location map]]
 
* [[Template:Location map+]]
 
* [[Template:Location map many]]
 
<includeonly>
 
<!-- Categories and interwikis go here: -->
 
  
</includeonly>
+
}}<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 +
<!-- Categories below this line; interwikis at Wikidata -->
 +
[[Category:Location map templates by country|Belize]]
 +
}}</includeonly>

Latest revision as of 06:24, 27 September 2020


Location map of Belize
name Belize
border
coordinates
18.9
-89.7 ←↕→ -87.2
15.6
map center Lua error: callParserFunction: function "#coordinates" was not found.
image Belize location map.svg
400x400px
image1 Belize physical map.svg
400x400px

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

Map definition

  • name = Belize
    Name used in the default map caption
  • bottom = 15.6
    Latitude at bottom edge of map, in decimal degrees
  • left = -89.7
    Longitude at left edge of map, in decimal degrees
  • right = -87.2
    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 2.5 degrees.

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

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

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

Examples using location map templates

Location map, using default map (image)

Belmopan (Belize)
{{Location map | Belize
| width   = 150
| lat_deg = 17.25
| lon_deg = -88.77
| label   = Belmopan
}}

Location map many, using relief map (image1)

{{Location map many | Belize
| relief   = yes
| width    = 150
| caption  = Two locations in Belize
| lat1_deg = 17.25
| lon1_deg = -88.77
| label1   = Belmopan
| pos1     = bottom
| lat2_deg = 17.505
| lon2_deg = -88.187
| label2   = Belize City
| pos2     = top
}}

Location map+, using AlternativeMap

{{Location map+ | Belize
| AlternativeMap = Belize physical map.svg
| width   = 150
| caption = Two locations in Belize
| places  =
  {{Location map~ | Belize
  | lat_deg  = 17.25
  | lon_deg  = -88.77
  | label    = Belmopan
  | position = bottom
  }}
  {{Location map~ | Belize
  | lat_deg  = 17.505
  | lon_deg  = -88.187
  | label    = Belize City
  | position = top
  }}
}}

See also

Location map templates

Creating new map definitions