模块:Location map/data/Japan

来自Local Chinese Wikipedia
跳转到导航 跳转到搜索
日本 位置图
名称 日本
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))
图像 Japan location map with side map of the Ryukyu Islands.svg
File:Japan location map with side map of the Ryukyu Islands.svg
图像1 Japan natural location map with side map of the Ryukyu Islands.jpg
File:Japan natural location map with side map of the Ryukyu Islands.jpg
图像2 Japan bluemarble location map with side map of the Ryukyu Islands.jpg
File:Japan bluemarble location map with side map of the Ryukyu Islands.jpg


Module:Location map/data/Japan是用于在日本等距长方投影地图上叠加标记和标签的位置图定义。标记是按默认的地图或类似地图图像上的纬度经度坐标放置。

使用方法

以下模板均使用名为“Japan”的参数:

地图定义

  • name = 日本
    用于地图描述的默认值
  • y = 100*(($1>30.90)*($1-45.86)/(30.02-45.86)+($1<=30.90)*($1-39.54)/(23.71-39.54))
    根据纬度计算地图上位置的公式;最北端为0,最南端为100。

替代地图

{{Location map}}、{{Location map many}}和{{Location map+}}模板可使用参数来指定替代地图图像。image1的地图可以使用reliefAlternativeMap参数显示出来。 image2 可以使用AlternativeMap参数显示出来。您可以在以下模板中找到更多范例:


参见

位置图模板

创建新的地图模块


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