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

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


แผนที่ที่ตั้งของแคนาดา
name แคนาดา
x (0.43865313653137 + (1 - ($1- 63.31) * (0.034717103369757 + 0.000003525145 * ($1- 63.31) * ($1- 63.31))) * ($2+ 94.94) * ( 0.0089116793548638 - 0.000000361163 * ($2 + 94.94) * ($2 + 94.94))) * 100
y (-0.14714022140221 + (1 - ($1- 63.31) * (0.034717103369757 + 0.000003525145 * ($1 - 63.31) * ($1 - 63.31))) * ( 0.57149446494465 - 0.000069482763 * ($2 + 94.94) * ($2 + 94.94))) * 100 * 1.17826087
image Canada location map.svg
image1 Relief map of Canada.png
แผนที่ประเทศแคนาดา

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

การใช้งาน

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

ค่านิยาม

  • name = แคนาดา
    ชื่อที่ใช้ในคำอธิบายแผนที่ค่าเริ่มต้น (default map)
  • image = Canada location map.svg
    ภาพแผนที่ค่าเริ่มต้น ไม่ต้องใส่ "Image:" หรือ "File:" (หรือ "ภาพ:" หรือ "ไฟล์:")
  • image1 = Relief map of Canada.png
    ภาพแผนที่ทางเลือก (alternative map) มักจะเป็นแผนที่ภูมิประเทศ (relief map) ซึ่งกำหนดให้แสดงได้โดยใช้พารามิเตอร์ relief หรือ AlternativeMap
  • x = (0.43865313653137 + (1 - ($1- 63.31) * (0.034717103369757 + 0.000003525145 * ($1- 63.31) * ($1- 63.31))) * ($2+ 94.94) * ( 0.0089116793548638 - 0.000000361163 * ($2 + 94.94) * ($2 + 94.94))) * 100
    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 = (-0.14714022140221 + (1 - ($1- 63.31) * (0.034717103369757 + 0.000003525145 * ($1 - 63.31) * ($1 - 63.31))) * ( 0.57149446494465 - 0.000069482763 * ($2 + 94.94) * ($2 + 94.94))) * 100 * 1.17826087
    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. Examples may be found below or in the following:

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

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

ออตตาวาตั้งอยู่ในแคนาดา
ออตตาวา
ออตตาวา
ออตตาวา (แคนาดา)
{{Location map | Canada
| width   = 250
| lat_deg = 45.42
| lon_deg = -75.7
| label   = ออตตาวา
}}

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

Location map/data/Canada/docตั้งอยู่ในแคนาดา
ออตตาวา
ออตตาวา
แวนคูเวอร์
แวนคูเวอร์
สถานที่สองแห่งในแคนาดา
{{Location map many | Canada
| relief   = yes
| width    = 250
| caption  = สถานที่สองแห่งในแคนาดา
| lat1_deg = 45.42
| lon1_deg = -75.7
| label1   = ออตตาวา
| lat2_deg = 49.25
| lon2_deg = -123.1
| label2   = แวนคูเวอร์
}}

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

Location map/data/Canada/docตั้งอยู่ในแคนาดา
ออตตาวา
ออตตาวา
แวนคูเวอร์
แวนคูเวอร์
สถานที่สองแห่งในแคนาดา
{{Location map+ | Canada
| AlternativeMap = Relief map of Canada.png
| width   = 250
| caption = สถานที่สองแห่งในแคนาดา
| places  =
  {{Location map~ | Canada
  | lat_deg = 45.42
  | lon_deg = -75.7
  | label   = ออตตาวา
  }}
  {{Location map~ | Canada
  | lat_deg = 49.25
  | lon_deg = -123.1
  | label   = แวนคูเวอร์
  }}
}}

ดูเพิ่ม

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