模组:Location map/data/South Africa/doc
外观
这是Module:Location map/data/South Africa的文档页面
| 此页面是Module:Location map/data/South Africa的模块文档。 此页面可能包含了模板的使用说明、分类和其他内容。 |
| 名称 | 南非 | |||
|---|---|---|---|---|
| 边界经纬 | ||||
| -21.8 | ||||
| 16 | ←↕→ | 33.2 | ||
| -35.2 | ||||
| 地图中心 | 28°30′S 24°36′E / 28.5°S 24.6°E | |||
| 图像 | South Africa adm location map.svg
| |||
| 图像1 | South Africa relief location map.svg
| |||

Module:Location map/data/South Africa是用于在南非的等距长方投影地图上叠加标记和标签的位置图定义。标记是按默认的地图或类似地图图像上的纬度和经度坐标放置。
使用方法
以下模板均使用名为“South Africa”的参数:
{{Location map | South Africa | ...}}{{Location map many | South Africa | ...}}{{Location map+ | South Africa | ...}}{{Location map~ | South Africa | ...}}
地图定义
name = 南非- 用于地图描述的默认值
image = South Africa adm location map.svg- 默认地图图像,无"Image:"和"File:"前缀
image1 = South Africa relief location map.svg- 替代地图图像,通常是地形图,可使用
relief或AlternativeMap参数显示出来
- 替代地图图像,通常是地形图,可使用
top = -21.8
bottom = -35.2- 地图最南端的纬度,以十进制度数显示。
left = 16- 地图最西端的经度,以十进制度数显示。
right = 33.2- 地图最东端的经度,以十进制度数显示。
替代地图
{{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
精度
经度:这张地图从西到东为17.2度。
- 如果图像的宽度为200像素,则为每像素0.086度。
- 如果图像的宽度为1000像素,则为每像素0.0172度。
纬度:这张地图从北到南为13.4度。
- 如果图像的垂直长度为200像素,则为每像素0.067度。
- 如果图像的垂直长度为1000像素,则为每像素0.0134度。
位置图模板使用范例
Location map, using default map (image)
{{Location map | South Africa
| width = 250
| lat_deg = -25.75
| lon_deg = 28.19
| label = Pretoria
}}
Location map many, using relief map (image1)
Two locations in South Africa
{{Location map many | South Africa
| relief = yes
| width = 250
| caption = Two locations in South Africa
| lat1_deg = -25.75
| lon1_deg = 28.19
| label1 = Pretoria
| lat2_deg = -33.93
| lon2_deg = 18.42
| label2 = Cape Town
}}
Location map+, using AlternativeMap
Two locations in South Africa
{{Location map+ | South Africa
| AlternativeMap = South Africa relief location map.svg
| width = 250
| caption = Two locations in South Africa
| places =
{{Location map~ | South Africa
| lat_deg = -25.75
| lon_deg = 28.19
| label = Pretoria
}}
{{Location map~ | South Africa
| lat_deg = -33.93
| lon_deg = 18.42
| label = Cape Town
}}
}}
参见
位置图模板
- Template:Location map ——使用纬度和经度显示单个标记和标签。
- Template:Location map many ——显示高达9个标记和标签。
- Template:Location map+ ——显示无限数量的标记和标签。