มอดูล:Location map/data/Ireland

จากวิกิพีเดีย สารานุกรมเสรี
Documentation icon คู่มือการใช้งานมอดูล[ดู] [แก้] [ประวัติ] [ล้างแคช]
แผนที่ที่ตั้งของไอร์แลนด์
name ไอร์แลนด์
border
coordinates
55.6
-11 ←↕→ -5
51.2
map center 53°24′N 8°00′W / 53.4°N 8°W / 53.4; -8
image Ireland adm location map.svg
image1 Reliefkarte Irland.png
image2 Ireland relief location map.png
แผนที่ประเทศไอร์แลนด์

มอดูล:Location map/data/Ireland คือมอดูลนิยามแผนที่แบบ equirectangular projection ของประเทศไอร์แลนด์ เพื่อใช้กำหนดตำแหน่งบนแผนที่ค่าเริ่มต้นหรือแผนที่ใกล้เคียงด้วยสัญลักษณ์หรือข้อความโดยใช้ค่าพิกัดละติจูดและลองจิจูด

การใช้งาน

เมื่อกำหนดค่าพารามิเตอร์ "Ireland" ลงในแม่แบบต่าง ๆ ด้านล่าง จะใช้ค่านิยามจากมอดูลนี้

ค่านิยาม

  • name = ไอร์แลนด์
    ชื่อที่ใช้ในคำอธิบายแผนที่ค่าเริ่มต้น (default map)
  • image = Ireland adm location map.svg
    ภาพแผนที่ค่าเริ่มต้น ไม่ต้องใส่ "Image:" หรือ "File:" (หรือ "ภาพ:" หรือ "ไฟล์:")
  • image1 = Reliefkarte Irland.png
    ภาพแผนที่ทางเลือก (alternative map) มักจะเป็นแผนที่ภูมิประเทศ (relief map) ซึ่งกำหนดให้แสดงได้โดยใช้พารามิเตอร์ relief หรือ AlternativeMap
  • image2 = Ireland relief location map.png
    Alternative map image which can be displayed via the AlternativeMap parameter
  • top = 55.6
    ค่าละติจูดของตำแหน่งขอบบนสุดของแผนที่ในค่าทศนิยม (decimal degrees)
  • bottom = 51.2
    ค่าละติจูดของตำแหน่งขอบล่างสุดของแผนที่ในค่าทศนิยม
  • left = -11
    ค่าลองจิจูดของตำแหน่งขอบซ้ายสุดของแผนที่ในค่าทศนิยม
  • right = -5
    ค่าลองจิจูดของตำแหน่งขอบขวาสุดของแผนที่ในค่าทศนิยม

แผนที่ทางเลือก (Alternative map)

The {{Location map}}, {{Location map many}}, and {{Location map+}} templates have parameters to specify an alternative map image. The map displayed as image1 can be used with the relief or AlternativeMap parameters. The map displayed as image2 can be used with the AlternativeMap parameter. Examples may be found below or in the following:

ความแม่นยำ

ลองจิจูด: ค่านิยามแผนที่นี้มีขนาดจากทิศตะวันตกถึงตะวันออก 6 องศา

  • ภาพขนาดความกว้าง (width) 200 พิกเซล เทียบอัตราส่วนได้ 0.03 องศาต่อพิกเซล
  • ภาพขนาดความกว้าง (width) 1,000 พิกเซล เทียบอัตราส่วนได้ 0.006 องศาต่อพิกเซล

ละติจูด: ค่านิยามแผนที่นี้มีขนาดจากทิศเหนือถึงใต้ 4.4 องศา

  • ภาพขนาดความสูง (height) 200 พิกเซล เทียบอัตราส่วนได้ 0.022 องศาต่อพิกเซล
  • ภาพขนาดความสูง (height) 1,000 พิกเซล เทียบอัตราส่วนได้ 0.0044 องศาต่อพิกเซล

ตัวอย่างการใช้ในแม่แบบตำแหน่งบนแผนที่ (location map)

แม่แบบ Location map ใช้แผนที่ปกติ (image)

ดับลินตั้งอยู่ในไอร์แลนด์
ดับลิน
ดับลิน
ดับลิน (ไอร์แลนด์)
{{Location map | Ireland
| width   = 200
| lat_deg = 53.35
| lon_deg = -6.26
| label   = ดับลิน
}}

แม่แบบ Location map many ใช้แผนที่ภูมิประเทศ (image1)

Location map/data/Irelandตั้งอยู่ในไอร์แลนด์
ดับลิน
ดับลิน
คอร์ก
คอร์ก
เมืองในประเทศไอร์แลนด์
{{Location map many | Ireland
| relief   = yes
| width    = 200
| caption  = เมืองในประเทศไอร์แลนด์
| lat1_deg = 53.35
| lon1_deg = -6.26
| label1   = ดับลิน
| lat2_deg = 51.9
| lon2_deg = -8.47
| label2   = คอร์ก
}}

แม่แบบ Location map+ ใช้แผนที่ AlternativeMap

Location map/data/Irelandตั้งอยู่ในไอร์แลนด์
ดับลิน
ดับลิน
คอร์ก
คอร์ก
เมืองในประเทศไอร์แลนด์
{{Location map+ | Ireland
| AlternativeMap = Ireland relief location map.png
| width   = 200
| caption = เมืองในประเทศไอร์แลนด์
| places  =
  {{Location map~ | Ireland
  | lat_deg = 53.35
  | lon_deg = -6.26
  | label   = ดับลิน
  }}
  {{Location map~ | Ireland
  | lat_deg = 51.9
  | lon_deg = -8.47
  | label   = คอร์ก
  }}
}}

ดูเพิ่ม

แม่แบบตำแหน่งบนแผนที่
  • แม่แบบ:Location map แสดงสัญลักษณ์และข้อความบนแผนที่ได้ 1 ตำแหน่งโดยใช้ค่าละติจูดและลองจิจูด
  • แม่แบบ:Location map many แสดงสัญลักษณ์และข้อความบนแผนที่ได้สูงสุด 9 ตำแหน่ง
  • แม่แบบ:Location map+ แสดงสัญลักษณ์และข้อความบนแผนที่ได้ไม่จำกัดจำนวน
การสร้างค่านิยามแผนที่ใหม่
แม่แบบกล่องข้อมูล (Infobox template) ที่ใช้แม่แบบตำแหน่งบนแผนที่
List

return {
	name = 'ไอร์แลนด์',
	top = 55.6,
	bottom = 51.2,
	left = -11.0,
	right = -5.0,
	image = 'Ireland adm location map.svg',
	image1 = 'Reliefkarte Irland.png',
	image2 = 'Ireland relief location map.png'
}