Content deleted Content added
add example using Template:Location map many |
update documentation and add example using Template:Location map+ |
||
Line 1:
{{Documentation subpage}}
<!-- Categories and interwikis go at the bottom of this page. -->
'''Template:Location map China''' is a ___location map definition used to overlay markers and labels on an [[equidistant conic projection]] map of [[People's Republic of China|China]]. 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 "China":
* {{tlx|Location map | China | ...}}
* {{tlx|Location map many | China | ...}}
* {{tlx|Location map+ | China | ...}}
* {{tlx|Location map~ | China | ...}}
== Map definition ==
; name
; 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>)
; x
: 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
; y
: 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
==
The map shown above 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.
▲*<tt>{{{{BASEPAGENAME}}|image}}</tt>.
== Examples ==
Line 74 ⟶ 88:
| long2 = 121.5
| label2 = Shanghai
}}
</pre>
{{clear}}
=== Location map+, using AlternativeMap ===
{{Location map+ | China
| AlternativeMap = China edcp relief ___location map.jpg
| caption = People's Republic of China
| width = 250
| places =
{{Location map~ | China
| lat = 39.91
| long = 116.39
| label = Beijing
}}
{{Location map~ | China
| lat = 31.2
| long = 121.5
| label = Shanghai
}}
}}
<pre style="width:35em">
{{Location map+ | China
| AlternativeMap = China edcp relief ___location map.jpg
| caption = People's Republic of China
| width = 250
| places =
{{Location map~ | China
| lat = 39.91
| long = 116.39
| label = Beijing
}}
{{Location map~ | China
| lat = 31.2
| long = 121.5
| label = Shanghai
}}
}}
</pre>
Line 79 ⟶ 130:
== See also ==
* [[Template:Location map]]
* [[Template:Location map+]]
* [[Template:Location map many]]
* [[Template:Location map China (equirectangular)]]
|