Difference between revisions of "Template:CGNDB/doc"

From blackwiki
Jump to navigation Jump to search
imported>Mwtoews
m (reword)
imported>Plastikspork
(Expand a bit)
Line 2: Line 2:
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
__NOTOC__
 
__NOTOC__
 +
This template is a simplified frontend to {{tl|Cite cgn}}
 +
 
==Purpose==
 
==Purpose==
 
To provide a simple format to linking to information in the Geographical Names of Canada Data Base. This is specifically useful for linking information to either the "External links" or "References" sections of Wikipedia articles.
 
To provide a simple format to linking to information in the Geographical Names of Canada Data Base. This is specifically useful for linking information to either the "External links" or "References" sections of Wikipedia articles.
Line 7: Line 9:
 
==Usage==
 
==Usage==
 
  <nowiki>{{</nowiki>CGNDB|''id''|''name''<nowiki>}}</nowiki>
 
  <nowiki>{{</nowiki>CGNDB|''id''|''name''<nowiki>}}</nowiki>
 +
or
 +
<nowiki>{{</nowiki>CGNDB|id=''id''|name=''name''<nowiki>}}</nowiki>
 +
or
 +
<nowiki>{{</nowiki>Cite cgn|id=''id''|name=''name''<nowiki>}}</nowiki>
 
where:
 
where:
 
*<code>''id''</code> is the five-digit alphanumeric unique identifier for the geographic feature, and
 
*<code>''id''</code> is the five-digit alphanumeric unique identifier for the geographic feature, and
 
*<code>''name''</code> is the optional name to display (otherwise it will use the page name).
 
*<code>''name''</code> is the optional name to display (otherwise it will use the page name).
 
==Example==
 
#Search the geographic name in the [http://geonames.nrcan.gc.ca/search/search_e.php Canadian Geographical Names Data Base]
 
#If the search successful identifies your result, navigate to the "Details" for the item
 
#Scan the [[URL]] for the unique CGNDB ID. For example, searching for "[[Deadwood River]]" and selecting "Details" results in the following URL:<br /><code><nowiki>http://geonames2.nrcan.gc.ca/cgi-bin/v9/sima_unique_v9?english?</nowiki>{{hl|JBBPB}}?C</code>
 
#Use the code for <code>id</code> in the template: <pre><nowiki>{{CGNDB|JBBPB|Deadwood River}}</nowiki></pre>
 
#Here is the result:<br/>{{CGNDB|JBBPB|Deadwood River}}
 
 
If the article name ("[[Deadwood River]]" in this example) and the desired display name are identical, you can omit the second parameter. Conversely, if the article name is not identical to the article name (e.g., [[Battle River (Canada)]]), you should use this parameter for proper display.
 
 
===Where to use it===
 
You may use this template in the external links section; for example:
 
<nowiki>==External links==
 
*{{CGNDB|IARTK|Battle River}}</nowiki>
 
 
You may also use this template as a reference or [[Wikipedia:Footnotes|footnote]], for example:
 
<nowiki>This is a fact.<ref>{{CGNDB|JBBPB}}</ref></nowiki>
 
which will appear at the bottom of the article in the "References" section, using the <code><nowiki><references/></nowiki></code> tag.
 
 
===Coordinates===
 
The CGNDB entry is a quick source to establish [[Geographic coordinate system|geographic coordinates]] for a location's latitude and longitude. Users are encouraged to add coordinates to articles about locations using coordinate template.
 
 
The {{tl|coord}} template is particularly flexible, and can be used in many ways; for example:
 
*Using: <code><nowiki>{{coord|52|51|26|N|110|0|0|W}}</nowiki></code> will result in {{coord|52|51|26|N|110|0|0|W}}
 
*Include the <code>|display=...</code> parameter in the template (as the last argument) to modify how the coordinate is displayed:
 
 
==External links==
 
*[http://geonames.nrcan.gc.ca/info/cgndb_e.php The Canadian Geographical Names Data Base (CGNDB) 1997] – Detailed description of database
 
  
 
==See also==
 
==See also==
*[[Template:gnis]] (United States)
+
*{{tl|gnis}} (United States)
*[[Template:BCGNIS]] (British Columbia)
+
*{{tl|BCGNIS}} (British Columbia)
  
 
<includeonly>
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
+
[[Category:External link templates]]
 +
[[Category:Specific-source templates]]
 
</includeonly>
 
</includeonly>

Revision as of 06:39, 13 May 2010

This template is a simplified frontend to {{Cite cgn}}

Purpose

To provide a simple format to linking to information in the Geographical Names of Canada Data Base. This is specifically useful for linking information to either the "External links" or "References" sections of Wikipedia articles.

Usage

{{CGNDB|id|name}}

or

{{CGNDB|id=id|name=name}}

or

{{Cite cgn|id=id|name=name}}

where:

  • id is the five-digit alphanumeric unique identifier for the geographic feature, and
  • name is the optional name to display (otherwise it will use the page name).

See also

  • {{gnis}} (United States)
  • {{BCGNIS}} (British Columbia)