Үлгі:Coor
Usage
This template produces a link to a list of map sources, based on the geographical coordinates and other parameters, concatenated into one template parameter. The other template parameter is the link label.
Use:
- {{coor|cc|tt}}
Where:
- cc is the coordinate written in the format required by the Special:Mapsources page. For example, for the coordinate 59° 55′ N 10° 44′ E, use: 59_55_N_10_44_E.
- tt is the text appearing in the link
Implementation details
Geo tag
To define a geographical point, the Mediawiki gis extension is required. For further information, see the Mediawiki documentation.
- NOTE: This extension is available, but is currently not enabled for Wikipedia. The functionality is thus currently only available via the template:coor family, which is an interim solution, e.g.
- {{coor d|48.776667|N|121.814167|W|}} gives
- {{coor dm|48|46.600|N|121|48.850|W|}} gives
- {{coor dms|48|46|36|N|121|48|51|W|}} gives
- {{coor dms|53|35|05|N|14|54|07|E|type:airport}} gives
- On the surface of the earth, 1 minute of arc of latitude corresponds to 1.0 nautical mile or 1.852 kilometer, whereas, 1 arc second of latitude corresponds to 30.8667 meters (101.269 ft). Because of the numerical equivalence of minute of arc and nautical mile measures, many people find minutes, in degree-minute (dm) format easier to comprehend than arc seconds in degree-minute-second (dms) format, e.g., for navigation.
The geo tag specifies the coordinates as degrees/minutes/seconds of latitude and longitude, like this:
- <geo>48 46 36 N 121 48 51 W</geo>.
In the finished article, the tag will appear as
. Seconds, or minutes and seconds, may be omitted. Optionally, the precision of the smallest unit used may be increased using decimals.Parameters
Following the geographical coordinate, further parameters can optionally be supplied, separated by underscores. This will help in finding suitable map resources, and will become more important when the Wikimaps become fully functional.
type:T
Sets the type of this location, which will be used for the reverse mapping of the points. Will also set the default map scale. Types are:
country | (e.g. "type:country") | 1:10,000,000 |
state | Where applicable | 1:3,000,000 |
adm1st | Administrative unit of country, 1st level (province, county) | 1:1,000,000 |
adm2nd | Administrative unit of country, 2nd level | 1:300,000 |
city(pop) | City, town or village with specified population. Commas will be ignored in pop. There should be no blanks. | 1:30,000 ... 1:300,000 |
city | City, town or village, unspecified population. Will be treated as a minor city. | 1:100,000 |
airport | 1:30,000 | |
mountain | 1:100,000 | |
isle | 1:100,000 | |
waterbody | Bays, fjords, lakes, glaciers, inland seas... | 1:100,000 |
landmark | Cultural landmark, building of special interest, tourist attraction and other points of interest. | 1:10,000 |
forest | Forests and woodlands | ? |
Sample:
- {{coor dm|46|43|N|7|58|E|type:mountain}} gives
scale:N
Sets the desired map scale as 1:N. This will override the default scale. The scale: prefix can be omitted.
region:R
Sets the preferred map region of coverage, used in selecting appropriate map resources for the area. The region should be supplied as either a two character ISO 3166-1 alpha-2 country code, or an ISO 3166-2 region code. Examples:
- US United States
- CA Canada
- DE Germany
- DE-TH Germany, Thuringia
- CH Switzerland
- FR France
- GB United Kingdom
- IN India
- BR Brazil
- AU Australia
- NO-03 Oslo, Norway
- NL Netherlands
- LK Sri Lanka
Sample:
- {{coor dms|46|57|08.66|N|7|26|22.50|E|region:CH_type:landmark}} enables the subpage for Switzerland at .
- {{coor dms|52|30|59|N|13|22|39|E|region:DE-BB_type:city}} enables the subpage for Germany at .
globe:G
Specifies other worlds than earth. Such as Moon.
source:S
Specifies, where present, the data source and data format/datum, and optionally the original data, presented in parentheses. This is initially primarily intended for use by geotagging robots, so that data is not blindly repeatedly copied from format to format and Wikipedia to Wikipedia, with progressive loss of precision and attributability.
Examples:
- A lat/long geotag derived from a Ordnance Survey National Grid Reference NM 435 355 found in the English-language Wikipedia would be tagged as "source:enwiki-osgb36(NM435355)"
- A latitude-longitude location sourced from data taken from the German-language Wikipedia would be tagged as "source:dewiki" -- and so on, for other language codes;
- A location sourced from the public domain GeoNet Names Server database would be tagged as "source:GNS". No datum or format information is needed, since by default all Wikipedia coordinates are in latitude/longitude format based on the WGS84 datum. Similarly, U.S. locations sourced from the similar public domain GNIS database would be tagged as "source:GNIS".
The main coordinates templates (see below) are generally used instead of this template.
See also
On how to use the different templates, see Wikipedia:Manual of Style (dates and numbers)#Geographical coordinates
For further information, see WikiProject Geographical coordinates.
- Template:oscoor for coordinates using the British national grid reference system.
- German version of the template: de:Vorlage:Koordinate
- Danish version of the template: da:Skabelon:Coor_dms
Main coordinates templates
- Template:Coor URL
- Template:Coord
- Standard coordinates link
- Displays coordinates near article title
- Standard coordinates link, and coordinates near article title