Help Wikitravel grow by contributing to an article! Learn how.
New users, please see Help or go to the Pub to ask questions.

Template talk:Related

From Wikitravel
Jump to: navigation, search


A random ponderation[edit]

Swept in from the pub:

Does anyone ever have an urge to somehow link two completely unrelated guides together? An example could be connect Y with Minsk or with Zimbabwe. I think some people do, because I recently came across a guide in which someone linked two guides together for one of the most ridiculous reasons and I had a good laugh. I don't remember which guide that was, but I remember wondering how many people connect random places together for whatever reason, though the reason is incredibly superficial. -- Sapphire(Talk) • 18:04, 24 January 2008 (EST)

I do that sometimes. Mostly in trivia infoboxes, though I don't always wikilink the articles. It gives a traveller something to talk about, serves as an icebreaker when approaching a local. See World Cup 2010, Ladysmith, Krugersdorp.
If you want a real trivial reason for a link, see Nambour to Bathurst (Eastern Cape). Can't let the Australians get away with having a bigger pineapple than my home country, now can I? ;) --Nick 18:30, 24 January 2008 (EST)
My big accomplishment in this area was to find a -- legitimate -- way to connect Albuquerque and Uzbekistan. A little humor here is not a bad thing, as long as it's good for the traveler... -- Bill-on-the-Hill 18:42, 24 January 2008 (EST)
Yeah, I agree with both of you about the breaking the ice and humor. Too bad I don't remember what exactly it was, but it really made me laugh and I enjoyed the article a little more. -- 62.121.119.141 19:12, 24 January 2008 (EST)
A wonderful idea. Perhaps a little "Did you know" box or section. I tried linking St Helens (Tasmania), Mumbai, and Hollywood and will keep the last remaining corner of my brain working on looking for other oddities! --Wandering 13:01, 25 January 2008 (EST)

Enhancing this template[edit]

Are there any objections to URL encoding the argument to this template? Basically change <rdf><> dc:relation :{{{1}}} .</rdf> to <rdf><> dc:relation :{{urlencode:{{{1}}}}} .</rdf>? Currently {{related|Name of article}} won't work and you have to enter {{related|Name_of_article}}. The only downside to automatically URL encoding would be that any existing implementation of this template that escaped parentheses to %28 (or any other URL encoded escapes) would need to be updated, but I don't think there are many such implementations. -- Ryan • (talk) • 14:43, 22 February 2009 (EST)

I'd be happy to see it changed, although I wouldn't want to hunt through the 600+ inclusions to see which ones break ;) --Peter Talk 15:25, 22 February 2009 (EST)
Agreed, trying to audit all uses would be distinctly un-fun and isn't something that I would recommend we try to do - I think just as changing region names can break "isIn" usage that there would probably be some fallout with a small percentage of "related" tags being broken, but it would be trivial to fix those as they are found, and the benefit of simplifying the usage of this template would seem to outweigh any disadvantages IMHO. -- Ryan • (talk) • 16:04, 22 February 2009 (EST)
I'll volunteer to change all 600+ articles, if you make the change. -- Sapphire(Talk) • 16:09, 22 February 2009 (EST)
Let's let this sit for 24 hours to see if anyone has any objections before making a change. The vast majority of uses of this template wouldn't require any change since Mediawiki automatically converts undescores to spaces, but anything that escaped characters other than underscores - such as "(" to "%28" - would need to be fixed. -- Ryan • (talk) • 16:28, 22 February 2009 (EST)
Given the lack of objections I've made this change and verified that a few pages with related: tags are still working as expected. -- Ryan • (talk) • 22:04, 23 February 2009 (EST)

Bug[edit]

If there is a period in the article name (e.g., {{related|Washington D.C.}}), the inclusion of this template will cause all RDF on the page to break. --Peter Talk 05:02, 19 September 2009 (EDT)

Localization[edit]

We tried to import this template to the Russian version, via copy-paste, but it does not work. Any suggestions? --Peter Talk 19:03, 15 June 2012 (EDT)

Variants

Actions

Destination Docents

In other languages