வார்ப்புரு:Wwdb name/doc
{{Documentation subpage}}
 {{cs1 wrapper|base=Cite web}}
 {{Underused external link template|1=http://www.worldwaterfalldatabase.com/waterfall/}}
 
 &lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&gt;
 This template can be used to insert a link to a waterfall's page at the [http://www.worldwaterfalldatabase.com World Waterfall Database].
 
 The [[Uniform Resource Locator|URL]] of a waterfall information page at the database looks like this:
 : &lt;code&gt;&lt;nowiki&gt;http:&lt;/nowiki&gt;//www.worldwaterfalldatabase.com/waterfall/{{color|red|&lt;u&gt;Waterfall-Name&lt;/u&gt;}}-{{color|blue|&lt;u&gt;ID&lt;/u&gt;}}/&lt;/code&gt;
 where &lt;code&gt;{{color|red|&lt;u&gt;Waterfall-Name&lt;/u&gt;}}&lt;/code&gt; is the name of the waterfall, as it appears in the database (with any spaces replaced by hyphens “&lt;code&gt;-&lt;/code&gt;”, and possibly other text manipulations for characters that are not allowed in URLs), and &lt;code&gt;{{color|blue|&lt;u&gt;ID&lt;/u&gt;}}&lt;/code&gt; is a numerical code. For example, the information page for [[Niagara Falls]] has the following URL:
 : &lt;code&gt;&lt;nowiki&gt;http:&lt;/nowiki&gt;//www.worldwaterfalldatabase.com/waterfall/{{color|red|&lt;u&gt;Niagara-Falls&lt;/u&gt;}}-{{color|blue|&lt;u&gt;106&lt;/u&gt;}}/&lt;/code&gt;
 
 This template will substitute Wikipedia article name for &lt;code&gt;{{color|red|&lt;u&gt;Waterfall-Name&lt;/u&gt;}}&lt;/code&gt;, after stripping any [[WP:Disambiguation|disambiguating]] term(s) in parentheses and then replacing any spaces by hyphens. If this would generate an incorrect URL, then a correct &lt;code&gt;{{color|red|&lt;u&gt;Waterfall-Name&lt;/u&gt;}}&lt;/code&gt; can be provided using &lt;code&gt;name in url&lt;/code&gt; parameter (see below).
 
 == Usage ==
 The template has 3&amp;nbsp;parameters:
 * &lt;code&gt;name&lt;/code&gt; (optional), name of the waterfall as in should appear ''in Wikipedia article''. If not provided, article title will be used, after stripping any [[WP:Disambiguation|disambiguating]] term(s) in parentheses.
 * &lt;code&gt;name in url&lt;/code&gt; (optional), &lt;code&gt;{{color|red|&lt;u&gt;Waterfall-Name&lt;/u&gt;}}&lt;/code&gt; as it appears ''in the URL of the database page''. If not provided, the value of &lt;code&gt;name&lt;/code&gt; parameter will be used, after replacing any spaces by hyphens. If &lt;code&gt;name&lt;/code&gt; is also missing, then article title will be used, after stripping any [[WP:Disambiguation|disambiguating]] term(s) in parentheses and then replacing any spaces by hyphens.
 * &lt;code&gt;id&lt;/code&gt;, waterfall &lt;code&gt;{{color|blue|&lt;u&gt;ID&lt;/u&gt;}}&lt;/code&gt; as it appears ''in the URL of the database page''.
 
 == Examples ==
 [[Dettifoss]]:
 * URL: &lt;code&gt;&lt;nowiki&gt;http:&lt;/nowiki&gt;//www.worldwaterfalldatabase.com/waterfall/{{color|red|&lt;u&gt;Dettifoss&lt;/u&gt;}}-{{color|blue|&lt;u&gt;119&lt;/u&gt;}}/&lt;/code&gt;
 * Wiki-code (assuming it is used in the article [[Dettifoss]]): &lt;code&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt;wwdb name |id={{color|blue|&lt;u&gt;119&lt;/u&gt;}}}}&lt;/code&gt;
 * Wiki-code (in any article): &lt;code&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt;wwdb name |name=Dettifoss |id={{color|blue|&lt;u&gt;119&lt;/u&gt;}}}}&lt;/code&gt; or &lt;code&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt;wwdb name |name in url=Dettifoss |id={{color|blue|&lt;u&gt;119&lt;/u&gt;}}}}&lt;/code&gt;
 * Result: {{wwdb name |name=Dettifoss |id=119}}
 
 [[Selfoss (waterfall)]] (note the disambiguating term in parentheses is stripped from the URL)
 * URL: &lt;code&gt;&lt;nowiki&gt;http:&lt;/nowiki&gt;//www.worldwaterfalldatabase.com/waterfall/{{color|red|&lt;u&gt;Selfoss&lt;/u&gt;}}-{{color|blue|&lt;u&gt;659&lt;/u&gt;}}/&lt;/code&gt;
 * Wiki-code (assuming it is used in the article [[Selfoss (waterfall)]]): &lt;code&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt;wwdb name |id={{color|blue|&lt;u&gt;659&lt;/u&gt;}}}}&lt;/code&gt;
 * Result: {{wwdb name |name=Selfoss |id=659}}
 
 [[Niagara Falls]] (note the space in article name converted to a hyphen in the URL, when &lt;code&gt;name in url&lt;/code&gt; parameter is not provided):
 * URL: &lt;code&gt;&lt;nowiki&gt;http:&lt;/nowiki&gt;//www.worldwaterfalldatabase.com/waterfall/{{color|red|&lt;u&gt;Niagara-Falls&lt;/u&gt;}}-{{color|blue|&lt;u&gt;106&lt;/u&gt;}}/&lt;/code&gt;
 * Wiki-code (assuming it is used in the article [[Niagara Falls]]): &lt;code&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt;wwdb name |id={{color|blue|&lt;u&gt;106&lt;/u&gt;}}}}&lt;/code&gt; or  &lt;code&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt;wwdb name |name in url=Niagara{{highlight|-}}Falls |id={{color|blue|&lt;u&gt;106&lt;/u&gt;}}}}&lt;/code&gt;
 * Wiki-code (in any article): &lt;code&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt;wwdb name |name=Niagara{{highlight|&amp;nbsp;}}Falls |id={{color|blue|&lt;u&gt;106&lt;/u&gt;}}}}&lt;/code&gt; or  &lt;code&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt;wwdb name |name in url=Niagara{{highlight|-}}Falls |id={{color|blue|&lt;u&gt;106&lt;/u&gt;}}}}&lt;/code&gt;
 * Result: {{wwdb name |name=Niagara Falls |id=106}}
 
 [[Iguazu Falls]] (page is named ''“Iguazú, Cataratas del”'' in the World Waterfall Database, so &lt;code&gt;{{color|red|&lt;u&gt;Waterfall-Name&lt;/u&gt;}}&lt;/code&gt; can't be guessed from Wikipedia article title and has to be provided in &lt;code&gt;name in url&lt;/code&gt; parameter):
 * URL: &lt;code&gt;&lt;nowiki&gt;http:&lt;/nowiki&gt;//www.worldwaterfalldatabase.com/waterfall/{{color|red|&lt;u&gt;Iguazu-Cataratas-del&lt;/u&gt;}}-{{color|blue|&lt;u&gt;109&lt;/u&gt;}}/&lt;/code&gt;
 * Wiki-code (assuming it is used in the article [[Iguazu Falls]]): &lt;code&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt;wwdb name |name in url={{color|red|&lt;u&gt;Iguazu-Cataratas-del&lt;/u&gt;}} |id={{color|blue|&lt;u&gt;109&lt;/u&gt;}}}}&lt;/code&gt;
 * Result: {{wwdb name |name=Iguazu Falls |name in url=Iguazu-Cataratas-del |id=109}}
 
 
 &lt;includeonly&gt;{{Sandbox other||
 &lt;!-- Categories below this line, please; interwikis at Wikidata --&gt;
 [[Category:External link templates|Wwdb name]]