The center for all Wikitravel images!

Tech:Mailto formatting

From Wikitravel Shared
Jump to: navigation, search

Moved from en:Wikitravel:Feature requests by Evan


If you have a mailto like [mailto:foo@bar.com] the text of the link is presented in the web browser as mailto:foo@bar.com. Instead it should be formatted as foo@bar.com since Actual Users don't really care about URL encodings and it's unnecessary and ugly obfuscation.

It Would Be Nice if [foo@bar.com] were treated as equivalent to [mailto:foo@bar.com] since email addresses really can't be confused with URLs and it would be easier for the nontechnical contributor to type. -- Colin 16:40, 27 April 2006 (EDT)

These are both good ideas. Some other url formats use "@" (to put the username in, like for an FTP site), but their usefulness on wikis in general and Wikitravel in particular are, say, 4-5 orders of magnitude less than email addresses. I agree that this is preferable. --Evan 16:50, 27 April 2006 (EDT)
You should parse it as an email-address only if it first fails to parse as a URL. Email addresses which are valid URLs (http://@wikitravel.org) can just be prefixed with mailto ([1]) to clarify what the contributor means. -- Colin 17:58, 27 April 2006 (EDT)
Perhaps I misunderstand something, but this appears to have already been implemented. --Peter Talk 16:54, 25 March 2008 (EDT)

Variants

Actions

In other languages