ਫਰਮਾ:Coord
Quick guideQuick how to
To add 57°18′22″N 4°27′32″W / 57.30611°N 4.45889°W to the top of an article, use {{Coord}}, thus:
These coordinates are in degrees, minutes, and seconds of arc. "title" means that the coordinates will be displayed next to the article's title at the top of the page (in desktop view only; title coordinates do not display in mobile view) and before any other text or images. It also records the coordinates as the primary location of the page's subject in Wikipedia's geosearch API. To add 44°06′45″N 87°54′47″W / 44.1124°N 87.9130°W to the top of an article, use either
(which does not require minutes or seconds but does require the user to specify north/ south and east/west) or
(in which the north and east are presumed by positive values while the south and west are negative ones). These coordinates are in decimal degrees.
Optional coordinate parameters follow the longitude and are separated by an underscore ("_"):
Other optional parameters are separated by a pipe ("|"):
Thus:
Use
Purpose{{Coord}} provides a standard notation for encoding locations by their latitude and longitude coordinates. It is primarily for specifying the WGS84 geographic coordinates of locations on Earth, at the same time emitting a machine-readable Geo microformat. However, it can also encode locations on natural satellites, dwarf planets, and planets other than Earth.
See also: Wikipedia:WikiProject Geographical coordinates. FeaturesLatitude and longitude may be specified (with appropriate precision) either in decimal notation or as degrees/minutes/seconds. By default, coordinates appear in the format used to specify them. However, the The template displays the formatted coordinates with a hyperlink to GeoHack. GeoHack displays information customized to the location, including links to external mapping services. For terrestrial locations, a blue globe ( By default, coordinates appear "in line" with the adjacent text. However, the The template outputs coordinates in three formats:
Additional features
CaveatsThe template must not be modified without prior discussion. External tools can depend on the format of both the wikitext and/or the generated html. Usage{{coord|latitude|longitude|coordinate parameters|template parameters}} {{coord|dd|N/S|dd|E/W|coordinate parameters|template parameters}} {{coord|dd|mm|N/S|dd|mm|E/W|coordinate parameters|template parameters}} {{coord|dd|mm|ss|N/S|dd|mm|ss|E/W|coordinate parameters|template parameters}} The hemisphere identifiers (N/S) and (E/W), if used, must be adjacent to the enclosing pipe " There are two kinds of parameters, all optional:
Helper functionsHelper functions are available to manipulate the output from {{Coord}} when it appears in a container template such as an infobox. To extract the latitude from a Coord templateUse:
and similarly to extract the longitude, use:
Displaying all coordinate links on one mapThe template {{GeoGroup}} can be used in an article with coordinates. This template creates links to mapping services which display all the coordinates on a single map, and links to other services which allow the coordinates to be used or downloaded in a variety of formats. Examples
ReferencesCoordinate parametersThe first unnamed parameter following the longitude is an optional string of coordinate parameters, separated by underscores. These parameters help GeoHack select suitable map resources, and they will become more important when Wikimaps becomes fully functional. type:Tਵਿਕੀਪੀਡੀਆ:WikiProject Geographical coordinates/type: scale:Nਵਿਕੀਪੀਡੀਆ:WikiProject Geographical coordinates/scale: dim:DThe GeoHack uses
region:Rਵਿਕੀਪੀਡੀਆ:WikiProject Geographical coordinates/region: globe:Gਵਿਕੀਪੀਡੀਆ:WikiProject Geographical coordinates/globe: source:Sਵਿਕੀਪੀਡੀਆ:WikiProject Geographical coordinates/source: Per-user display customizationTo always display coordinates as DMS values, add this to your common.css: .geo-default { display: inline } .geo-nondefault { display: inline } .geo-dec { display: none } .geo-dms { display: inline } To always display coordinates as decimal values, add this to your common.css: .geo-default { display: inline } .geo-nondefault { display: inline } .geo-dec { display: inline } .geo-dms { display: none } To display coordinates in both formats, add this to your 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. (You can either clear your cache or manually refresh this URL: [1].) To disable display of the blue globe adjacent to coordinates, add this to your common.js: var wma_settings = {enabled:false} Note that this will disable WikiMiniAtlas. See also Wikipedia:Manual of Style (dates and numbers)#Geographical coordinates. Incorrect uses and maintenance categoriesThe template has some input checks built in. Most errors display a bold, red message inline and categorize the article in the hidden maintenance category Pages with malformed coordinate tags. There are currently 28 pages in that category. See the category description for further instructions. A more thorough daily report of coordinates needing repair is at tools:~dispenser/view/File viewer#log:coord-enwiki.log. See also: WT:GEO#To do InternalsThis template is completely powered by the Lua Class namesThe class names geo, latitude and longitude are used to generate the microformat and MUST NOT be changed. HistoryThis template used to use a lot of sub templates but these have all been replaced by Template DataThis template uses overloading[ਸਪਸ਼ਟੀਕਰਨ ਲੋੜੀਂਦਾ] which does not work well with the VisualEditor/TemplateData. Consider using "Edit source" instead of the visual editor until this defect is corrected. To facilitate visual editing in the meantime, consider using {{coordDec}} for signed decimal degrees, {{coordDMS}} when degrees minutes and seconds are specified, and {{coordDM}} when just degrees and minutes are given. This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for Template:Coord based on its TemplateData.
TemplateData for 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.
See also
|
Portal di Ensiklopedia Dunia