The center for all Wikitravel images!

Tech:Interwiki links to shared

From Wikitravel Shared
Jump to: navigation, search

It would be nice to have sidebar links to categories, userpages, policy pages, etc. on Wikitravel Shared from their corresponding pages on the language versions. This could function (ideally in my mind) just like the language interwiki links under "in other languages", or it could function like the Wikipedia links under "other sites".

To illustrate, I would like to link from en:Chicago to category:Chicago, by merely typing shared:category:Chicago at the bottom of the English version Chicago article. Then I would like the link to appear on the left sidebar in the "in other languages" box as "shared:Chicago". If that's too awkward, I would like the link to appear in the "other sites" box, or even a new box just for Shared, as "Shared resources" or something like that.

I presume that this would be reasonably quick and easy to implement (would take at most an hour or two?), and there are glaringly obvious reasons to do it. I'm posting this request in response to a request on the Russian version, and I would appreciate it if someone with the access required to implement this change would respond with a guess as to when this might be implemented, so I might respond to the request on the Russian version. If no one plans to do this, I would appreciate it if someone would come out and say so, so that we might develop a second-rate alternative in the form of templated links akin to the commons links on Wikipedia. --Peter Talk 13:23, 7 March 2008 (EST)

There are some implications to this approach that could be problematic. All links of the form shared:pagename would be moved (and because of the othersite handling, they would all have the same title). Links of the form shared:pagename would not be affected and it looks like this is the common usage for in page interwiki links (probably because language links are already affected like this). Any other thoughts on this? JuCo 13:47, 19 March 2008 (EDT)
As I understand it, we currently do not use links in the form [[shared:pagename]] because, well, that's not the correct syntax. I'm pretty sure that the only instances of links using that syntax would be on language version policy pages, but that should be easy to skim through and fix. I'll take a look and see if I can't quickly eliminate them all and resolve this concern. --Peter Talk 14:47, 19 March 2008 (EDT)
Hmm, on second thought, it looks like that incorrect link syntax is pretty common not just on policy pages, but on talk pages throughout the :en version as well. I suppose we really should first create a bot to convert all instances [[shared:pagename]] → [[:shared:pagename]]. Unfortunately, scripts are not my area of expertise. --Peter Talk 15:00, 19 March 2008 (EDT)
Building a bot means significantly more work to get on this feature...we'd like to hear from the community how important they feel this feature request is to help us prioritize. Thanks! JuCo 17:21, 19 March 2008 (EDT)
True, but it still strikes me as a basic feature that we should have. FYI, Sergey was the one to propose this, although I've also long thought the lack of such a feature was a big oversight. --Peter Talk 19:21, 19 March 2008 (EDT)
What if we did something altogether different like [[wts:pagename]] which in the left nav bar could still be made to show up as shared:pagename  ? – cacahuate talk 22:28, 19 March 2008 (EDT)
I was ask Peter for this feature. IHMO, at first we may made a template at language WT for referencing to shared. E.g. we may realize it in the manner of en:Template:Related (it's possible?). When the bot was created and change link's syntax from [[shared:pagename]] to [[:shared:pagename]], and when this feature was implemented, then we change the template's realization to [[:shared:pagename]] syntax. And that is all! -- Sergey kudryavtsev 07:34, 20 March 2008 (EDT)

The [[wts:ARTICLENAME]] sounds like a good workaround that would not have a prerequisite complex script. Is this feasible? Any obstacles to just enabling this now? --Peter Talk 17:27, 25 March 2008 (EDT)

It looks like the [[shared:pagename]] interwiki linking functionality has been added so that it appears in the other sites box? Can we have an update please on what is happening with this? --Peter Talk 18:32, 20 April 2008 (EDT)
I inadvertently added the "shared" logic I mentioned above to the live site as part of merging the changes for 1.11.2 with the existing WT code (we've got a few alterations to the main MW branch). It wasn't intended to go live. I've removed it for the reasons we discussed. I still need to figure out how to make wts a valid interwiki link and I've got a couple of other things I need to get done before tackling that. KevinSours 14:13, 21 April 2008 (EDT)
Already i make a few links in syntax [[shared:pagename]] (at ru and en Wikitravel). Should i remove it? (After you rollback this functionality, it's not affected on a page at all.) Which prefix will be used in future: "shared" or "wts"? -- Sergey kudryavtsev 03:36, 22 April 2008 (EDT)
The rollback isn't seeming to affect functionality because you are viewing the cached page. If you purge the page cache and refresh, you will see the broken interwiki link. --Peter Talk 11:46, 22 April 2008 (EDT)
You are right again. ;-) -- Sergey kudryavtsev 16:06, 22 April 2008 (EDT)
Any progress on this? I second Sergey's suggestion to use shared: rather than wts:. Riggwelter 06:49, 15 July 2008 (EDT)

Okay, I've got things figured out, I think. I've got the "wts" version working on review so you guys can look if you like. I'm prepared to roll that out, but I want to make sure that this is the approach we want to take. We can go with "shared", but as I noted above its being used for interwiki links in the flow of the text and things will break if do it that way. KevinSours 19:03, 14 August 2008 (EDT)

As before, i recommend to use shared rather than wts. Wnen shared-version was enabled a few months before, there was no problems. Therefore i don't fear to use "shared" syntax at all. -- Sergey kudryavtsev 02:29, 15 August 2008 (EDT)
It worked just fine for new links however there are existing links in many articles of the form [[shared:pagename]] instead of the apparently correct [[:shared:pagename]]. If we implement as you suggest, these links will be pulled out of the flow of text on those articles and put in the left sidebar. The results can be jarring to say the least. I don't know how common it is, but Peter indicated above that its widespread enough that cleanup would be difficult. KevinSours 07:51, 15 August 2008 (EDT)
Yes, it's obvious. However i think that a links in form [[shared:pagename]] is very rare in main namespace. (What's a reason to use them in destination article?) Most of such links is in "Wikitravel:" namespace. But "Wikitravel:" articles is not much. -- Sergey kudryavtsev 14:19, 15 August 2008 (EDT)
You and Peter seem have a difference of opinion on that point. I've haven't personally checked. KevinSours 15:07, 15 August 2008 (EDT)
Perhaps it's reasonable to poll ([[shared:pagename]] vs [[wts:pagename]])? -- Sergey kudryavtsev 12:34, 16 August 2008 (EDT)
Sergey, I checked on the English version, and there are hundreds (if not 1000+) of such links, which would break if we use the [[shared:]] or [[:shared]] syntax. So I'd really prefer the wts format, so we can finish this tech request and not have problems on the :en version. Are you willing to reconsider? I think it is a useful compromise to expedite the tech request implementation. --Peter Talk 17:21, 16 August 2008 (EDT)
Me too, let's get rolling with wts and be done with this – cacahuate talk 17:24, 16 August 2008 (EDT)
Ok. Since Peter counted [[shared:]] links, let's get rolling with [[wts:]]. Peter, which method you used to count? -- Sergey kudryavtsev 09:57, 17 August 2008 (EDT)
I did a regex search, then checked through the links, and then quickly gave up because there were so many! --Peter Talk 19:06, 17 August 2008 (EDT)
What tool support a regex search? -- Sergey kudryavtsev 02:24, 18 August 2008 (EDT)
The only one I know of is Exalead's search tool, although it's not very good! --Peter Talk 04:38, 18 August 2008 (EDT)


Rolled out. I'd appreciate it if somebody could move this to closed once you guys have verified that its working right. KevinSours 16:19, 18 August 2008 (EDT)

On :en, tis does not appear to be working. The shared link appears in the left sidebar as it should, but it is to [[:shared]], not to the specified [[:shared:User:Peterfitzgerald]] (for example) --Peter Talk 23:18, 18 August 2008 (EDT)
Same behavior on :ru. -- Sergey kudryavtsev 03:41, 19 August 2008 (EDT)
Minor error in the push to live. The interwiki link template lost the bit that inserts the article id into it. KevinSours 13:31, 19 August 2008 (EDT)
Great! I'm very glad to have this one done. --Peter Talk 20:36, 19 August 2008 (EDT)
Sorry, but there is another bug. ;-) Previously a side links divided into two groups: "Other languages" and "Other sites". Now all links appear in "Other sites" group (e.g. see en:Main Page, ru:Заглавная страница). -- Sergey kudryavtsev 02:25, 20 August 2008 (EDT)
Sorry guys. I had to add some logic to the skin to get "wts" in the "Other Sites" box and it didn't quite work as planned. Should be okay now modulo caching. KevinSours 12:07, 20 August 2008 (EDT)
Now all is OK. -- Sergey kudryavtsev 12:11, 20 August 2008 (EDT)

Variants

Actions

In other languages