Difference between revisions of "Template:CGNDB/doc"

From blackwiki
Jump to navigation Jump to search
imported>Droll
m (fix confusion)
imported>Vanisaac
m (→‎Examples: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(6 intermediate revisions by 3 users not shown)
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__
{{tmbox
+
{{ombox
 
| type = content
 
| type = content
| text = {{center|This template is a simplified frontend for '''{{tl|Cite cgndb}}''' and  is '''not''' currently used in the article namespace. It is retained for reverse compatibility.}}
+
| text = This template is deprecated. Editor should consider using '''{{tl|cite cgndb}}'''.
 
}}
 
}}
  
==Purpose==
+
This template is a simplified frontend for [[Template:Cite cgndb]]. It does not require that the location ''name'' be defined. If the article ''name'' differs from the location ''name'' the template will '''not''' generate the desired output.
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==
+
== Usage ==
<nowiki>{{</nowiki>CGNDB|''id''|''name''<nowiki>}}</nowiki>
 
or
 
<nowiki>{{</nowiki>Cite cgndb|''id''|''name''<nowiki>}}</nowiki>
 
or
 
<nowiki>{{</nowiki>CGNDB|id=''id''|name=''name''<nowiki>}}</nowiki>
 
or
 
<nowiki>{{</nowiki>Cite cgndb|id=''id''|name=''name''<nowiki>}}</nowiki>
 
where:
 
*<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).
 
  
==See also==
+
See [[Template:Cite cgndb]]
* {{tl|BCGNIS}} (British Columbia)
 
* {{tl|cite gnis}} (United States)
 
* {{tl|cite bcgnis}}
 
* {{tl|cite cgndb}}
 
  
<includeonly>
+
== Examples ==
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
 
[[Category:External link templates]]
+
<code><nowiki>{{CGNDB|id=KADTU|name=Mount Logan}}</nowiki></code> → {{CGNDB|id=KADTU|name=Mount Logan}}
 +
 
 +
<code><nowiki>{{CGNDB|KADTU|Mount Logan}}</nowiki></code> → {{CGNDB|KADTU|Mount Logan}}
 +
 
 +
<code><nowiki>{{CGNDB|KADTU}}</nowiki></code> → {{CGNDB|KADTU}}
 +
 
 +
<includeonly>{{Sandbox other||
 +
<!-- CATEGORIES GO HERE -->
 
[[Category:Specific-source templates]]
 
[[Category:Specific-source templates]]
</includeonly>
+
 
 +
<!-- INTERWIKIS GO HERE -->
 +
 
 +
}}</includeonly>

Latest revision as of 01:46, 24 April 2020

This template is a simplified frontend for Template:Cite cgndb. It does not require that the location name be defined. If the article name differs from the location name the template will not generate the desired output.

Usage

See Template:Cite cgndb

Examples

{{CGNDB|id=KADTU|name=Mount Logan}}"Mount Logan". Geographical Names Data Base. Natural Resources Canada.

{{CGNDB|KADTU|Mount Logan}}"Mount Logan". Geographical Names Data Base. Natural Resources Canada.

{{CGNDB|KADTU}}"CGNDB/doc". Geographical Names Data Base. Natural Resources Canada.