Template:Wwdb name/doc

This template can be used to insert a link to a waterfall's page at the World Waterfall Database.

The URL of a waterfall information page at the database looks like this:

where  is the name of the waterfall, as it appears in the database (with any spaces replaced by hyphens “ ”, and possibly other text manipulations for characters that are not allowed in URLs), and   is a numerical code. For example, the information page for Niagara Falls has the following URL:

This template will substitute Wikipedia article name for, after stripping any disambiguating term(s) in parentheses and then replacing any spaces by hyphens. If this would generate an incorrect URL, then a correct  can be provided using   parameter (see below).

Usage
The template has 3 parameters:
 * (optional), name of the waterfall as in should appear in Wikipedia article. If not provided, article title will be used, after stripping any disambiguating term(s) in parentheses.
 * (optional),  as it appears in the URL of the database page. If not provided, the value of   parameter will be used, after replacing any spaces by hyphens. If   is also missing, then article title will be used, after stripping any disambiguating term(s) in parentheses and then replacing any spaces by hyphens.
 * , waterfall  as it appears in the URL of the database page.

Examples
Dettifoss:
 * URL:
 * Wiki-code (assuming it is used in the article Dettifoss):
 * Wiki-code (in any article):  or
 * Result:

Selfoss (waterfall) (note the disambiguating term in parentheses is stripped from the URL)
 * URL:
 * Wiki-code (assuming it is used in the article Selfoss (waterfall)):
 * Result:

Niagara Falls (note the space in article name converted to a hyphen in the URL, when  parameter is not provided):
 * URL:
 * Wiki-code (assuming it is used in the article Niagara Falls):  or
 * Wiki-code (in any article):  or
 * Result:

Iguazu Falls (page is named “Iguazú, Cataratas del” in the World Waterfall Database, so  can't be guessed from Wikipedia article title and has to be provided in   parameter):
 * URL:
 * Wiki-code (assuming it is used in the article Iguazu Falls):
 * Result: