使用者:Artoria2e5/MOSCOORD

維基百科,自由的百科全書

本頁用於翻譯en:WP:MOSCOORDS及相關的WPP提議。

地理坐標

快速指南
坐標用法速查
要在條目頂端加入57°18′22″N 4°27′32″W / 57.30611°N 4.45889°W / 57.30611; -4.45889,可以這樣使用 {{Coord}}:
{{Coord|57|18|22|N|4|27|32|W|display=title}}

此處的經緯坐標使用角度、秒表示法。

"display=title" 表示將坐標顯示在條目標題旁。

要在條目頂端加入 44°06′43″N 87°54′47″W / 44.112°N 87.913°W / 44.112; -87.913,可以使用以下兩者之一:
{{Coord|44.112|N|87.913|W|display=title}}

{{Coord|44.112|-87.913|display=title}}

此處坐標使用小數度數表示。

以下可選參數跟在經度後,以下劃線("_")分割:
  • dim: dim:N(可視半徑,公尺)
  • region: region:R(區域號,使用ISO 3166-1二位字碼或ISO 3166-2
  • type: type:T (類型,如landmarkcity(30,000)

以下可選參數使用豎線("|")分割:

  • display
    |display=inline(默認)只和文字顯示在一起
    |display=title 只在標題旁顯示
    |display=inline,title 兩處都顯示
  • name
    name=X 可以制定地圖上坐標點的名稱(默認為PAGENAME

例如:{{Coord|44.117|-87.913|dim:30_region:US-WI_type:event

|display=inline,title|name=事故地点}}

|display=title|display=inline,title 用於條目所表述的對象,只應在條目中出現一次。

地球上的經緯度應使用模板輸入,以便提供一致格式、添加地圖鏈接。只要正確使用上述的模板,機器會處理剩下的事情。

首先要獲取坐標英語Wikipedia:Obtaining geographic coordinates。請避免使用過高的精度英語Wikipedia:WikiProject Geographical coordinates#Precision guidelines

{{Coord}} 模板template offers users a choice of display format through user styles, emits a Geo, and is recognised (in the title position) by the "nearby" feature of Wikipedia's mobile apps and by external service providers such as Google Maps and Google Earth, and Yahoo. Infoboxes automatically emit {{Coord}}.

The following formats are available.

  • For degrees only (including decimal values): {{coord|dd|N/S|dd|E/W}}
  • For degrees/minutes: {{coord|dd|mm|N/S|dd|mm|E/W}}
  • For degrees/minutes/seconds: {{coord|dd|mm|ss|N/S|dd|mm|ss|E/W}}

where:

  • dd, mm, ss are the degrees, minutes and seconds, respectively;
  • N/S is either N for northern or S for southern 緯度s;
  • E/W is either E for eastern or W for western 經度s;
  • negative values may be used in lieu of S and W to denote Southern and Western Hemispheres英語Hemisphere of the Earth

For example:

For the city of 奧斯陸, located at 59° 55′ N, 10° 44′ E:

{{coord|59|55|N|10|44|E}} – which becomes 59°55′N 10°44′E / 59.917°N 10.733°E / 59.917; 10.733

For a country, like 波札那, less precision is appropriate:

{{coord|22|S|24|E}} – which becomes 22°S 24°E / 22°S 24°E / -22; 24

Higher levels of precision are obtained by using seconds:

{{coord|33|56|24|N|118|24|00|W}} – which becomes 33°56′24″N 118°24′00″W / 33.94000°N 118.40000°W / 33.94000; -118.40000

Coordinates can be entered as decimal values

{{coord|33.94|S|118.40|W}} – which becomes 33°56′S 118°24′W / 33.94°S 118.40°W / -33.94; -118.40

Increasing or decreasing the number of decimal places controls the precision. Trailing zeros should be used as needed to ensure that both values have the same level of precision.

倫敦希斯路機場, 阿姆斯特丹, 揚馬延 and 貝克山 are examples of articles that contain geographical coordinates.

Generally, the larger the object being mapped, the less precise the coordinates should be. For example, if just giving the location of a city, precision greater than 100 meters is not needed unless specifying a particular point in the city, for example the central administrative building. Specific buildings or other objects of similar size would justify precisions down to 10 meters or even one meter in some cases (1′′ ~15 m to 30 m, 0.0001° ~5.6 m to 10 m).

The final field, following the E/W, is available for attributes such as type:, region:, or scale: crossref|(the codes are documented at Template:Coord/doc#Coordinate parameters).

When adding coordinates, please remove the {{coord missing}} tag from the article, if present.

Crossref|For more information, see the geographical coordinates WikiProject英語Wikipedia:WikiProject Geographical coordinates.

Templates other than {{coord}} should use the following variable names for coordinates: lat_d, lat_m, lat_s, lat_NS, long_d, long_m, long_s, long_EW.