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

Content deleted Content added
create documentation
 
 
(8 intermediate revisions by 5 users not shown)
Line 1:
<!-- Categories and interwikis go at the bottom of this page and interwikis go in Wikidata. -->
{{Documentation subpage}}
{{Module:Location map/data/doc|image=[[File:Algeria-CIA WFB Map.png|thumb|250px|Map of Algeria]]
<!-- Categories and interwikis go at the bottom of this page. -->
|examples=
 
'''Template:Location map Algeria''' is a ___location map definition used to overlay markers and labels on an [[equirectangular projection]] map of [[Algeria]]. 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 "Algeria":
* {{tlx|Location map | Algeria&nbsp;| ...}}
* {{tlx|Location map many | Algeria&nbsp;| ...}}
* {{tlx|Location map+ | Algeria&nbsp;| ...}}
* {{tlx|Location map~ | Algeria&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 | Algeria
| width = 200180
| lat lat_deg = 36.7
| long lon_deg = 3.21722
| label = Algiers
}}
<pre style="width:30em">
{{Location map | Algeria
| width = 200180
| lat lat_deg = 36.7
| long lon_deg = 3.21722
| label = Algiers
}}
</pre>
{{clear}}
 
=== Location map many, using relief map (image1) ===
{{Location map many | Algeria
| relief = yes
| width = 200180
| caption = Two locations in Algeria
| lat = 36.7
| long lat1_deg = 336.2177
| label lon1_deg = Algiers3.22
| labellabel1 = Algiers
| pos2pos1 = bottom
| lat2 lat2_deg = 22.78579
| lon2_deg = 5.52
| label2 = Tamanrasset
| positionpos2 = bottom
}}
<pre style="width:30em">
{{Location map | Algeria
| relief = yes
| width = 200
| lat = 36.7
| long = 3.217
| label = Algiers
}}
</pre>
{{clear}}
 
=== Location map many, using default map ===
{{Location map many | Algeria
| relief = yes
| caption = Two locations in Algeria
| width = 200180
| latcaption = Two locations =in 36.7Algeria
| long lat1_deg = 336.2177
| label lon1_deg = Algiers3.22
| labellabel1 = Algiers
| position= bottom
| lat2pos1 = 22.785bottom
| long2 lat2_deg = 522.52379
| label2 lon2_deg = Tamanrasset5.52
| pos2 label2 = bottomTamanrasset
| positionpos2 = bottom
}}
<pre style="width:35em">
{{Location map many | Algeria
| caption = Two locations in Algeria
| width = 200
| lat = 36.7
| long = 3.217
| label = Algiers
| position= bottom
| lat2 = 22.785
| long2 = 5.523
| label2 = Tamanrasset
| pos2 = bottom
}}
</pre>
Line 99 ⟶ 53:
{{Location map+ | Algeria
| AlternativeMap = Algeria relief ___location map.jpg
| lat width = 36.7180
| caption = Two locations in Algeria
| width = 200
| places =
{{Location map~ | Algeria
| lat lat_deg = 36.7
| longlon_deg = 3.21722
| label = Algiers
| position = bottom
}}
{{Location map~ | Algeria
| lat lat_deg = 22.78579
| longlon_deg = 5.52352
| label = Tamanrasset
| position = bottom
}}
Line 118 ⟶ 72:
{{Location map+ | Algeria
| AlternativeMap = Algeria relief ___location map.jpg
| width = 200180
| caption = Two locations in Algeria
| width = 200
| places =
{{Location map~ | Algeria
| lat lat_deg = 36.7
| longlon_deg = 3.21722
| label = Algiers
| position = bottom
}}
{{Location map~ | Algeria
| lat lat_deg = 22.78579
| longlon_deg = 5.52352
| label = Tamanrasset
| position = bottom
}}
}}
</pre>
{{clear}}
 
== See also ==
* [[Template:Location map]]
* [[Template:Location map+]]
* [[Template:Location map many]]
* [[Template:Location map Algeria relief]]
<includeonly>
<!-- Categories go here, and interwikis go here:in Wikidata -->
[[Category:Algeria ___location map modules| ]]
 
</includeonly>