Šablonas:Gnis/doc

Šablonas iš Vikipedijos, laisvosios enciklopedijos.

Panaudojimas[redaguoti vikitekstą]

These are templates to generate links to the United States Geological Survey's Geographic Names Information System.


Template:Gnis[redaguoti vikitekstą]

The required parameter is just the ID number (optionally, the parameter can be named id) and the template then uses the article title as the anchor text:

* {{gnis|ID}}

To have the link text be other than the article name, use second parameter (optionally, it can be named name):

* {{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 {{gnis|871352|Mount Washington}} to have "USGS GNIS: Mount Washington" rather than "USGS GNIS: 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[redaguoti vikitekstą]

For GNIS pages in Antarctica, use the type=antarid parameter and the corresponding Antarctic GNIS ID.

* {{gnis|ID|Name|type=antarid}}

Template:Gnis2[redaguoti vikitekstą]

This template works the same as {{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 id):

{{gnis2|ID}}


{{gnis2|871352}}

Result:

[1]

Antarctica[redaguoti vikitekstą]

For GNIS pages in Antarctica, use the type=antarid parameter and the corresponding Antarctic GNIS ID.

{{gnis2|ID|type=antarid}}

Sample:

{{gnis2|9763|type=antarid}}

Result:

[2]


Template:Gnis3[redaguoti vikitekstą]

The required parameter is just the ID number (optionally, the parameter can be named id): * {{gnis3|ID}}

It's meant to be used mainly within other templates (see sample 2).

For GNIS pages in Antarctica, use the type=antarid parameter and the corresponding Antarctic GNIS ID.

Sample 1[redaguoti vikitekstą]

Sample:

* {{gnis3|871352}}

Result:


Sample 2[redaguoti vikitekstą]

Sample:

*{{cite web | url={{Gnis3|112837}} | title=Wheeler Lake | work=[[Geographic Names Information System]] | publisher=[[United States Geological Survey]] | accessdate=2006-05-02 }}

Result:

  • „Wheeler Lake“. Geographic Names Information System. United States Geological Survey. Nuoroda tikrinta 2006-05-02.

Sample 3[redaguoti vikitekstą]

Sample: * {{gnis3|type=antarid|9763}}

Result:

Detailed instructions[redaguoti vikitekstą]

  1. Go to http://geonames.usgs.gov/pls/gnispublic/
  2. Search for the name, location, and/or type of the feature desired. E.g., to find a mountain called 'Mt. Foo', put "mount foo" in the Feature Name, and select "Summit" for the Feature Class.
  3. Copy the "ID", and insert it into:
    • {{gnis|...}}
    • or {{gnis2|...}}
  4. While you're at it, you can copy the latitude and longitude and use them in {{coord|...}}, inserting "|"s: e.g. "441613N 0711812W" → {{coord|44|16|13|N|071|18|12|W|region:US}}

Parameters[redaguoti vikitekstą]

Parameter Mandatory or Optional Default Description
{1} Required Undefined GNIS Feature ID
type= Optional    

See also[redaguoti vikitekstą]