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

จากวิกิพีเดีย สารานุกรมเสรี
Documentation icon คู่มือการใช้งานมอดูล[ดู] [แก้] [ประวัติ] [ล้างแคช]
แผนที่ที่ตั้งของอุรุกวัย
name อุรุกวัย
border
coordinates
-29.858
-58.69 ←↕→ -52.89
-35.175
map center 32°30′59″S 55°47′24″W / 32.5165°S 55.79°W / -32.5165; -55.79
image Uruguay location map.svg
image1 Uruguay topographic location map.png
แผนที่ประเทศอุรุกวัย

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

การใช้งาน

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

ค่านิยาม

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

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

ความแม่นยำ

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

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

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

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

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

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

มอนเตวิเดโอตั้งอยู่ในอุรุกวัย
มอนเตวิเดโอ
มอนเตวิเดโอ
มอนเตวิเดโอ (อุรุกวัย)
{{Location map | Uruguay
| width   = 200
| lat_deg = -34.884
| lon_deg = -56.182
| label   = มอนเตวิเดโอ
}}

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

Location map/data/Uruguayตั้งอยู่ในอุรุกวัย
มอนเตวิเดโอ
มอนเตวิเดโอ
ซัลโต
ซัลโต
เมืองในประเทศอุรุกวัย
{{Location map many | Uruguay
| relief   = yes
| width    = 250
| caption  = เมืองในประเทศอุรุกวัย
| lat1_deg = -34.884
| lon1_deg = -56.182
| label1   = มอนเตวิเดโอ
| bg1 = lightgrey
| lat2_deg = -31.383
| lon2_deg = -57.95
| label2   = ซัลโต
| bg2 = lightgrey
}}

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

Location map/data/Uruguayตั้งอยู่ในอุรุกวัย
มอนเตวิเดโอ
มอนเตวิเดโอ
ซัลโต
ซัลโต
เมืองในประเทศอุรุกวัย
{{Location map+ | Uruguay
| AlternativeMap = Uruguay location map Topographic.png
| width   = 250
| caption = เมืองในประเทศอุรุกวัย
| places  =
  {{Location map~ | Uruguay
  | lat_deg = -34.884
  | lon_deg = -56.182
  | label   = มอนเตวิเดโอ
  | background = lightgrey
  }}
  {{Location map~ | Uruguay
  | lat_deg = -31.383
  | lon_deg = -57.95
  | label   = ซัลโต
  | background = lightgrey
  }}
}}

ดูเพิ่ม

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

return {
	name = 'อุรุกวัย',
	top = -29.858,
	bottom = -35.175,
	left = -58.69,
	right = -52.89,
	image = 'Uruguay location map.svg',
	image1 = 'Uruguay topographic location map.png'
}