Revision 403041 of "قالب:GNIS/doc" on arzwiki{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
These are templates that generate links to the [[United States Geological Survey]]'s [[Geographic Names Information System|'''G'''eographic '''N'''ames '''I'''nformation '''S'''ystem]].
===Template:GNIS===
The required parameter is just the ID number (optionally, the parameter can be named <code>id</code>) and the template then uses the article title as the [[anchor text]]:
<nowiki>{{</nowiki>GNIS|''ID''}}
To have the link text be other than the article name, use a second parameter (optionally, it can be named <code>name</code>):
<nowiki>{{</nowiki>GNIS|''ID''|''Name''}}
This can be used when the Wikipedia page name contains disambiguation brackets; for example, at the page: [[Mount Washington (New Hampshire)]], use {{nowrap| <nowiki>{{</nowiki><code>GNIS{{!}}871352{{!}}Mount Washington}}</code>}} to have "{{GNIS|871352| Mount Washington}}" rather than "{{GNIS|871352| Mount Washington (New Hampshire)}}". This is also necessary should you need to add a link to an article about somebody or something other than the linked feature.
====Antarctica====
For GNIS pages in Antarctica, use the <code>type=antarid</code> parameter and the corresponding Antarctic GNIS ID:
<nowiki>{{</nowiki>GNIS|''ID''|''Name''|type=antarid}}
===Template:GNIS 2===
This template works the same as {{tlx|GNIS}}, but simply produces a footnote-type link, without any [[anchor text]]. The required parameter is just the ID number (optionally, the parameter can be named <code>id</code>):
<nowiki>{{</nowiki>GNIS 2|''ID''}}
Sample:
<nowiki>{{</nowiki>GNIS 2|871352}}
Result:
{{GNIS 2|871352}}
====Antarctica====
For GNIS pages in Antarctica, use the <code>type=antarid</code> parameter and the corresponding Antarctic GNIS ID:
<nowiki>{{</nowiki>GNIS 2|''ID''|type=antarid}}
Sample:
<nowiki>{{</nowiki>GNIS 2|2828|type=antarid}}
Result:
{{GNIS 2|2828|type=antarid}}
===Template:GNIS 3===
The required parameter is just the ID number (optionally, the parameter can be named <code>id</code>):
<nowiki>{{</nowiki>GNIS 3|''ID''}}
It's meant to be used mainly within other templates (see sample 2).
For GNIS pages in Antarctica, use the <code>type=antarid</code> parameter and the corresponding Antarctic GNIS ID.
====Sample 1====
<nowiki>* {{</nowiki>GNIS 3|871352}}
Result:
* {{GNIS 3|871352}}
====Sample 2====
<pre>
* {{cite web
|url= {{GNIS 3|112837}}
|title= Wheeler Lake
|work= [[Geographic Names Information System]]
|publisher= [[United States Geological Survey]]
|accessdate= 2009-07-05
}}
</pre>
Result:
* {{cite web |url={{GNIS 3|112837}} |title=Wheeler Lake |work=[[Geographic Names Information System]] |publisher=[[United States Geological Survey]] |accessdate=2009-07-05}}
====Sample 3====
<nowiki>* {{</nowiki>GNIS 3|type=antarid|9763}}
Result:
* {{GNIS 3|type=antarid|9763}}
===Instructions===
# Go to http://geonames.usgs.gov/pls/gnispublic/
# Search for the name, location, and / or type of the feature desired, e.g., to find a mountain called 'Mt. Foo', put '<code>mount foo</code>' in the Feature Name and select 'Summit' for the Feature Class.
# Copy the 'ID' and insert it into:
#* <nowiki>{{</nowiki><code>GNIS|...}}</code> or <nowiki>{{</nowiki><code>GNIS 2|...}}</code>
# You can also copy the latitude and longitude and use them in the {{tlx|coord}} template, inserting the '{{para}}' vertical bar in-between, e.g.: 44_16_13_N 071_18_12_W → <code><nowiki>{{</nowiki>coord|44|16|13|N|071|18|12|W|region:US}}</code>
===Parameters===
<table class="wikitable">
<th>Parameter</th>
<th>Mandatory or Optional</th>
<th>Default</th>
<th>Description</th>
<tr>
<th>{1}</th>
<td>Required</td>
<td>Undefined</td>
<td>GNIS Feature ID</td>
</tr>
<tr>
<th>type=</th>
<td>Optional</td>
<td> </td>
<td> </td>
</tr>
</table>
===See also===
*[[Template:Cite gnis]]
*[[Template:Mountain index row]]
*[[Template:Cite cgndb]] (Canada)
**[[Template:BCGNIS]] (British Columbia)
*[[Special:Linksearch/geonames.usgs.gov]]
*[[Template:Gpn]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:U.S. Government external link templates|{{PAGENAME}}]]
[[bar:Vorlage:Gnis]]
[[de:Vorlage:Gnis]]
[[en:Template:GNIS]]
[[es:Plantilla:GNIS]]
[[fr:Modèle:Gnis]]
[[ja:Template:Gnis]]
[[lv:Veidne:Gnis]]
[[ro:Format:Gnis]]
[[simple:Template:Gnis]]
[[vi:Bản mẫu:Gnis]]
</includeonly>All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://arz.wikipedia.org/w/index.php?oldid=403041.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|