แม่แบบ:Coord
แม่แบบ {{coord}} จะสร้างลิงก์พิกัดภูมิศาสตร์ตามพารามิเตอร์ที่ระบุลงไป พิกัดภูมิศาสตร์ที่สร้างขึ้น เป็นไปตาม WGS84 (ละติจูด; ลองจิจูด) สามารถระบุทั้งรูปแบบทศนิยม หรือรูปแบบองศา ลิปดา พิลิปดา ก็ได้ รูปแบบพิกัดอาจเป็นไปได้ 2 แบบคือ
การใช้แทนที่แม่แบบที่ล้าสมัยแม่แบบ {{Coord}} สามารถใช้แทนที่ {{coor d}}, {{coor dm}}, {{coor dms}}, {{coor at d}}, {{coor at dm}}, {{coor at dms}}, {{coor title d}}, {{coor title dm}} และ {{coor title dms}} พารามิเตอร์แทบจะเหมือนเดิมทุกประการ (มีเพียงพารามิเตอร์ display ที่เพิ่มเข้ามา) ตัวอย่าง:
การแสดงผลโดยปกติแล้ว พิกัดภูมิศาสตร์จะแสดงผลในรูปแบบตามที่ได้ระบุไว้ หากต้องการให้แสดงผลในรูปแบบองศา/ลิปดา/พิลิปดา (dms) เสมอ ให้แก้ไฟล์ common.css:
หากต้องการให้แสดงผลในรูปแบบทศนิยม (deg) เสมอ ให้แก้ไฟล์ common.css:
หากต้องการให้แสดงผลทั้งสองรูปแบบเสมอ ให้แก้ไฟล์ common.css:
If CSS is disabled, or you have an old copy of MediaWiki:Common.css cached, you will see both formats. (The cache for Common.css takes 31 days to expire, and the changes were made 2007-04-04. You can either clear your cache or manually refresh this URL: [1].) การใช้งาน{{coord|latitude|longitude|parameters|display=display}} {{coord|dd|N/S|dd|E/W|parameters|display=display}} {{coord|dd|mm|N/S|dd|mm|E/W|parameters|display=display}} {{coord|dd|mm|ss|N/S|dd|mm|ss|E/W|parameters|display=display}}
Note: using the ตัวอย่าง(These are live geo-microformats and should be detected on this page by parsers)
Class namesThe class names geo, latitude and longitude are used to generate the microformat and MUST NOT be changed. ข้อมูลแม่แบบด้านล่างนี้คือข้อมูลแม่แบบ เอกสารกำกับสำหรับแม่แบบนี้ซึ่งถูกใช้งานโดย ตัวช่วยสร้างแม่แบบ, เครื่องมือแก้ไขแบบเห็นภาพ และเครื่องมืออื่น ๆ ดูรายงานการใช้พารามิเตอร์ประจำเดือนสำหรับแม่แบบ:Coord
ข้อมูลแม่แบบสำหรับ Coord Encodes the latitude and longitude coordinates of a location, provides a link to map of the location. This template does not work well with the Visual Editor, consider using {{coordDec}} for signed decimal degrees, {{coordDMS}} when degrees minutes and seconds are specified {{coordDM}} when only degrees and minutes are specified. To use this template you will need to use positional parameter following one of these schemes: {{coord | D | M | S | NS | D | M | S | EW | geo | opts}}, {{coord | D | M | NS | D | M | EW | geo | opts}}, {{coord | D| NS | D| EW | geo | opts}} {{coord | sD | sD | geo | opts}} where D is degrees, M is minutes, S seconds, sD signed decimal degrees, NS is N or S, EW is E or W, opts are named parameter and geo are the coordinate parameters described on the main doc page.
แหล่งข้อมูลอื่น
|
Portal di Ensiklopedia Dunia