Module:Location map/data/Algeria/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:Algeria-CIA WFB Map.png|thumb|250px|Map of Algeria]]
 
'''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.
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 | Algeria
 
| width = 200
* <tt>'''image2''' = [[:File:{{{{BASEPAGENAME}}|image2}}|{{{{BASEPAGENAME}}|image2}}]]</tt>
| lat = 36.7
*: A second alternative map image, can be displayed via the ''AlternativeMap'' parameter only
| long = 3.217
}}{{#if:{{{{BASEPAGENAME}}|top}}{{{{BASEPAGENAME}}|bottom}}{{{{BASEPAGENAME}}|left}}{{{{BASEPAGENAME}}|right}}|
| label = Algiers
 
* <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 | Algeria
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 = 36.7
{{!}}
| long = 3.217
* [[Template:Location map#Relief parameter]]
| label = Algiers
* [[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 | Algeria
| reliefwidth = yes180
| width lat_deg = 20036.7
| lat lon_deg = 363.722
| longlabel = 3.217Algiers
| label = Algiers
}}
<pre style="width:30em">
{{Location map | Algeria
| reliefwidth = yes180
| width lat_deg = 20036.7
| lat lon_deg = 363.722
| longlabel = 3.217Algiers
| label = Algiers
}}
</pre>
{{clear}}
 
=== Location map many, using defaultrelief map (image1) ===
{{Location map many | Algeria
| widthrelief = 200yes
| 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
| latpos2 = 36.7bottom
}}
<pre style="width:35em30em">
{{Location map many | Algeria
| widthrelief = 200yes
| 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>
Line 99 ⟶ 112:
{{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
}}
Line 118 ⟶ 131:
{{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 138 ⟶ 151:
 
== See also ==
* [[Template:Location map Algeria relief]], displays the relief map shown above (for [[Help:Infobox|infoboxes]] that do not support alternative maps)
* [[Template:Location map]]
 
* [[Template:Location map+]]
*; [[Template:Location map many]]templates
* [[Template:Location map Algeria relief]], 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: -->