模組:Location map/data/Germany
外观
| 此模块被引用於約12,000個頁面。 為了避免造成大規模的影響,所有對此模块的編輯應先於沙盒或測試樣例上測試。 測試後無誤的版本可以一次性地加入此模块中,但是修改前請務必於討論頁發起討論。 模板引用數量會自動更新。 |
| 名稱 | 德國 | |||
|---|---|---|---|---|
| 邊界經緯 | ||||
| 55.1 | ||||
| 5.5 | ←↕→ | 15.5 | ||
| 47.2 | ||||
| 地圖中心 | 51°09′N 10°30′E / 51.15°N 10.5°E | |||
| 圖像 | Germany adm location map.svg
| |||
| 圖像1 | Relief Map of Germany.svg
| |||

Module:Location map/data/Germany是用於在德國的等距長方投影地圖上疊加標記和標籤的位置圖定義。標記是按默認的地圖或類似地圖圖像上的緯度和經度坐標放置。
使用方法
以下模板均使用名為“Germany”的參數:
{{Location map | Germany | ...}}{{Location map many | Germany | ...}}{{Location map+ | Germany | ...}}{{Location map~ | Germany | ...}}
地圖定義
name = 德國- 用於地圖描述的默認值
image = Germany adm location map.svg- 默認地圖圖像,無"Image:"和"File:"前綴
image1 = Relief Map of Germany.svg- 替代地圖圖像,通常是地形圖,可使用
relief或AlternativeMap參數顯示出來
- 替代地圖圖像,通常是地形圖,可使用
top = 55.1
bottom = 47.2- 地圖最南端的緯度,以十進制度數顯示。
left = 5.5- 地圖最西端的經度,以十進制度數顯示。
right = 15.5- 地圖最東端的經度,以十進制度數顯示。
替代地圖
{{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
精度
經度:這張地圖從西到東為10度。
- 如果圖像的寬度為200像素,則為每像素0.05度。
- 如果圖像的寬度為1000像素,則為每像素0.01度。
緯度:這張地圖從北到南為7.9度。
- 如果圖像的垂直長度為200像素,則為每像素0.0395度。
- 如果圖像的垂直長度為1000像素,則為每像素0.0079度。
位置圖模板使用範例
Location map, using default map (image)
{{Location map | Germany
| width = 200
| lat_deg = 52.5
| lon_deg = 13.4
| label = Berlin
}}
Location map many, using relief map (image1)
Two locations in Germany
{{Location map many | Germany
| relief = yes
| width = 200
| caption = Two locations in Germany
| lat1_deg = 52.5
| lon1_deg = 13.4
| label1 = Berlin
| lat2_deg = 48.13
| lon2_deg = 11.57
| label2 = Munich
}}
Location map+, using AlternativeMap
Two locations in Germany
{{Location map+ | Germany
| AlternativeMap = Relief Map of Germany.png
| width = 200
| caption = Two locations in Germany
| places =
{{Location map~ | Germany
| lat_deg = 52.5
| lon_deg = 13.4
| label = Berlin
}}
{{Location map~ | Germany
| lat_deg = 48.13
| lon_deg = 11.57
| label = Munich
}}
}}
參見
位置圖模板
- Template:Location map ——使用緯度和經度顯示單個標記和標籤。
- Template:Location map many ——顯示高達9個標記和標籤。
- Template:Location map+ ——顯示無限數量的標記和標籤。
創建新的地圖模塊