มอดูล:Location map/data/Canada Northwest Territories

จากวิกิพีเดีย สารานุกรมเสรี
Documentation icon คู่มือการใช้งานมอดูล[ดู] [แก้] [ประวัติ] [ล้างแคช]
แผนที่ที่ตั้งของนอร์ทเวสต์เทร์ริทอรีส์
name นอร์ทเวสต์เทร์ริทอรีส์
x 33 + 50 + 409 * 0.5 * ln( ( 1 + cos($1*(pi/180))*sin(($2+106)*(pi/180)) ) / ( 1 - cos($1*(pi/180))*sin(($2+106)*(pi/180)) ) )
y 406.5 - 294.5*(atan(tan($1*(pi/180))/cos(($2+106)*(pi/180)))+0)
image NWT All Region Locator.svg

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

การใช้งาน

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

ค่านิยาม

  • name = นอร์ทเวสต์เทร์ริทอรีส์
    ชื่อที่ใช้ในคำอธิบายแผนที่ค่าเริ่มต้น (default map)
  • image = NWT All Region Locator.svg
    ภาพแผนที่ค่าเริ่มต้น ไม่ต้องใส่ "Image:" หรือ "File:" (หรือ "ภาพ:" หรือ "ไฟล์:")
  • x = 33 + 50 + 409 * 0.5 * ln( ( 1 + cos($1*(pi/180))*sin(($2+106)*(pi/180)) ) / ( 1 - cos($1*(pi/180))*sin(($2+106)*(pi/180)) ) )
    An expression to calculate a location on the map via its longitude; evaluates as 0 along the left edge and 100 along the right edge
  • y = 406.5 - 294.5*(atan(tan($1*(pi/180))/cos(($2+106)*(pi/180)))+0)
    An expression to calculate a location on the map via its latitude; evaluates as 0 along the top edge and 100 along the bottom edge



ดูเพิ่ม

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

return {
	name = 'นอร์ทเวสต์เทร์ริทอรีส์',
	x = '33 + 50 + 409 * 0.5 * ln( ( 1 + cos($1*(pi/180))*sin(($2+106)*(pi/180)) ) / ( 1 - cos($1*(pi/180))*sin(($2+106)*(pi/180)) ) )',
	y = '406.5 - 294.5*(atan(tan($1*(pi/180))/cos(($2+106)*(pi/180)))+0)',
	image = 'NWT All Region Locator.svg'
}