被永久保护的模块

模組:Location map/data/Japan

维基百科,自由的百科全书
跳到导航 跳到搜索
文档图示 模块文档[查看] [编辑] [历史] [清除缓存]
Location map of 日本
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
Japan location map with side map of the Ryukyu Islands.svg
image1 Japan natural location map with side map of the Ryukyu Islands.jpg
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
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":

地图定义

  • name = 日本
    Name used in the default map caption
  • 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:


参见

Location map templates
Infobox templates incorporating (passing values to) the Location map template

Template:Location map/doc/See also infobox templates

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',
}