模組:Location map/data/UK Northern Ireland

文档图示 模块文档[查看] [编辑] [历史] [清除缓存]
北愛爾蘭 位置圖
名稱 北愛爾蘭
邊界經緯
55.4
-8.3 ←↕→ -5.3
53.9
地圖中心 54°39′N 6°48′W / 54.65°N 6.8°W / 54.65; -6.8
圖像 United Kingdom Northern Ireland adm location map.svg
圖像1 Relief Map of Northern Ireland.png
Map of Northern Ireland

Module:Location map/data/UK Northern Ireland是用於在北愛爾蘭等距長方投影英语equirectangular projection地圖上疊加標記和標籤的位置圖定義。標記是按默認的地圖或類似地圖圖像上的緯度經度坐標放置。

使用方法

以下模板均使用名為“UK Northern Ireland”的參數:

地圖定義

  • name = 北愛爾蘭
    用於地圖描述的默認值
  • bottom = 53.9
    地圖最南端的緯度,以十進制度數顯示。
  • left = -8.3
    地圖最西端的經度,以十進制度數顯示。
  • right = -5.3
    地圖最東端的經度,以十進制度數顯示。

替代地圖

{{Location map}}、{{Location map many}}和{{Location map+}}模板可使用參數來指定替代地圖圖像。image1的地圖可以使用reliefAlternativeMap參數顯示出來。 您可以在以下模板中找到更多範例:

精度

經度:這張地圖從西到東為3度。

  • 如果圖像的寬度為200像素,則為每像素0.015度。
  • 如果圖像的寬度為1000像素,則為每像素0.003度。

緯度:這張地圖從北到南為1.5度。

  • 如果圖像的垂直長度為200像素,則為每像素0.0075度。
  • 如果圖像的垂直長度為1000像素,則為每像素0.0015度。

位置圖模板使用範例

Location map, using default map (image)

Belfast在北愛爾蘭的位置
Belfast
Belfast
Belfast (北愛爾蘭)
{{Location map | Northern Ireland
| width   = 250
| lat_deg = 54.6
| lon_deg = -5.93
| label   = Belfast
}}

Location map many, using relief map (image1)

Location map/data/UK Northern Ireland在北愛爾蘭的位置
Belfast
Belfast
Derry
Derry
Two locations in Northern Ireland
{{Location map many | Northern Ireland
| relief   = yes
| width    = 250
| caption  = Two locations in Northern Ireland
| lat1_deg = 54.6
| lon1_deg = -5.93
| label1   = Belfast
| lat2_deg = 54.99
| lon2_deg = -7.31
| label2   = Derry
}}

Location map+, using AlternativeMap

Location map/data/UK Northern Ireland在北愛爾蘭的位置
Belfast
Belfast
Derry
Derry
Two locations in Northern Ireland
{{Location map+ | Northern Ireland
| AlternativeMap = Relief Map of Northern Ireland.png
| width   = 250
| caption = Two locations in Northern Ireland
| places  =
  {{Location map~ | Northern Ireland
  | lat_deg = 54.6
  | lon_deg = -5.93
  | label   = Belfast
  }}
  {{Location map~ | Northern Ireland
  | lat_deg = 54.99
  | lon_deg = -7.31
  | label   = Derry
  }}
}}

參見

位置圖模板

創建新的地圖模塊

return {
	name = '北愛爾蘭',
	top = 55.4,
	bottom = 53.9,
	left = -8.3,
	right = -5.3,
	image = 'United Kingdom Northern Ireland adm location map.svg',
	image1 = 'Relief Map of Northern Ireland.png'
}