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 used in the default map caption
: the default map image, without "Image:" or "File:" (<tt>[[:File:{{{{BASEPAGENAME}}|image}}|{{{{BASEPAGENAME}}|image}}]]</tt>)▼
: an alternative map image, usually a relief map (<tt>[[:File:{{{{BASEPAGENAME}}|image1}}|{{{{BASEPAGENAME}}|image1}}]]</tt>)▼
: [[latitude]] at top edge of map, in [[decimal degrees]] (<tt>{{{{BASEPAGENAME}}|top}}</tt>)▼
: latitude at bottom edge of map, in decimal degrees (<tt>{{{{BASEPAGENAME}}|bottom}}</tt>)▼
: [[longitude]] at left edge of map, in decimal degrees (<tt>{{{{BASEPAGENAME}}|left}}</tt>)▼
: longitude at right edge of map, in decimal degrees (<tt>{{{{BASEPAGENAME}}|right}}</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, can be displayed via the ''relief'' or ''AlternativeMap'' parameters
}}{{#if:{{{{BASEPAGENAME}}|image2}}|
* <tt>'''image2''' = [[:File:{{{{BASEPAGENAME}}|image2}}|{{{{BASEPAGENAME}}|image2}}]]</tt>
*: A second alternative map image, can be displayed via the ''AlternativeMap'' parameter only
}}{{#if:{{{{BASEPAGENAME}}|top}}{{{{BASEPAGENAME}}|bottom}}{{{{BASEPAGENAME}}|left}}{{{{BASEPAGENAME}}|right}}|
* <tt>'''top''' = {{{{BASEPAGENAME}}|top}}</tt>
▲*: [[
* <tt>'''bottom''' = {{{{BASEPAGENAME}}|bottom}}</tt>
▲*:
* <tt>'''left''' = {{{{BASEPAGENAME}}|left}}</tt>
▲*: [[
* <tt>'''right''' = {{{{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}}|
▲== Alternative map ==
▲The map defined as '''image1''' (<tt>{{{{BASEPAGENAME}}|image1}}</tt>) can be displayed by using the ''
{{!}}
* [[Template:Location map#Relief parameter]]
* [[Template:Location map#AlternativeMap parameter]]
{{!}}
* [[Template:Location map+/relief]]
* [[Template:Location map+/AlternativeMap]]
{{!}}}
}}
== Examples using ___location map templates ==
▲{{clear}}
=== Location map, using
{{Location map | Belgium
|
|
|
|
}}
<pre style="width:30em">
{{Location map | Belgium
|
|
|
|
}}
</pre>
{{clear}}
=== Location map many, using
{{Location map many | Belgium
| relief = yes
| caption = Two locations in Belgium▼
| width = 200
|
|
|
|
|
|
| label2 = Antwerp
}}
<pre style="width:
{{Location map many | Belgium
| relief = yes
| caption = Two locations in Belgium▼
| width = 200
|
|
|
|
|
|
| label2 = Antwerp
}}
</pre>
Line 95 ⟶ 108:
{{Location map+ | Belgium
| AlternativeMap = Belgium relief ___location map.jpg
| width = 200
▲| caption = Two locations in Belgium
| places =
{{Location map~ | Belgium
|
|
| label = Brussels
}}
{{Location map~ | Belgium
|
|
| label = Antwerp
}}
}}
Line 112 ⟶ 125:
{{Location map+ | Belgium
| AlternativeMap = Belgium relief ___location map.jpg
| width = 200
▲| caption = Two locations in Belgium
| places =
{{Location map~ | Belgium
|
|
| label = Brussels
}}
{{Location map~ | Belgium
|
|
| label = Antwerp
}}
}}
Line 130 ⟶ 143:
== See also ==
* [[Template:Location map
* [[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: -->
|