Module:Location map/data/Belgium/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:Belgium-CIA WFB Map.png|thumb|250px|Map of Belgium]]
 
'''Template:Location map Belgium''' is a ___location map definition used to overlay markers and labels on an [[equirectangular projection]] map of [[Belgium]]. 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 | Belgium
 
| width = 200
* <tt>'''image2''' = [[:File:{{{{BASEPAGENAME}}|image2}}|{{{{BASEPAGENAME}}|image2}}]]</tt>
| lat = 50.85
*: A second alternative map image, can be displayed via the ''AlternativeMap'' parameter only
| long = 4.35
}}{{#if:{{{{BASEPAGENAME}}|top}}{{{{BASEPAGENAME}}|bottom}}{{{{BASEPAGENAME}}|left}}{{{{BASEPAGENAME}}|right}}|
| label = Brussels
 
* <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 | Belgium
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 = 50.85
{{!}}
| long = 4.35
* [[Template:Location map#Relief parameter]]
| label = Brussels
* [[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 | Belgium
| reliefwidth = yes200
| width lat_deg = 20050.85
| lat lon_deg = 504.8535
| longlabel = 4.35Brussels
| label = Brussels
}}
<pre style="width:30em">
{{Location map | Belgium
| reliefwidth = yes200
| width lat_deg = 20050.85
| lat lon_deg = 504.8535
| longlabel = 4.35Brussels
| label = Brussels
}}
</pre>
{{clear}}
 
=== Location map many, using defaultrelief map (image1) ===
{{Location map many | Belgium
| relief = yes
| caption = Two locations in Belgium
| width = 200
| latcaption = Two locations =in 50.85Belgium
| long lat1_deg = 450.3585
| label lon1_deg = Brussels4.35
| lat2 label1 = 51.22Brussels
| long2 lat2_deg = 451.4022
| label2 lon2_deg = Antwerp4.40
| label2 = Antwerp
}}
<pre style="width:35em30em">
{{Location map many | Belgium
| relief = yes
| caption = Two locations in Belgium
| width = 200
| latcaption = Two locations =in 50.85Belgium
| long lat1_deg = 450.3585
| label lon1_deg = Brussels4.35
| lat2 label1 = 51.22Brussels
| long2 lat2_deg = 451.4022
| label2 lon2_deg = Antwerp4.40
| label2 = Antwerp
}}
</pre>
Line 95 ⟶ 108:
{{Location map+ | Belgium
| AlternativeMap = Belgium relief ___location map.jpg
| caption = Two locations in Belgium
| width = 200
| caption = Two locations in Belgium
| places =
{{Location map~ | Belgium
| lat lat_deg = 50.85
| long lon_deg = 4.35
| label = Brussels
}}
{{Location map~ | Belgium
| lat lat_deg = 51.22
| long lon_deg = 4.40
| label = Antwerp
}}
}}
Line 112 ⟶ 125:
{{Location map+ | Belgium
| AlternativeMap = Belgium relief ___location map.jpg
| caption = Two locations in Belgium
| width = 200
| caption = Two locations in Belgium
| places =
{{Location map~ | Belgium
| lat lat_deg = 50.85
| long lon_deg = 4.35
| label = Brussels
}}
{{Location map~ | Belgium
| lat lat_deg = 51.22
| long lon_deg = 4.40
| label = Antwerp
}}
}}
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: -->