คุยเรื่องแม่แบบ:Coor - วิกิพีเดีย

# คุยเรื่องแม่แบบ: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.
  - {{coor d|48.776667|N|121.814167|W|}} gives 48.776667° N 121.814167° W
  - {{coor dm|48|46.600|N|121|48.850|W|}} gives 48°46.600′ N 121°48.850′ W
  - {{coor dms|48|46|36|N|121|48|51|W|}} gives 48° 46′ 36″ N 121° 48′ 51″ 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. 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:

- {{coor dm|46|43|N|7|58|E|type:mountain}} gives 46°43′ N 7°58′ 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:

- {{coor dms|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.
- {{coor dms|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.

##### [แก้] 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 `Wikipedia: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:

- `http://tools.wikimedia.de/~magnus/geo/geohack.php?params=48_46_36_N_121_48_51_W`. The argument follows the same format as the geo tag.

ดึงข้อมูลจาก "http://th.wikipedia.org../../../c/o/o/%E0%B8%84%E0%B8%B8%E0%B8%A2%E0%B9%80%E0%B8%A3%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%87%E0%B9%81%E0%B8%A1%E0%B9%88%E0%B9%81%E0%B8%9A%E0%B8%9A%7ECoor_ae09.html".

##### Views

- แม่แบบ
- อภิปราย
- รุ่นปัจจุบัน

##### ค้นหา