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

From blackwiki
Jump to navigation Jump to search
blackwiki>Zyxw
(create documentation)
 
m (8 revisions imported)
 
(7 intermediate revisions by 5 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:Barbados-CIA WFB Map.png|thumb|250px|Map of Barbados]]
'''Template:Location map Barbados''' is a location map definition used to overlay markers and labels on an [[equirectangular projection]] map of [[Barbados]]. 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 "Barbados":
 
* {{tlx|Location map | Barbados&nbsp;| ...}}
 
* {{tlx|Location map many | Barbados&nbsp;| ...}}
 
* {{tlx|Location map+ | Barbados&nbsp;| ...}}
 
* {{tlx|Location map~ | Barbados&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 | Barbados
 
{{Location map | Barbados
| width = 150
+
| width   = 200
| lat  = 13.106
+
| lat_deg = 13.106
| long  = -59.613
+
| lon_deg = -59.613
| label = Bridgetown
+
| label   = Bridgetown
 
}}
 
}}
 
<pre style="width:30em">
 
<pre style="width:30em">
 
{{Location map | Barbados
 
{{Location map | Barbados
| width = 150
+
| width   = 200
| lat  = 13.106
+
| lat_deg = 13.106
| long  = -59.613
+
| lon_deg = -59.613
| label = Bridgetown
+
| label   = Bridgetown
 
}}
 
}}
 
</pre>
 
</pre>
 
{{clear}}
 
{{clear}}
  
=== Location map, using relief map (image1) ===
+
=== Location map many, using relief map (image1) ===
{{Location map | Barbados
+
{{Location map many | Barbados
| relief = yes
+
| relief   = yes
| width  = 150
+
| width   = 200
| lat    = 13.106
+
| caption = Two locations in Barbados
| long  = -59.613
+
| lat1_deg = 13.106
| label  = Bridgetown
+
| lon1_deg = -59.613
 +
| label1  = Bridgetown
 +
| lat2_deg = 13.254
 +
| lon2_deg = -59.641
 +
| label2  = Speightstown
 
}}
 
}}
 
<pre style="width:30em">
 
<pre style="width:30em">
{{Location map | Barbados
 
| relief = yes
 
| width  = 150
 
| lat    = 13.106
 
| long  = -59.613
 
| label  = Bridgetown
 
}}
 
</pre>
 
{{clear}}
 
 
=== Location map many, using default map ===
 
 
{{Location map many | Barbados
 
{{Location map many | Barbados
| caption = Two locations in Barbados
+
| relief  = yes
| width   = 150
+
| width    = 200
| lat    = 13.106
+
| caption = Two locations in Barbados
| long   = -59.613
+
| lat1_deg = 13.106
| label  = Bridgetown
+
| lon1_deg = -59.613
| lat2    = 13.254
+
| label1   = Bridgetown
| long2  = -59.641
+
| lat2_deg = 13.254
| label2 = Speightstown
+
| lon2_deg = -59.641
}}
+
| label2   = Speightstown
<pre style="width:35em">
 
{{Location map many | Barbados
 
| caption = Two locations in Barbados
 
| width  = 150
 
| lat    = 13.106
 
| long    = -59.613
 
| label   = Bridgetown
 
| lat2    = 13.254
 
| long2  = -59.641
 
| label2 = Speightstown
 
 
}}
 
}}
 
</pre>
 
</pre>
Line 95: Line 50:
 
{{Location map+ | Barbados
 
{{Location map+ | Barbados
 
| AlternativeMap = Barbados physical map.svg
 
| AlternativeMap = Barbados physical map.svg
 +
| width  = 200
 
| caption = Two locations in Barbados
 
| caption = Two locations in Barbados
| width  = 150
 
 
| places  =
 
| places  =
 
   {{Location map~ | Barbados
 
   {{Location map~ | Barbados
   | lat  = 13.106
+
   | lat_deg = 13.106
   | long  = -59.613
+
   | lon_deg = -59.613
   | label = Bridgetown
+
   | label   = Bridgetown
 
   }}
 
   }}
 
   {{Location map~ | Barbados
 
   {{Location map~ | Barbados
   | lat  = 13.254
+
   | lat_deg = 13.254
   | long  = -59.641
+
   | lon_deg = -59.641
   | label = Speightstown
+
   | label   = Speightstown
 
   }}
 
   }}
 
}}
 
}}
Line 112: Line 67:
 
{{Location map+ | Barbados
 
{{Location map+ | Barbados
 
| AlternativeMap = Barbados physical map.svg
 
| AlternativeMap = Barbados physical map.svg
 +
| width  = 200
 
| caption = Two locations in Barbados
 
| caption = Two locations in Barbados
| width  = 150
 
 
| places  =
 
| places  =
 
   {{Location map~ | Barbados
 
   {{Location map~ | Barbados
   | lat  = 13.106
+
   | lat_deg = 13.106
   | long  = -59.613
+
   | lon_deg = -59.613
   | label = Bridgetown
+
   | label   = Bridgetown
 
   }}
 
   }}
 
   {{Location map~ | Barbados
 
   {{Location map~ | Barbados
   | lat  = 13.254
+
   | lat_deg = 13.254
   | long  = -59.641
+
   | lon_deg = -59.641
   | label = Speightstown
+
   | label   = Speightstown
 
   }}
 
   }}
 
}}
 
}}
 
</pre>
 
</pre>
{{clear}}
+
| see also =
 +
* [[Module:Location map/data/Lesser Antilles]]
  
== See also ==
+
}}<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
* [[Template:Location map]]
+
<!-- Categories below this line; interwikis at Wikidata -->
* [[Template:Location map+]]
+
[[Category:Location map templates by country|Barbados]]
* [[Template:Location map many]]
 
<includeonly>
 
<!-- Categories and interwikis go here: -->
 
  
</includeonly>
+
}}</includeonly>

Latest revision as of 06:23, 27 September 2020


Location map of Barbados
name Barbados
border
coordinates
13.349
-59.69 ←↕→ -59.399
13.034
map center Lua error: callParserFunction: function "#coordinates" was not found.
image Barbados location map.svg
400x400px
image1 Barbados physical map.svg
400x400px

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

Map definition

  • name = Barbados
    Name used in the default map caption
  • bottom = 13.034
    Latitude at bottom edge of map, in decimal degrees
  • left = -59.69
    Longitude at left edge of map, in decimal degrees
  • right = -59.399
    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 0.291 degrees.

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

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

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

Examples using location map templates

Location map, using default map (image)

Bridgetown (Barbados)
{{Location map | Barbados
| width   = 200
| lat_deg = 13.106
| lon_deg = -59.613
| label   = Bridgetown
}}

Location map many, using relief map (image1)

{{Location map many | Barbados
| relief   = yes
| width    = 200
| caption  = Two locations in Barbados
| lat1_deg = 13.106
| lon1_deg = -59.613
| label1   = Bridgetown
| lat2_deg = 13.254
| lon2_deg = -59.641
| label2   = Speightstown
}}

Location map+, using AlternativeMap

{{Location map+ | Barbados
| AlternativeMap = Barbados physical map.svg
| width   = 200
| caption = Two locations in Barbados
| places  =
  {{Location map~ | Barbados
  | lat_deg = 13.106
  | lon_deg = -59.613
  | label   = Bridgetown
  }}
  {{Location map~ | Barbados
  | lat_deg = 13.254
  | lon_deg = -59.641
  | label   = Speightstown
  }}
}}

See also

Location map templates

Creating new map definitions