Documentation icon คู่มือการใช้งานมอดูล[ดู] [แก้] [ประวัติ] [ล้างแคช]
แผนที่ที่ตั้งของประเทศญี่ปุ่น
name ประเทศญี่ปุ่น
x 100*(($1>30.90)*($2-128.24)/(149.27-128.24)+($1<=30.90)*($2-110.43)/(131.44-110.43))
y 100*(($1>30.90)*($1-45.86)/(30.02-45.86)+($1<=30.90)*($1-39.54)/(23.71-39.54))
image Japan location map with side map of the Ryukyu Islands.svg
image1 Japan natural location map with side map of the Ryukyu Islands.jpg
image2 Japan bluemarble location map with side map of the Ryukyu Islands.jpg
แผนที่ประเทศญี่ปุ่น

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

การใช้งาน

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

ค่านิยาม

  • name = ประเทศญี่ปุ่น
    ชื่อที่ใช้ในคำอธิบายแผนที่ค่าเริ่มต้น (default map)
  • y = 100*(($1>30.90)*($1-45.86)/(30.02-45.86)+($1<=30.90)*($1-39.54)/(23.71-39.54))
    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

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

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

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

ฟูกูโอกะตั้งอยู่ในประเทศญี่ปุ่น
ฟูกูโอกะ
ฟูกูโอกะ
ฟูกูโอกะ (ประเทศญี่ปุ่น)
{{Location map |Japan
|label = ฟูกูโอกะ
|coordinates = {{coord|33|35|N|130|24|E|display=inline}}
}}

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

Location map/data/Japanตั้งอยู่ในประเทศญี่ปุ่น
ฟูกูโอกะ
ฟูกูโอกะ
นาฮะ
นาฮะ
{{Location map many |Japan
|relief = yes
|caption = สถานที่ใน[[ญี่ปุ่น]]และ[[หมู่เกาะรีวกีว]]
|background = lightgrey
|label1 = ฟูกูโอกะ
|coordinates1 = {{coord|33|35|N|130|24|E|display=inline}}
|label2 = นาฮะ
|coordinates2 = {{coord|26|12|N|127|41|E|display=inline}}
}}

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

Location map/data/Japanตั้งอยู่ในประเทศญี่ปุ่น
ฟูกูโอกะ
ฟูกูโอกะ
นาฮะ
นาฮะ
{{Location map+ |Japan
|AlternativeMap = Japan bluemarble location map with side map of the Ryukyu Islands.jpg
|caption = สถานที่ใน[[ญี่ปุ่น]]และ[[หมู่เกาะรีวกีว]]
|places =
  {{Location map~ |Japan
  |background = lightgrey
  |label = ฟูกูโอกะ
  |coordinates = {{coord|33|35|N|130|24|E|display=inline}}
  }}
  {{Location map~ |Japan
  |label = นาฮะ
  |coordinates = {{coord|26|12|N|127|41|E|display=inline}}
  }}
}}

ตัวอย่างการใช้ร่วมกับแม่แบบ:กล่องข้อมูล นิคม

เกาะหลักญี่ปุ่น (เหนือละติจูด 30.90°N) ใช้แผนที่ปกติ

ฟูกูโอกะ
ฟูกูโอกะตั้งอยู่ในประเทศญี่ปุ่น
ฟูกูโอกะ
ฟูกูโอกะ
พิกัด: 33°35′N 130°24′E / 33.583°N 130.400°E / 33.583; 130.400
ประเทศญี่ปุ่น
ภูมิภาคคีวชู
จังหวัดฟูกูโอกะ
{{กล่องข้อมูล นิคม
|name               = ฟูกูโอกะ
|subdivision_type   = ประเทศ
|subdivision_name   = ญี่ปุ่น
|subdivision_type1  = ภูมิภาค
|subdivision_name1  = คีวชู
|subdivision_type2  = จังหวัด
|subdivision_name2  = ฟูกูโอกะ
|pushpin_map        = Japan
|coordinates        = {{coord|33|35|N|130|24|E|region:JP|display=inline}}
}}

หมู่เกาะรีวกีว (ใต้ละติจูด 30.90°N) ใช้แผนที่ทางเลือก

นาฮะ
นาฮะตั้งอยู่ในประเทศญี่ปุ่น
นาฮะ
นาฮะ
พิกัด: 26°12′N 127°41′E / 26.200°N 127.683°E / 26.200; 127.683
ประเทศญี่ปุ่น
ภูมิภาคคีวชู
จังหวัดโอกินาวะ
{{กล่องข้อมูล นิคม
|name               = นาฮะ
|subdivision_type   = ประเทศ
|subdivision_name   = ญี่ปุ่น
|subdivision_type1  = ภูมิภาค
|subdivision_name1  = คีวชู
|subdivision_type2  = จังหวัด
|subdivision_name2  = โอกินาวะ
|pushpin_map        = Japan
|pushpin_image      = Japan natural location map with side map of the Ryukyu Islands.jpg
|coordinates        = {{coord|26|12|N|127|41|E|region:JP|display=inline}}
}}

ดูเพิ่ม

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

return {
	name = 'ประเทศญี่ปุ่น',
	x = '100*(($1>30.90)*($2-128.24)/(149.27-128.24)+($1<=30.90)*($2-110.43)/(131.44-110.43))',
	y = '100*(($1>30.90)*($1-45.86)/(30.02-45.86)+($1<=30.90)*($1-39.54)/(23.71-39.54))',
	image = 'Japan location map with side map of the Ryukyu Islands.svg',
	image1 = 'Japan natural location map with side map of the Ryukyu Islands.jpg',
	image2 = 'Japan bluemarble location map with side map of the Ryukyu Islands.jpg'
}