คุยเรื่องแม่แบบ: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.
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 / 48.77667; -121.81417. 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:

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:

Sample:

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: