แม่แบบ:Coord/doc

แม่แบบ coord จะสร้างลิงก์พิกัดภูมิศาสตร์ตามพารามิเตอร์ที่ระบุลงไป
พิกัดภูมิศาสตร์ที่สร้างขึ้น เป็นไปตาม WGS84 (ละติจูด; ลองจิจูด) สามารถระบุทั้งรูปแบบทศนิยม หรือรูปแบบองศา ลิปดา พิลิปดา ก็ได้
รูปแบบพิกัดอาจเป็นไปได้ 2 แบบคือ- องศา/ลิปดา/พิลิปดา (dms) แต่ความละเอียดอาจจะมีเฉพาะ องศา หรือองศา/ลิปดา หรือองศา/ลิปดา/พิลิปดา ก็ได้- ทศนิยม (deg)

**การใช้แทนที่แม่แบบที่ล้าสมัย**
แม่แบบ 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:
.geo-default { display: inline } .geo-nondefault { display: inline } .geo-dec { display: none }   .geo-dms { display: inline }
หากต้องการให้แสดงผลในรูปแบบทศนิยม (deg) เสมอ ให้แก้ไฟล์ common.css:
.geo-default { display: inline } .geo-nondefault { display: inline }.geo-dec { display: inline } .geo-dms { display: none }
หากต้องการให้แสดงผลทั้งสองรูปแบบเสมอ ให้แก้ไฟล์ common.css:
.geo-default { display: inline } .geo-nondefault { display: inline }.geo-dec { display: inline }   .geo-dms { display: inline }.geo-multi-punct { display: inline }
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: .)

**การใช้งาน**



- parameters, which are optional, can be any type:, region:, or scale: setting which is recognised by the map server, such as the popular type:city and type:landmark options. See Wikipedia:WikiProject Geographical coordinates#Parameters for a comprehensive list.- display, which is optional, can be one of the following:
** inline (default) : display the coordinate inline
** title: display the coordinate by the article title, right-justified (replaces coor title dms family)
** inline,title: display both inline at title (replaces coor at dms family)
Note: using the title attribute indicates that the coordinates apply to the article, and not just one of (perhaps many) places mentioned in it — so it should only be omitted in the latter case. It will be used to add the article to services such as Google Earth layers.

**ตัวอย่าง**
(These are live geo-microformats and should be detected on this page by parsers)
format=dms 
format=dec 
region:GB_type:city Birmingham - with display and parameter settings; note display also in title of this page.

**Class names**
The class names geo, latitude and longitude are used to generate the microformat and MUST NOT be changed.

**ข้อมูลแม่แบบ**
{
	"description": "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  for signed decimal degrees,  when degrees minutes and seconds are specified  when only degrees and minutes are specified. To use this template you will need to use positional parameter following one of these schemes:  opts,  opts,  opts  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.",
	"params": {
		"1": {
			"label": "1",
			"description": "Either degrees latitude or a signed decimal degrees latitude",
			"type": "number",
			"required": false,
			"suggested": true
		},
		"2": {
			"label": "2",
			"description": "Either: minutes latitude, signed decimal degrees longitude or 'N' or 'S'.",
			"type": "string",
			"required": false,
			"suggested": true
		},
		"3": {
			"label": "3",
			"description": "Either: second latitude, degrees longitude, 'N' or 'S' or GeoHack parameters",
			"type": "string",
			"required": false
		},
		"4": {
			"label": "4",
			"description": "Either: degrees longitude, 'N', 'S', 'E' or 'W' or GeoHack parameters",
			"type": "string",
			"required": false
		},
		"5": {
			"label": "5",
			"description": "Either: degrees longitude, minutes longitude or GeoHack parameters",
			"type": "string",
			"required": false
		},
		"6": {
			"label": "6",
			"description": "Either: minutes longitude, 'E' or 'W' or GeoHack parameters",
			"type": "string",
			"required": false
		},
		"7": {
			"label": "7",
			"description": "Either second longitude, or GeoHack parameters",
			"type": "string",
			"required": false
		},
		"8": {
			"label": "8",
			"description": "'E' or 'W'.",
			"type": "string",
			"required": false
		},
		"9": {
			"label": "9",
			"description": "GeoHack parameters. Example: dim:30_region:US-WI_type:event",
			"type": "string",
			"required": false
		},
		"qid": {
			"label": "Wikidata item",
			"description": "Retrieve coordinates from a WikiData entry instead of from this template's parameters",
			"type": "line",
			"required": false,
			"example": "Q513"
		},
		"display": {
			"label": "Display",
			"description": "Where it is displayed. Can be one of: 'inline' in the body of the article, 'title' at the top of the article or 'inline,title' both",
			"type": "line",
			"default": "inline",
			"suggested": true,
			"required": false,
			"suggestedvalues": 
				"inline",
				"title",
				"inline,title"
			
		},
		"name": {
			"label": "Name",
			"description": "a label to place on maps (default is PAGENAME)",
			"type": "string",
			"required": false
		},
		"notes": {
			"label": "Notes",
			"description": "text displayed immediately following the coordinates",
			"type": "string",
			"required": false
		},
		"format": {
			"label": "Format",
			"description": "How the coordinates are displayed, either 'dec' or 'dms'",
			"type": "line",
			"required": false,
			"suggestedvalues": 
				"dec",
				"dms"
			
		},
		"nosave": {
			"label": "Geosearch",
			"description": "Set to 'true' if you want to avoid this coordinate to be registered in the geosearch API.",
			"type": "string",
			"required": false
		}
	}
}

**แหล่งข้อมูลอื่น**
  Google Earth Geographic Web Layer FAQ - Information on how Google uses Wikipedia's coordinate information.