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

จากวิกิพีเดีย สารานุกรมเสรี
Documentation icon คู่มือการใช้งานมอดูล[ดู] [แก้] [ประวัติ] [ล้างแคช]
แผนที่ที่ตั้งของโมซัมบิก
name โมซัมบิก
border
coordinates
-10.2
29.8 ←↕→ 41.8
-27.4
map center 18°48′S 35°48′E / 18.8°S 35.8°E / -18.8; 35.8
image Mozambique adm location map.svg
image1 Mozambique relief location map.jpg
แผนที่ประเทศโมซัมบิก

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

การใช้งาน

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

ค่านิยาม

  • name = โมซัมบิก
    ชื่อที่ใช้ในคำอธิบายแผนที่ค่าเริ่มต้น (default map)
  • image = Mozambique adm location map.svg
    ภาพแผนที่ค่าเริ่มต้น ไม่ต้องใส่ "Image:" หรือ "File:" (หรือ "ภาพ:" หรือ "ไฟล์:")
  • image1 = Mozambique relief location map.jpg
    ภาพแผนที่ทางเลือก (alternative map) มักจะเป็นแผนที่ภูมิประเทศ (relief map) ซึ่งกำหนดให้แสดงได้โดยใช้พารามิเตอร์ relief หรือ AlternativeMap
  • top = -10.2
    ค่าละติจูดของตำแหน่งขอบบนสุดของแผนที่ในค่าทศนิยม (decimal degrees)
  • bottom = -27.4
    ค่าละติจูดของตำแหน่งขอบล่างสุดของแผนที่ในค่าทศนิยม
  • left = 29.8
    ค่าลองจิจูดของตำแหน่งขอบซ้ายสุดของแผนที่ในค่าทศนิยม
  • right = 41.8
    ค่าลองจิจูดของตำแหน่งขอบขวาสุดของแผนที่ในค่าทศนิยม

แผนที่ทางเลือก (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:

ความแม่นยำ

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

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

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

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

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

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

มาปูตูตั้งอยู่ในโมซัมบิก
มาปูตู
มาปูตู
มาปูตู (โมซัมบิก)
{{Location map | Mozambique
| width   = 200
| lat_deg = -25.58
| lon_deg = 32.35
| label   = มาปูตู
}}

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

Location map/data/Mozambiqueตั้งอยู่ในโมซัมบิก
มาปูตู
มาปูตู
ไบรา
ไบรา
เมืองในประเทศโมซัมบิก
{{Location map many | Mozambique
| relief   = yes
| width    = 250
| caption  = เมืองในประเทศโมซัมบิก
| lat1_deg = -25.58
| lon1_deg = 32.35
| label1   = มาปูตู
| pos1     = bottom
| lat2_deg = -19.50
| lon2_deg = 34.51
| label2   = ไบรา
| pos2     = bottom
}}

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

Location map/data/Mozambiqueตั้งอยู่ในโมซัมบิก
มาปูตู
มาปูตู
นัมปูลา
นัมปูลา
เมืองในประเทศโมซัมบิก
{{Location map+ | Mozambique
| AlternativeMap = Mozambique relief location map.jpg
| width   = 250
| caption = เมืองในประเทศโมซัมบิก
| places  =
  {{Location map~ | Mozambique
  | lat_deg  = -25.58
  | lon_deg  = 32.35
  | label    = มาปูตู
  | position = bottom
  }}
  {{Location map~ | Mozambique
  | lat_deg  = -15.07
  | lon_deg  = 39.16
  | label    = นัมปูลา
  | position = bottom
  }}
}}

ดูเพิ่ม

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

return {
 name = 'โมซัมบิก',
 top = -10.2,
 bottom = -27.4,
 left = 29.8,
 right = 41.8,
 image = 'Mozambique adm location map.svg',
 image1 = 'Mozambique relief location map.jpg'
}