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

From blackwiki
Jump to navigation Jump to search
blackwiki>Zyxw
(create documentation)
 
m (9 revisions imported)
 
(8 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
+
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
<!-- Categories and interwikis go at the bottom of this page. -->
+
{{Module:Location map/data/doc|image=[[File:Albania-CIA WFB Map.png|thumb|250px|Map of Albania]]
 
+
|examples=
'''Template:Location map Albania''' is a location map definition used to overlay markers and labels on an [[equirectangular projection]] map of [[Albania]]. 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 "Albania":
 
* {{tlx|Location map | Albania&nbsp;| ...}}
 
* {{tlx|Location map many | Albania&nbsp;| ...}}
 
* {{tlx|Location map+ | Albania&nbsp;| ...}}
 
* {{tlx|Location map~ | Albania&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 | Albania
 
{{Location map | Albania
| width = 150
+
| width   = 150
| lat    = 41.326
+
| lat_deg = 41.33
| long  = 19.816
+
| lon_deg = 19.82
| label = Tirana
+
| label   = Tirana
 
}}
 
}}
 
<pre style="width:30em">
 
<pre style="width:30em">
 
{{Location map | Albania
 
{{Location map | Albania
| width = 150
+
| width   = 150
| lat    = 41.326
+
| lat_deg = 41.33
| long  = 19.816
+
| lon_deg = 19.82
| label = Tirana
+
| label   = Tirana
 
}}
 
}}
 
</pre>
 
</pre>
 
{{clear}}
 
{{clear}}
  
=== Location map, using relief map (image1) ===
+
=== Location map many, using relief map (image1) ===
{{Location map | Albania
+
{{Location map many | Albania
| relief = yes
+
| relief   = yes
| width  = 150
+
| width   = 150
| lat    = 41.326
+
| caption = Two locations in Albania
| long  = 19.816
+
| lat1_deg = 41.33
| label  = Tirana
+
| lon1_deg = 19.82
 +
| label1  = Tirana
 +
| lat2_deg = 40.62
 +
| lon2_deg = 20.77
 +
| label2  = Korçë
 
}}
 
}}
 
<pre style="width:30em">
 
<pre style="width:30em">
{{Location map | Albania
 
| relief = yes
 
| width  = 150
 
| lat    = 41.326
 
| long  = 19.816
 
| label  = Tirana
 
}}
 
</pre>
 
{{clear}}
 
 
=== Location map many, using default map ===
 
{{Location map many | Albania
 
| caption = Two locations in Albania
 
| width  = 150
 
| lat    = 41.326
 
| long    = 19.816
 
| label  = Tirana
 
| lat2    = 40.617
 
| long2  = 20.767
 
| label2  = Korçë
 
}}
 
<pre style="width:35em">
 
 
{{Location map many | Albania
 
{{Location map many | Albania
| caption = Two locations in Albania
+
| relief  = yes
| width  = 150
+
| width    = 150
| lat    = 41.326
+
| caption = Two locations in Albania
| long    = 19.816
+
| lat1_deg = 41.33
| label   = Tirana
+
| lon1_deg = 19.82
| lat2    = 40.617
+
| label1   = Tirana
| long2  = 20.767
+
| lat2_deg = 40.62
| label2 = Korçë
+
| lon2_deg = 20.77
 +
| label2   = Korçë
 
}}
 
}}
 
</pre>
 
</pre>
Line 95: Line 49:
 
{{Location map+ | Albania
 
{{Location map+ | Albania
 
| AlternativeMap = Albania relief location map.jpg
 
| AlternativeMap = Albania relief location map.jpg
 +
| width  = 150
 
| caption = Two locations in Albania
 
| caption = Two locations in Albania
| width  = 150
 
 
| places  =
 
| places  =
 
   {{Location map~ | Albania
 
   {{Location map~ | Albania
   | lat  = 41.326
+
   | lat_deg = 41.33
   | long  = 19.816
+
   | lon_deg = 19.82
   | label = Tirana
+
   | label   = Tirana
 
   }}
 
   }}
 
   {{Location map~ | Albania
 
   {{Location map~ | Albania
   | lat  = 40.617
+
   | lat_deg = 40.62
   | long  = 20.767
+
   | lon_deg = 20.77
   | label = Korçë
+
   | label   = Korçë
 
   }}
 
   }}
 
}}
 
}}
Line 112: Line 66:
 
{{Location map+ | Albania
 
{{Location map+ | Albania
 
| AlternativeMap = Albania relief location map.jpg
 
| AlternativeMap = Albania relief location map.jpg
 +
| width  = 150
 
| caption = Two locations in Albania
 
| caption = Two locations in Albania
| width  = 150
 
 
| places  =
 
| places  =
 
   {{Location map~ | Albania
 
   {{Location map~ | Albania
   | lat  = 41.326
+
   | lat_deg = 41.33
   | long  = 19.816
+
   | lon_deg = 19.82
   | label = Tirana
+
   | label   = Tirana
 
   }}
 
   }}
 
   {{Location map~ | Albania
 
   {{Location map~ | Albania
   | lat  = 40.617
+
   | lat_deg = 40.62
   | long  = 20.767
+
   | lon_deg = 20.77
   | label = Korçë
+
   | label   = Korçë
 
   }}
 
   }}
 
}}
 
}}
 
</pre>
 
</pre>
{{clear}}
+
}}
 
 
== See also ==
 
* [[Template:Location map]]
 
* [[Template:Location map+]]
 
* [[Template:Location map many]]
 
* [[Template:Location map Albania relief]]
 
 
<includeonly>
 
<includeonly>
<!-- Categories and interwikis go here: -->
+
<!-- Categories go here, and interwikis go in Wikidata -->
 +
[[Category:Location map templates by country|Albania]]
  
 
</includeonly>
 
</includeonly>

Latest revision as of 06:19, 27 September 2020


Location map of Albania
name Albania
border
coordinates
42.9
18.3 ←↕→ 21.5
39.3
map center Lua error: callParserFunction: function "#coordinates" was not found.
image Albania location map.svg
400x400px
image1 Albania relief location map.jpg
400x400px

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

Map definition

  • name = Albania
    Name used in the default map caption
  • bottom = 39.3
    Latitude at bottom edge of map, in decimal degrees
  • left = 18.3
    Longitude at left edge of map, in decimal degrees
  • right = 21.5
    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 3.2 degrees.

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

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

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

Examples using location map templates

Location map, using default map (image)

{{Location map | Albania
| width   = 150
| lat_deg = 41.33
| lon_deg = 19.82
| label   = Tirana
}}

Location map many, using relief map (image1)

{{Location map many | Albania
| relief   = yes
| width    = 150
| caption  = Two locations in Albania
| lat1_deg = 41.33
| lon1_deg = 19.82
| label1   = Tirana
| lat2_deg = 40.62
| lon2_deg = 20.77
| label2   = Korçë
}}

Location map+, using AlternativeMap

{{Location map+ | Albania
| AlternativeMap = Albania relief location map.jpg
| width   = 150
| caption = Two locations in Albania
| places  =
  {{Location map~ | Albania
  | lat_deg = 41.33
  | lon_deg = 19.82
  | label   = Tirana
  }}
  {{Location map~ | Albania
  | lat_deg = 40.62
  | lon_deg = 20.77
  | label   = Korçë
  }}
}}

See also

Location map templates

Creating new map definitions