Content deleted Content added
update documentation and add example using Template:Location map+ |
update documentation, examples, see also |
||
Line 12:
== Map definition ==
* <tt>'''name''' = {{{{BASEPAGENAME}}|name}}</tt>
*: Name used in the default map caption
*: The default map image, without "Image:" or "File:"
*: An alternative map image, usually a relief map, can be displayed via the ''relief'' or ''AlternativeMap'' parameters
: 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▼
{{#if:{{{{BASEPAGENAME}}|image2}}|
: 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▼
* <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>
*: [[Latitude]] at top edge of map, in [[decimal degrees]]
* <tt>'''bottom''' = {{{{BASEPAGENAME}}|bottom}}</tt>
*: Latitude at bottom edge of map, in decimal degrees
* <tt>'''left''' = {{{{BASEPAGENAME}}|left}}</tt>
*: [[Longitude]] at left edge of map, in decimal degrees
* <tt>'''right''' = {{{{BASEPAGENAME}}|right}}</tt>
*: Longitude at right edge of map, in decimal degrees
}}{{#if:{{{{BASEPAGENAME}}|x}}{{{{BASEPAGENAME}}|y}}|
* <tt>'''x''' = {{{{BASEPAGENAME}}|x}}</tt>
▲*:
* <tt>'''y''' = {{{{BASEPAGENAME}}|y}}</tt>
▲*:
}}▼
== Alternative map ==
The map
{|
|
* [[Template:Location map#AlternativeMap parameter]]▼
|
* [[Template:Location map+/relief]]
* [[Template:Location map+/AlternativeMap]]
== Examples using ___location map templates ==
=== Location map, using default map (image) ===
{{Location map | China
| width = 250
|
|
| label = Qinghai Lake
}}
<pre style="width:30em">
{{Location map | China
| width = 250
|
|
| label = Qinghai Lake
}}
</pre>
{{clear}}
=== Location map many, using relief map (image1) ===
| relief = yes▼
| lat = 37▼
▲}}
▲}}
{{Location map many | China
▲| relief = yes
| caption = People's Republic of China▼
| width = 250
|
|
|
|
|
|
| label2 = Shanghai
}}
<pre style="width:30em">
{{Location map many | China
| caption = People's Republic of China▼
| width = 250
|
|
|
|
|
|
| label2 = Shanghai
}}
</pre>
Line 95 ⟶ 106:
{{Location map+ | China
| AlternativeMap = China edcp relief ___location map.jpg
| width = 250
▲| caption = People's Republic of China
| places =
{{Location map~ | China
|
|
| label = Beijing
}}
{{Location map~ | China
|
|
| label = Shanghai
}}
}}
Line 112 ⟶ 123:
{{Location map+ | China
| AlternativeMap = China edcp relief ___location map.jpg
| width = 250
▲| caption = People's Republic of China
| places =
{{Location map~ | China
|
|
| label = Beijing
}}
{{Location map~ | China
|
|
| label = Shanghai
}}
}}
Line 130 ⟶ 141:
== See also ==
* [[Template:Location map China 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]]
* [[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: -->
|