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

Content deleted Content added
create documentation
 
added category
 
(13 intermediate revisions by 9 users not shown)
Line 1:
{{Documentation subpage}}
<!-- Categories and interwikis go at the bottom of this page. -->
{{Module:Location map/data/doc|image=[[File:Am-map1.png|thumb|250px|Map of Armenia]]
 
|examples=
'''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.
 
== Usage ==
These definitions are used by the following templates when invoked with parameter "Armenia":
* {{tlx|Location map | Armenia&nbsp;| ...}}
* {{tlx|Location map many | Armenia&nbsp;| ...}}
* {{tlx|Location map+ | Armenia&nbsp;| ...}}
* {{tlx|Location map~ | Armenia&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 | Armenia
| width = 200
| lat lat_deg = 40.18318
| long lon_deg = 44.51752
| label = Yerevan
}}
<pre style="width:30em">
{{Location map | Armenia
| width = 200
| lat lat_deg = 40.18318
| long lon_deg = 44.51752
| label = Yerevan
}}
</pre>
{{clear}}
 
=== Location map many, using relief map (image1) ===
{{Location map many | Armenia
| relief = yes
| width = 200
| caption = Two locations in Armenia
| lat = 40.183
| long lat1_deg = 4440.51718
| label lon1_deg = Yerevan44.52
| labellabel1 = Yerevan
| lat lat2_deg = 40.18379
| long2 lon2_deg = 43.84885
| label2 = Gyumri
}}
<pre style="width:30em">
{{Location map | Armenia
| relief = yes
| width = 200
| lat = 40.183
| long = 44.517
| label = Yerevan
}}
</pre>
{{clear}}
 
=== Location map many, using default map ===
{{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:35em">
{{Location map many | Armenia
| caption = Two locations in Afghanistan
| width = 200
| lat = 40.183
| long = 44.517
| label = Yerevan
| lat2 = 40.789
| long2 = 43.848
| label2 = Gyumri
}}
</pre>
Line 94 ⟶ 48:
=== Location map+, using AlternativeMap ===
{{Location map+ | Armenia
| AlternativeMap = ReliefArmenia Mapwith ofNKR Armeniarelief map.png
| width = 200
| caption = Two locations in Armenia
| width = 200
| 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 ⟶ 66:
{{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
}}
}}
</pre>
{{clear}}
</includeonly>{{Sandbox other||
 
[[Category:Armenia modules]]
== See also ==
[[Category:Asia ___location map modules by country|Armenia]]
* [[Template:Location map]]
[[Category:Europe ___location map modules by country|Armenia]]
* [[Template:Location map+]]
* [[TemplateCategory:Location map manymodules by country|Armenia]]
}}</includeonly>
<!-- Categories and interwikis go here: -->
 
</includeonly>