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