# வார்ப்புரு: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:  
: <code>//www.worldwaterfalldatabase.com/waterfall/-/</code>  
where <code></code> is the name of the waterfall, as it appears in the database (with any spaces replaced by hyphens “<code>-</code>”, and possibly other text manipulations for characters that are not allowed in URLs), and <code></code> is a numerical code. For example, the information page for Niagara Falls has the following URL:  
: <code>//www.worldwaterfalldatabase.com/waterfall/-/</code>  

This template will substitute Wikipedia article name for <code></code>, 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 <code></code> can be provided using <code>name in url</code> parameter (see below).  

## Usage
The template has 3&nbsp;parameters:  
- <code>name</code> (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.
- <code>name in url</code> (optional), <code></code> as it appears *in the URL of the database page*. If not provided, the value of <code>name</code> parameter will be used, after replacing any spaces by hyphens. If <code>name</code> is also missing, then article title will be used, after stripping any disambiguating term(s) in parentheses and then replacing any spaces by hyphens.
- <code>id</code>, waterfall <code></code> as it appears *in the URL of the database page*.

## Examples
Dettifoss:  
- URL: <code>//www.worldwaterfalldatabase.com/waterfall/-/</code>
- Wiki-code (assuming it is used in the article Dettifoss): <code>wwdb name |id=}}</code>
- Wiki-code (in any article): <code>wwdb name |name=Dettifoss |id=}}</code> or <code>wwdb name |name in url=Dettifoss |id=}}</code>
- Result:

Selfoss (waterfall) (note the disambiguating term in parentheses is stripped from the URL)  
- URL: <code>//www.worldwaterfalldatabase.com/waterfall/-/</code>
- Wiki-code (assuming it is used in the article Selfoss (waterfall)): <code>wwdb name |id=}}</code>
- Result:

Niagara Falls (note the space in article name converted to a hyphen in the URL, when <code>name in url</code> parameter is not provided):  
- URL: <code>//www.worldwaterfalldatabase.com/waterfall/-/</code>
- Wiki-code (assuming it is used in the article Niagara Falls): <code>wwdb name |id=}}</code> or <code>wwdb name |name in url=NiagaraFalls |id=}}</code>
- Wiki-code (in any article): <code>wwdb name |name=NiagaraFalls |id=}}</code> or <code>wwdb name |name in url=NiagaraFalls |id=}}</code>
- Result:

Iguazu Falls (page is named *“Iguazú, Cataratas del”* in the World Waterfall Database, so <code></code> can't be guessed from Wikipedia article title and has to be provided in <code>name in url</code> parameter):  
- URL: <code>//www.worldwaterfalldatabase.com/waterfall/-/</code>
- Wiki-code (assuming it is used in the article Iguazu Falls): <code>wwdb name |name in url= |id=}}</code>
- Result:

<includeonly></includeonly>