跳转到内容

模組:Canada NTS/doc

维基百科,自由的百科全书

这是Module:Canada NTS/doc当前版本,由Jazz38905留言 | 贡献编辑于2023年7月19日 (三) 03:27 建立内容为“== Usage == This module implements the grid reference scheme for Canada's National Topographic System. It contains functions that will determine the NTS map sheet ID for a given set of coordinates, as well as the name of the map sheet. The database of map sheet names can be found in Module:Canada NTS/data, and is sourced directly from Natural Resources Canada's [https://atlas.gc.ca/toporama/en/index.html Toporama] page. Funct…”的新页面)。这个网址是本页该版本的固定链接。

(差异) ←上一修订 | 最后版本 (差异) | 下一修订→ (差异)

这是Module:Canada NTS的文档页面

Usage

[编辑]

This module implements the grid reference scheme for Canada's National Topographic System. It contains functions that will determine the NTS map sheet ID for a given set of coordinates, as well as the name of the map sheet. The database of map sheet names can be found in Module:Canada NTS/data, and is sourced directly from Natural Resources Canada's Toporama page.

Functions:

  • grid: Calculates and displays the NTS map sheet ID.
  • name: Displays the name of the NTS map sheet.

These two functions can be called from the same invoke.

Optional parameters:

  • lat=lat, where lat is a north latitude in decimal degrees.
  • lon=lon, where lon is a west longitude in decimal degrees.
  • link: Wraps the NTS map sheet ID in a link to a visualizer on Natural Resources Canada's website.
  • area: Omits the 1:50,000 scale map sheet number, giving a 1:250,000 scale map area ID.

If lat and lon are omitted, the module will fetch its coordinates from the Wikidata item corresponding to the article in which its invoke has been transcluded.

Implements {{Canada NTS Map Sheet}}