模组:Location map/data/Antarctica/doc
外观
这是Module:Location map/data/Antarctica的文档页面
| 此页面是Module:Location map/data/Antarctica的模块文档。 此页面可能包含了模板的使用说明、分类和其他内容。 |
| 此模块文档被引用于许多页面。 为了避免造成大规模的影响,所有对此模块文档的编辑应先于沙盒或测试样例上测试。 测试后无误的版本可以一次性地加入此模块文档中,但是修改前请务必于讨论页发起讨论。 模板引用数量会自动更新。 |
| 名称 | 南极洲 | ||
|---|---|---|---|
| x | 50 + 5/3 * (90+$1) * sin( pi / 180 *$2) | ||
| y | 50 - 5/3 * (90+$1) * cos( pi / 180 *$2) | ||
| 图像 | Antarctica location map.svg
| ||
| 图像1 | Antarctica relief location map.jpg
| ||
Module:Location map/data/Antarctica是用于在南极洲的方位等距投影地图上叠加标记和标签的位置图定义。标记是按默认的地图或类似地图图像上的纬度和经度坐标放置。
使用方法
以下模板均使用名为“Antarctica”的参数:
{{Location map | Antarctica | ...}}{{Location map many | Antarctica | ...}}{{Location map+ | Antarctica | ...}}{{Location map~ | Antarctica | ...}}
地图定义
name = 南极洲- 用于地图描述的默认值
image = Antarctica location map.svg- 默认地图图像,无"Image:"和"File:"前缀
image1 = Antarctica relief location map.jpg- 替代地图图像,通常是地形图,可使用
relief或AlternativeMap参数显示出来
- 替代地图图像,通常是地形图,可使用
x = 50 + 5/3 * (90+$1) * sin( pi / 180 *$2)- 根据经度计算地图上位置的公式;最西端为0,最东端为100。
y = 50 - 5/3 * (90+$1) * cos( pi / 180 *$2)- 根据纬度计算地图上位置的公式;最北端为0,最南端为100。
替代地图
{{Location map}}、{{Location map many}}和{{Location map+}}模板可使用参数来指定替代地图图像。image1的地图可以使用relief和AlternativeMap参数显示出来。 您可以在以下模板中找到更多范例:
- Template:Location map#地形图参数
- Template:Location map+/relief
- Template:Location map#置换成其它地图的参数(AlternativeMap)
- Template:Location map+/AlternativeMap
位置图模板使用范例
位置地图,使用默认地图(图像)
{{Location map | Antarctica
| width = 200
| label = Mount Erebus
| lat_deg = -77.53
| lon_deg = 167.15
}}
多个位置图,使用地形图(图1)
Two locations in Antarctica
{{Location map many | Antarctica
| relief = yes
| width = 200
| caption = Two locations in Antarctica
| label1 = Mount Erebus
| lat1_deg = -77.53
| lon1_deg = 167.15
| label2 = Amundsen-Scott Station
| lat2_deg = -90
| lon2_deg = -139.27
}}
使用备用地图的位置图
Two locations in Antarctica
{{Location map+ | Antarctica
| AlternativeMap = Antarctica relief location map.jpg
| width = 200
| caption = Two locations in Antarctica
| places =
{{Location map~ | Antarctica
| label = Mount Erebus
| lat_deg = -77.53
| lon_deg = 167.15
}}
{{Location map~ | Antarctica
| label = Amundsen-Scott Station
| lat_deg = -90
| lon_deg = -139.27
}}
}}
参见
位置图模板
- Template:Location map ——使用纬度和经度显示单个标记和标签。
- Template:Location map many ——显示高达9个标记和标签。
- Template:Location map+ ——显示无限数量的标记和标签。