Module:Location map/data/Armenia/doc: Difference between revisions

Content deleted Content added
create documentation
 
update description, examples, see also
Line 1:
{{Documentation subpage}}
<!-- Categories and interwikis go at the bottom of this page. -->
[[File:Am-map.png|thumb|250px|Map of Armenia]]
 
'''Template:Location map Armenia''' is a ___location map definition used to overlay markers and labels on an [[equirectangular projection]] map of [[Armenia]]. The markers are placed by [[latitude]] and [[longitude]] coordinates on the default map or a similar map image.
Line 12 ⟶ 13:
 
== Map definition ==
* <tt>'''name''' = {{{{BASEPAGENAME}}|name}}</tt>
; name
*: Name used in the 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>)
 
: the default map* <tt>'''image,''' without= "Image:" or "File:" (<tt>[[:File:{{{{BASEPAGENAME}}|image}}|{{{{BASEPAGENAME}}|image}}]]</tt>)
== Alternative map ==
*: The default map image, without "Image:" or "File:"
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.
{{#if:{{{{BASEPAGENAME}}|image1}}|
 
:* an alternative map image, usually a relief map (<tt>'''image1''' = [[:File:{{{{BASEPAGENAME}}|image1}}|{{{{BASEPAGENAME}}|image1}}]]</tt>)
== Examples ==
*: An alternative map image, usually a relief map, can be displayed via the ''relief'' or ''AlternativeMap'' parameters
=== Location map, using default map (image) ===
}}{{#if:{{{{BASEPAGENAME}}|image2}}|
{{Location map | Armenia
 
| width = 200
* <tt>'''image2''' = [[:File:{{{{BASEPAGENAME}}|image2}}|{{{{BASEPAGENAME}}|image2}}]]</tt>
| lat = 40.183
*: A second alternative map image, can be displayed via the ''AlternativeMap'' parameter only
| long = 44.517
}}{{#if:{{{{BASEPAGENAME}}|top}}{{{{BASEPAGENAME}}|bottom}}{{{{BASEPAGENAME}}|left}}{{{{BASEPAGENAME}}|right}}|
| label = Yerevan
 
* <tt>'''top''' = {{{{BASEPAGENAME}}|top}}</tt>
*: [[latitudeLatitude]] at top edge of map, in [[decimal degrees]] (<tt>{{{{BASEPAGENAME}}|top}}</tt>)
 
* <tt>'''bottom''' = {{{{BASEPAGENAME}}|bottom}}</tt>
*: latitudeLatitude at bottom edge of map, in decimal degrees (<tt>{{{{BASEPAGENAME}}|bottom}}</tt>)
 
* <tt>'''left''' = {{{{BASEPAGENAME}}|left}}</tt>
*: [[longitudeLongitude]] at left edge of map, in decimal degrees (<tt>{{{{BASEPAGENAME}}|left}}</tt>)
 
* <tt>'''right''' = {{{{BASEPAGENAME}}|right}}</tt>
*: longitudeLongitude at right edge of map, in decimal degrees (<tt>{{{{BASEPAGENAME}}|right}}</tt>)
}}{{#if:{{{{BASEPAGENAME}}|x}}{{{{BASEPAGENAME}}|y}}|
 
* <tt>'''x''' = {{{{BASEPAGENAME}}|x}}</tt>
*: 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
 
* <tt>'''y''' = {{{{BASEPAGENAME}}|y}}</tt>
*: 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
}}
{{#if:{{{{BASEPAGENAME}}|image1}}|
<pre style="width:30em">
== Alternative map ==
{{Location map | Armenia
The map defined as '''image1''' (<tt>{{{{BASEPAGENAME}}|image1}}</tt>) can be displayed by using the ''AlternativeMaprelief'' or ''reliefAlternativeMap'' parameters in {{tl|Location map}}, {{tl|Location map many}} and {{tl|Location map+}}. Further{{#if:{{{{BASEPAGENAME}}|image2}}| instructionsThe map defined as '''image2''' (<tt>{{{{BASEPAGENAME}}|image2}}</tt>) can only be founddisplayed atby [[Template:Locationusing map#Usingthe Alternative''AlternativeMap'' Map]]parameter.}} andThe [[Template:Locationuse map#Relief]],of orthese seetwo parameters is shown in the examples below. Additional examples can be found at:
| width = 200
{{clear{!}}
| lat = 40.183
{{!}}
| long = 44.517
* [[Template:Location map#Relief parameter]]
| label = Yerevan
* [[Template:Location map#AlternativeMap parameter]]
{{!}}
* [[Template:Location map+/relief]]
* [[Template:Location map+/AlternativeMap]]
{{!}}}
}}
== Examples using ___location map templates ==
</pre>
{{clear}}
 
=== Location map, using reliefdefault map (image1image) ===
{{Location map | Armenia
| reliefwidth = yes200
| width lat_deg = 20040.18
| lat lon_deg = 4044.18352
| longlabel = 44.517Yerevan
| label = Yerevan
}}
<pre style="width:30em">
{{Location map | Armenia
| reliefwidth = yes200
| width lat_deg = 20040.18
| lat lon_deg = 4044.18352
| longlabel = 44.517Yerevan
| label = Yerevan
}}
</pre>
{{clear}}
 
=== Location map many, using defaultrelief map (image1) ===
{{Location map many | Armenia
| relief = yes
| caption = Two locations in Afghanistan
| width = 200
| latcaption = Two locations =in 40.183Armenia
| long lat1_deg = 4440.51718
| label lon1_deg = Yerevan44.52
| lat2 label1 = 40.789Yerevan
| long2 lat2_deg = 4340.84879
| label2 lon2_deg = Gyumri43.85
| label2 = Gyumri
}}
<pre style="width:35em30em">
{{Location map many | Armenia
| relief = yes
| caption = Two locations in Afghanistan
| width = 200
| latcaption = Two locations =in 40.183Armenia
| long lat1_deg = 4440.51718
| label lon1_deg = Yerevan44.52
| lat2 label1 = 40.789Yerevan
| long2 lat2_deg = 4340.84879
| label2 lon2_deg = Gyumri43.85
| label2 = Gyumri
}}
</pre>
Line 95 ⟶ 108:
{{Location map+ | Armenia
| AlternativeMap = Relief Map of Armenia.png
| caption = Two locations in Armenia
| width = 200
| caption = Two locations in AfghanistanArmenia
| places =
{{Location map~ | Armenia
| lat lat_deg = 40.18318
| long lon_deg = 44.51752
| label = Yerevan
}}
{{Location map~ | Armenia
| lat lat_deg = 40.78979
| long lon_deg = 43.84885
| label = Gyumri
}}
}}
Line 112 ⟶ 125:
{{Location map+ | Armenia
| AlternativeMap = Relief Map of Armenia.png
| caption = Two locations in Armenia
| width = 200
| caption = Two locations in AfghanistanArmenia
| places =
{{Location map~ | Armenia
| lat lat_deg = 40.18318
| long lon_deg = 44.51752
| label = Yerevan
}}
{{Location map~ | Armenia
| lat lat_deg = 40.78979
| long lon_deg = 43.84885
| label = Gyumri
}}
}}
Line 130 ⟶ 143:
 
== See also ==
*; [[Template:Location map]] templates
* [[Template:Location map+]], to display one mark and label using latitude and longitude
* [[Template:Location map many]], to display up to nine marks and labels
* [[Template:Location map+]], to display an unlimited number of marks and labels
 
; Infobox templates incorporating (passing values to) the Location map template
{{Location map/doc/See also infobox templates}}
<includeonly>
<!-- Categories and interwikis go here: -->