Srikanth Lakshmanan wrote: > Hi all, > > Sharing of URLs of non latin wiki's werent really easy and when copy > pasting > we get the unicode numerals in the URL like > http://ta.wikipedia.org/wiki/%E0%AE%B5%E0%AE%BF%E0%AE%95%E0%AF%8D%E0%AE%95%E0%AE%BF%E0%AE%AA%E0%AF%8D%E0%AE%AA%E0%AF%80%E0%AE%9F%E0%AE%BF%E0%AE%AF%E0%AE%BE:%E0%AE%86%E0%AE%B2%E0%AE%AE%E0%AE%B0%E0%AE%A4%E0%AF%8D%E0%AE%A4%E0%AE%9F%E0%AE%BF ... > So there came the idea of a mediawiki extension and hence > Shorturl extension[2] was born by some really quick work by Yuvipanda ... > > [1] https://github.com/mountain/shortify > [2] http://www.mediawiki.org/wiki/Extension:ShortUrl > [3] http://wiki.busroutes.in/wiki/Chennai > [4] > http://lists.wikimedia.org/pipermail/wikimediaindia-l/2011-March/002699.html > <http://lists.wikimedia.org/pipermail/wikimediaindia-l/2011-March/002699.html > > > Regards > Srikanth.L
Looks good, although I'm not sure what the advantage in this case is over using a page id. Both have the same disadvantage: * They are binding to a pageid instead of a pagename. This means whenever the page is (un)deleted, moved, merged, split, or becomes a redirect. The link is longer correct. I saw a different short-url service for en.wikipedia which also uses numbers, but internally converts to a page title. In order words: * http://en.wikipedia.org/wiki/Talk:Foobar = > (pageid: 12, namespace: 1, title:Foobar) converted to 1 * shorturl/1 = > namespace:1, title:Foobar -> en.wikipedia.org/wiki/ Talk:Foobar This will always stay the same. * en.wikipedia.org/wiki/Talk:Foobar = > pageid: 12 converted to base64 * (page is re-created, moved, split, merged, whatever) * shorturl/base64 => pageid: 12 => unknown page id, or perhaps http://en.wikipedia.org/wiki/A_different_page If the extension does not use the title, but the pageid, we might as well really use the pageid: * http://ta.wikipedia.org/?curid=2810 (already works) * http://ta.wikipedia.org/wiki/Special:ShortUrl/262 (proposal; // base_convert ( 2810, 10, 36 ); ) Even shorter :-) -- Krinkle _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l