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

จากวิกิพีเดีย สารานุกรมเสรี
(เปลี่ยนทางจาก แม่แบบ:Location map Burma)
Documentation icon คู่มือการใช้งานมอดูล[ดู] [แก้] [ประวัติ] [ล้างแคช]
แผนที่ที่ตั้งของประเทศพม่า
name ประเทศพม่า
border
coordinates
29
92 ←↕→ 102
9
map center 19°N 97°E / 19°N 97°E / 19; 97
image Myanmar location map.svg
image1 Myanmar relief location map.jpg

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

การใช้งาน

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

ค่านิยาม

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

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

ความแม่นยำ

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

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

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

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

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

แม่แบบ Location map

ย่างกุ้งตั้งอยู่ในประเทศพม่า
ย่างกุ้ง
ย่างกุ้ง
ย่างกุ้ง (ประเทศพม่า)
{{Location map | Myanmar
| width   = 150
| lat_deg = 16.85
| lon_deg = 96.18
| label   = ย่างกุ้ง
}}

แม่แบบ Location map many

Location map/data/Myanmarตั้งอยู่ในประเทศพม่า
ย่างกุ้ง
ย่างกุ้ง
เนปยีดอ
เนปยีดอ
มัณฑะเลย์
มัณฑะเลย์
เมืองสามแห่งในพม่า
{{Location map many | Myanmar
| width    = 150
| caption  = เมืองสามแห่งในพม่า
| lat1_deg = 16.85 | lon1_deg = 96.18 | label1 = ย่างกุ้ง
| lat2_deg = 19.75 | lon2_deg = 96.10 | label2 = เนปยีดอ
| lat3_deg = 21.98 | lon3_deg = 96.08 | label3 = มัณฑะเลย์
}}

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

Location map/data/Myanmarตั้งอยู่ในประเทศพม่า
ย่างกุ้ง
ย่างกุ้ง
เนปยีดอ
เนปยีดอ
มัณฑะเลย์
มัณฑะเลย์
เมืองสามแห่งในพม่า
{{Location map+ | Myanmar
| relief  = yes
| width   = 150
| caption = เมืองสามแห่งในพม่า
| places  =
  {{Location map~ | Myanmar
  | lat_deg = 16.85 | lon_deg = 96.18 | label = ย่างกุ้ง
  }}
  {{Location map~ | Myanmar
  | lat_deg = 19.75 | lon_deg = 96.10 | label = เนปยีดอ
  }}
  {{Location map~ | Myanmar
  | lat_deg = 21.98 | lon_deg = 96.08 | label = มัณฑะเลย์
  }}
}}

ดูเพิ่ม

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

return {
name = 'ประเทศพม่า',
top    = 29,
bottom = 9,
left   = 92,
right  = 102,
image = 'Myanmar location map.svg',
image1 = 'Myanmar relief location map.jpg'
}