มอดูล:Location map/data/island of Ireland/doc

จากวิกิพีเดีย สารานุกรมเสรี


แผนที่ที่ตั้งของเกาะไอร์แลนด์
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 Island of Ireland location map.svg
image1 Island of Ireland relief location map.png
แผนที่เกาะไอร์แลนด์

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

การใช้งาน

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

ค่านิยาม

  • name = เกาะไอร์แลนด์
    ชื่อที่ใช้ในคำอธิบายแผนที่ค่าเริ่มต้น (default map)
  • image = Island of Ireland location map.svg
    ภาพแผนที่ค่าเริ่มต้น ไม่ต้องใส่ "Image:" หรือ "File:" (หรือ "ภาพ:" หรือ "ไฟล์:")
  • image1 = Island of Ireland relief location map.png
    ภาพแผนที่ทางเลือก (alternative map) มักจะเป็นแผนที่ภูมิประเทศ (relief map) ซึ่งกำหนดให้แสดงได้โดยใช้พารามิเตอร์ relief หรือ AlternativeMap
  • 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. 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 | island of Ireland
| width   = 200
| lat_deg = 53.35
| lon_deg = -6.26
| label   = ดับลิน
}}

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

Location map/data/island of Ireland/docตั้งอยู่ในเกาะไอร์แลนด์
ดับลิน
ดับลิน
เบลฟาสต์
เบลฟาสต์
สถานที่บนเกาะไอร์แลนด์
{{Location map many | island of Ireland
| relief   = yes
| width    = 200
| caption  = สถานที่บนเกาะไอร์แลนด์
| lat1_deg = 53.35
| lon1_deg = -6.26
| label1   = ดับลิน
| lat2_deg = 54.6
| lon2_deg = -5.93
| label2   = เบลฟาสต์
}}

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

Location map/data/island of Ireland/docตั้งอยู่ในเกาะไอร์แลนด์
ดับลิน
ดับลิน
เบลฟาสต์
เบลฟาสต์
สถานที่บนเกาะไอร์แลนด์
{{Location map+ | island of Ireland
| AlternativeMap = Island of Ireland relief location map.png
| width   = 200
| caption = สถานที่บนเกาะไอร์แลนด์
| places  =
  {{Location map~ | island of Ireland
  | lat_deg = 53.35
  | lon_deg = -6.26
  | label   = ดับลิน
  }}
  {{Location map~ | island of Ireland
  | lat_deg = 54.6
  | lon_deg = -5.93
  | label   = เบลฟาสต์
  }}
}}

ดูเพิ่ม

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