มอดูล:Location map/data/Serbia/doc

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


แผนที่ที่ตั้งของเซอร์เบีย
name เซอร์เบีย
border
coordinates
46.3
18.7 ←↕→ 23.2
41.7
map center 44°00′N 20°57′E / 44°N 20.95°E / 44; 20.95
image Serbia adm location map.svg
image1 Reliefkarte Serbien.png
image2 Relief map of Serbia.png
แผนที่ประเทศเซอร์เบีย

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

การใช้งาน

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

ค่านิยาม

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

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

ความแม่นยำ

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

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

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

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

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

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

เบลเกรดตั้งอยู่ในเซอร์เบีย
เบลเกรด
เบลเกรด
เบลเกรด (เซอร์เบีย)
{{Location map | Serbia
| width   = 150
| lat_deg = 44.82
| lon_deg = 20.47
| label   = เบลเกรด
}}

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

Location map/data/Serbia/docตั้งอยู่ในเซอร์เบีย
เบลเกรด
เบลเกรด
นีช
นีช
เมืองในประเทศเซอร์เบีย
{{Location map many | Serbia
| relief   = yes
| width    = 200
| caption  = เมืองในประเทศเซอร์เบีย
| lat1_deg = 44.82
| lon1_deg = 20.47
| label    = เบลเกรด
| lat2_deg = 43.3
| lon2_deg = 21.9
| label2   = นีช
}}

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

Location map/data/Serbia/docตั้งอยู่ในเซอร์เบีย
เบลเกรด
เบลเกรด
นีช
นีช
เมืองในประเทศเซอร์เบีย
{{Location map+ | Serbia
| AlternativeMap = Relief map of Serbia.png
| width   = 200
| caption = เมืองในประเทศเซอร์เบีย
| places  =
  {{Location map~ | Serbia
  | lat_deg = 44.82
  | lon_deg = 20.47
  | label   = เบลเกรด
  }}
  {{Location map~ | Serbia
  | lat_deg = 43.3
  | lon_deg = 21.9
  | label   = นีช
  }}
}}

ดูเพิ่ม

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