模組:Location map/data/Japan
name | 日本 | ||
---|---|---|---|
x | 100*(($1>30.90)*($2-128.24)/(149.27-128.24)+($1<=30.90)*($2-110.43)/(131.44-110.43)) | ||
y | 100*(($1>30.90)*($1-45.86)/(30.02-45.86)+($1<=30.90)*($1-39.54)/(23.71-39.54)) | ||
image | Japan location map with side map of the Ryukyu Islands.svg
| ||
![]() | |||
image1 | Japan natural location map with side map of the Ryukyu Islands.jpg
| ||
![]() | |||
image2 | Japan bluemarble location map with side map of the Ryukyu Islands.jpg
| ||
![]() |
Module:Location map/data/Japan is a location map definition used to overlay markers and labels on an equirectangular projection map of 日本. The markers are placed by latitude and longitude coordinates on the default map or a similar map image.
用法
These definitions are used by the following templates when invoked with parameter "Japan":
{{Location map | Japan | ...}}
{{Location map many | Japan | ...}}
{{Location map+ | Japan | ...}}
{{Location map~ | Japan | ...}}
地图定义
name = 日本
- Name used in the default map caption
image = Japan location map with side map of the Ryukyu Islands.svg
- The default map image, without "Image:" or "File:"
image1 = Japan natural location map with side map of the Ryukyu Islands.jpg
- An alternative map image, usually a relief map, can be displayed via the relief or AlternativeMap parameters
image2 = Japan bluemarble location map with side map of the Ryukyu Islands.jpg
- A second alternative map image, can be displayed via the AlternativeMap parameter only
x = 100*(($1>30.90)*($2-128.24)/(149.27-128.24)+($1<=30.90)*($2-110.43)/(131.44-110.43))
- 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 = 100*(($1>30.90)*($1-45.86)/(30.02-45.86)+($1<=30.90)*($1-39.54)/(23.71-39.54))
- 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 defined as image1 (Japan natural location map with side map of the Ryukyu Islands.jpg
) can be displayed by using the relief or AlternativeMap parameters in {{Location map}}, {{Location map many}} and {{Location map+}}. The map defined as image2 (Japan bluemarble location map with side map of the Ryukyu Islands.jpg
) can only be displayed by using the AlternativeMap parameter. The use of these two parameters is shown in the examples below. Additional examples can be found at:
- Template:Location map#Relief parameter
- Template:Location map#AlternativeMap parameter
- Template:Location map+/relief
- Template:Location map+/AlternativeMap
参见
- 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
Template:Location map/doc/See also infobox templates
上述文档嵌入自Module:Location map/data/Japan/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 本模块的子页面。 |
return {
name = '日本',
x = '100*(($1>30.90)*($2-128.24)/(149.27-128.24)+($1<=30.90)*($2-110.43)/(131.44-110.43))',
y = '100*(($1>30.90)*($1-45.86)/(30.02-45.86)+($1<=30.90)*($1-39.54)/(23.71-39.54))',
image = 'Japan location map with side map of the Ryukyu Islands.svg',
image1 = 'Japan natural location map with side map of the Ryukyu Islands.jpg',
image2 = 'Japan bluemarble location map with side map of the Ryukyu Islands.jpg',
wikidata = 'Q17',
}