टेम्पलेट:Wwdb name
"Wwdb name". World Waterfall Database.
This template is a Citation Style 1 wrapper template based on {{Cite web}}. For centralised Citation Style 1 discussions, see Help talk:Citation Style 1. |
This external link template is underused, compared to the number of links to the site it represents (check here). Please help convert those links to make use of this template, for ease of tracking, and ease of interoperability with Wikidata. |
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:
http://www.worldwaterfalldatabase.com/waterfall/Waterfall-Name-ID/
where Waterfall-Name
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 ID
is a numerical code. For example, the information page for Niagara Falls has the following URL:
http://www.worldwaterfalldatabase.com/waterfall/Niagara-Falls-106/
This template will substitute Wikipedia article name for Waterfall-Name
, 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 Waterfall-Name
can be provided using name in url
parameter (see below).
Usage
संपादन करींThe template has 3 parameters:
name
(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.name in url
(optional),Waterfall-Name
as it appears in the URL of the database page. If not provided, the value ofname
parameter will be used, after replacing any spaces by hyphens. Ifname
is also missing, then article title will be used, after stripping any disambiguating term(s) in parentheses and then replacing any spaces by hyphens.id
, waterfallID
as it appears in the URL of the database page.
Examples
संपादन करीं- URL:
http://www.worldwaterfalldatabase.com/waterfall/Dettifoss-119/
- Wiki-code (assuming it is used in the article Dettifoss):
{{wwdb name |id=119}}
- Wiki-code (in any article):
{{wwdb name |name=Dettifoss |id=119}}
or{{wwdb name |name in url=Dettifoss |id=119}}
- Result: "Dettifoss". World Waterfall Database.
Selfoss (waterfall) (note the disambiguating term in parentheses is stripped from the URL)
- URL:
http://www.worldwaterfalldatabase.com/waterfall/Selfoss-659/
- Wiki-code (assuming it is used in the article Selfoss (waterfall)):
{{wwdb name |id=659}}
- Result: "Selfoss". World Waterfall Database.
Niagara Falls (note the space in article name converted to a hyphen in the URL, when name in url
parameter is not provided):
- URL:
http://www.worldwaterfalldatabase.com/waterfall/Niagara-Falls-106/
- Wiki-code (assuming it is used in the article Niagara Falls):
{{wwdb name |id=106}}
or{{wwdb name |name in url=Niagara-Falls |id=106}}
- Wiki-code (in any article):
{{wwdb name |name=Niagara Falls |id=106}}
or{{wwdb name |name in url=Niagara-Falls |id=106}}
- Result: "Niagara Falls". World Waterfall Database.
Iguazu Falls (page is named “Iguazú, Cataratas del” in the World Waterfall Database, so Waterfall-Name
can't be guessed from Wikipedia article title and has to be provided in name in url
parameter):
- URL:
http://www.worldwaterfalldatabase.com/waterfall/Iguazu-Cataratas-del-109/
- Wiki-code (assuming it is used in the article Iguazu Falls):
{{wwdb name |name in url=Iguazu-Cataratas-del |id=109}}
- Result: "Iguazu Falls". World Waterfall Database.
परिचय खातिर ऊपर दिहल गइल बिबरनलेख के टेम्पलेट:Wwdb name/doc से ट्रांसक्लूड क के इहाँ देखावल जा रहल बाटे। (संपादन करीं | इतिहास देखीं) संपादक लोग एह टेम्पलेट के अभ्यासपन्ना (सैंडबाक्स) (बनाईं | मिरर करीं) आ टेस्टकेस (बनाईं) पन्ना सभ पर अभ्यास आ प्रयोग (टेस्टिंग) क सकत बाटे। अनुरोध बा कि अगर श्रेणी जोड़े के होखे तब /doc उपपन्ना (सबपेज) पर जोड़ल जाय। एह टेम्पलेट के उपपन्ना (सबपेज) देखीं। |