模組: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+ ——顯示無限數量的標記和標籤。