Beautiful banners are coming to every article and you can help!
Check out our guidelines and learn how to create your own!

Template talk:IsIn

From Wikitravel
Revision as of 23:53, 30 April 2007 by Koavf (Talk | contribs)

Jump to: navigation, search


This template really needs to be documented. I'm puzzled, for example, about whether Berkeley (California) is in both Alameda County and East Bay (Bay Area) or if there Can Be Only One thing it is in. If the latter, then how do we propose selecting the enclosing region when there is ambiguity. -- Colin 01:34, 18 Nov 2005 (EST)

Good point! I think the main thing I want to do with this data is create bread-crumb style navigation. That is, on the Raleigh page, across the top you'd have links like "North America > United States of America > South > North Carolina > Research Triangle > Raleigh". If this is done, then the most helpful and least redundant information is specifying the immediately-next-largest containing area (here, Research Triangle); the rest can be deduced at runtime.
That said, there's probably some value in having destinations that overlap or split between multiple parents; Lake Tahoe and the Alps are two that come to mind. I'd think it'd be OK to define two parent destinations, and have two breadcrumb paths, like this:
North America > United States of America > California > Lake Tahoe
North America > United States of America > Nevada > Lake Tahoe
I think multiple paths should be the exception, not the rule; and more than, say, 2-3 should be cause for concern. Also, any branches higher than the next highest should be ignored lest we fall into an exponentiation problem. To continue the example, Truckee is in the Lake Tahoe region but it's not in Nevada. So in forming Truckee's bread-crumb path, the code would either choose the first path available (which might be wrong), or we could have some advisory information that Truckee was in fact in California and not Nevada.
I'm not sure what to say about other controversies. We have had some sticky hierarchy problems in the past; sections of Europe come to mind immediately. I think a spirit of compromise is probably the best bet here.
And, yes: there is need for more documentation. I figured I'd add it when the bread-crumb nav code is done and I could put it on the instructions page for that feature. --Evan 02:47, 18 Nov 2005 (EST)

So we agree that we are making a directed acyclic graph? How about other articles? Eg. phrasebooks, do we use isin or a special spokenin template? I want to use this for the offline-projects. How do I get a sub-graph out? E.g. if I want all destinations in Italy. I could make a script that searches for { {isin} }, build the tree, select the Italy destinatations, and fetches them with wix. But that is not very elegant or efficient. --elgaard 12:07, 21 Nov 2005 (EST)

Hi, elgaard. I have started a RDF Expedition about topics like that. There is not yet an answer for your questions, but I'd appreciate any comments in the expedition pages. Maybe, you'd like to join. -- Hansm 12:19, 21 Nov 2005 (EST)

Is there a why we need to specify underscores instead of spaces? - for example { {IsIn|Hong Kong} } doesn't work, I need { {IsIn Hong_Kong} } making this different to the standard wikilinks - bit of a pain, but I don't know enough about how this is implemented to understand why it behaves so. Apart from that I really like the functionality. Hkpatv 02:28, 10 Dec 2005 (EST)

A limitation apparently. See this. --Ravikiran 09:48, 10 Dec 2005 (EST)

Hi. Wonder if I can get some help. My first attempt at using isIn has not been very successful, as you can see on the Port Klang page. Why does it not display Asia : South East Asia : Malaysia etc but only Selangor, the next biggest area? If you can fix it, could you explain how it was corrected so that I would know what to do in the future. Thanks.Slleong 23:39, 9 Feb 2006 (EST)

I think the RDF caching is broken again. Oh Eeeeeeee-van... Jpatokal 23:41, 9 Feb 2006 (EST)
Actually it looks like something's broken even more badly: I did an action=purge on Port Klang and the breadcrumb trail disappeared entirely. Jpatokal 23:46, 9 Feb 2006 (EST)
It looks like the isIn for Selangor was angry. Updating that and then purging Port Klang seems to have solved the problem. -- Ryan 00:01, 10 Feb 2006 (EST)
Hoorah! It worked ... well, at least partially. It now has Malaysia>Peninsular Malaysia>Central>Selangor>Port Klang. Asia>Southeast Asia is still missing. isIn for Malaysia page angry too? Tried to figure out but can't. SOS again. Thanks for helping me out.Slleong 09:36, 10 Feb 2006 (EST)

I spoke to it nicely, and it isn't angry any more, and Port Klang,s Asian lineage is now complete. WindHorse 10 Feb 06

Thanks a million. Can you explain what was wrong? So that I don't need to bother anyone next time when I face such problems. Must say I was tremendously surprised at the speed my pleas were answered! Thanks again.Slleong 00:57, 11 Feb 2006 (EST)
I just clicked 'edit' then 'save, and hey presto, there is was - the complete lineage. I don't know why, but that method often activates a lazy trail. WindHorse 11 Feb 06

Bellows Falls/Rockingham

At the moment the breadcrumb navigation on Bellows Falls/Rockingham isn't working. -- Ryan 16:26, 15 Dec 2005 (EST)

This old report no longer applies. It wasn't working because there was no Rockingham article I think. At any rate, it should have been Rockingham/Bellows Falls as Bellows Falls is in Rockingham. Rockingham is now disambiguated and the article is Rockingham (Vermont)/Bellows Falls. OldPine 19:58, 1 October 2006 (EDT)

Templates do not work if a site name starts with a non-ASCII character

It is impossible to create a breadcrumbs navigation if a site name starts with a percent sign, for instance in case of German umlauts or other non-ASCII characters.

For instance:

  • The isIn (in German IstIn) template is not working at the site of Ägypten (German for Egypt) or Österreich (German for Austria); the template should be {{IstIn|Nordafrika}} (German for North Africa). But the same tamplate works in case of another North African countries. There would be no problems if the % character is within the site name.
  • The isIn (in German IstIn) template is also not working at any site within "Ägypten", also in cases, where the site names do not contain umlauts.

Unger 11:06, 18 Dec 2005 (EST)

Any Progress Solving Problems?

The stub IsIn is not working in some cases (for instance ja:). Is there any progress to solve this problem? Unger 09:19, 5 Feb 2006 (EST)

Polish wikitravel waiting for solve this problem too. Adam Dziura 03:00, 5 April 2006 (EDT)
See also "Breadcrumb oddities" in Wikitravel:Bug reports Pashley 04:29, 18 May 2006 (EDT)

Downloading/sharing the template

This template is great, and has very simple applications that using categories just cant cover.

Is there any way we can get our hands on the code for this template to use in other mediawiki installations?

Or can you even just give us a run down on how to create a similar breadcrumbs navigation tree ourselves? Thanks.


Sure would be nice if someone wrote a little description. In fact it seems as if isin should be on the default templates.

Also noticed that multi-word names must be separated by underscore: {{IsIn|Imperial_Valley}}--justfred 13:48, 6 October 2006 (EDT)

Yes. I've added some documentation to the template; let me know if that helps. --Evan 14:03, 6 October 2006 (EDT)
Cool. Any reason not to just redirect template:isin to breadcrumb, or vice-versa?--justfred 14:12, 6 October 2006 (EDT)

IsIn for other language editions

How do I get this working for the Spanish language version? Copying the code in the template is not enough, apparently. Texugo 02:57, 18 August 2006 (EDT)

Problem with a North Africa/Saharan Africa country

Western Sahara In the regions of Africa article, Western Sahara is clearly marked by the map as being "North African." I changed the North Africa and Saharan Africa articles to match this. Unfortunately, the {{IsIn|Western_Sahara}} creates breadcrumbs back to Saharan Africa. I don't know how this can be fixed; can someone assist me? -Justin (koavf)·T·C·M 18:59, 30 April 2007 (EDT)

Huh!? Let me try to put this in different words. You edited the North Africa and Saharan Africa guides to show that Western Sahara is in North Africa, right?
I can't figure out where you came up with {{IsIn|Western_Sahara}}. That template would not be used in any of the articles you mentioned, however, there was a {{IsIn|Saharan_Africa}} template in the Western Sahara, but to show the breadcrumb to North Africa from Western Sahara you would have needed to change the IsIn from {{IsIn|Saharan_Africa}} to {{IsPartOf|North_Africa}}. -- Sapphire(Talk) • 19:27, 30 April 2007 (EDT)
Ah Thanks. You are right, {{IsIn|Western_Sahara}} is not in any of the articles that I mentioned, but it is in several other articles that I have edited. -Justin (koavf)·T·C·M 19:49, 30 April 2007 (EDT)



Destination Docents

In other languages