คุยเรื่องแม่แบบ:Coor
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.
- {{Coord|48.776667|N|121.814167|W|}} gives 48°46′36″N 121°48′51″W / 48.776667°N 121.814167°W
- {{Coord|48|46.600|N|121|48.850|W|}} gives 48°46.600′N 121°48.850′W / 48.776667°N 121.814167°W
- {{Coord|48|46|36|N|121|48|51|W|}} gives 48°46′36″N 121°48′51″W / 48.77667°N 121.81417°W
- 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 48°46′36″N 121°48′51″W / 48.77667°N 121.81417°W. 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 |
Sample:
- {{Coord|46|43|N|7|58|E|type:mountain}} gives 46°43′N 7°58′E / 46.717°N 7.967°E
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
Sample:
- {{Coord|46|57|08.66|N|7|26|22.50|E|region:CH_type:landmark}} enables the subpage for Switzerland at 46°57′08.66″N 7°26′22.50″E / 46.9524056°N 7.4395833°E.
- {{Coord|52|30|59|N|13|22|39|E|region:DE-BB_type:city}} enables the subpage for Germany at 52°30′59″N 13°22′39″E / 52.51639°N 13.37750°E.
globe:G แก้
Specifies other worlds than earth. Such as Moon.
The map source page แก้
To generate the list of map sources, the Mediawiki gis extension is required. The definition of the map sources page is via วิกิพีเดีย:Map sources. For further information, see the Mediawiki documentation.
NOTE: This mechanism is available, but currently not enabled for Wikipedia, The current solution is running on an external server as a proof-of-concept, and is available via the template:coor family. The map source page produced is defined in the editable "Wikipedia:Map_sources" (sample currently at User:Magnus Manske/GeoTemplate). In the interim solution, the URL of the actual map sources page request is:
- . The argument follows the same format as the geo tag.