[Wikitech-l] Distinguishing disambiguation pages

2012-12-24 Thread Jon Robson
Last week I was working on a feature that I didn't want to surface on a disambiguation page. I was surprised to find there was no way I could distinguish between a normal article and a disambiguation page. The disambiguation pages have no clearly marked templates I can use and they are in the same

Re: [Wikitech-l] Distinguishing disambiguation pages

2012-12-24 Thread Matma Rex
On Mon, 24 Dec 2012 11:00:36 +0100, Jon Robson jdlrob...@gmail.com wrote: Last week I was working on a feature that I didn't want to surface on a disambiguation page. I was surprised to find there was no way I could distinguish between a normal article and a disambiguation page. The

Re: [Wikitech-l] Distinguishing disambiguation pages

2012-12-24 Thread John
see https://bugzilla.wikimedia.org/show_bug.cgi?id=43210 On Mon, Dec 24, 2012 at 5:12 AM, Matma Rex matma@gmail.com wrote: On Mon, 24 Dec 2012 11:00:36 +0100, Jon Robson jdlrob...@gmail.com wrote: Last week I was working on a feature that I didn't want to surface on a disambiguation page.

Re: [Wikitech-l] Distinguishing disambiguation pages

2012-12-24 Thread David Gerard
On 24 December 2012 10:00, Jon Robson jdlrob...@gmail.com wrote: Last week I was working on a feature that I didn't want to surface on a disambiguation page. I was surprised to find there was no way I could distinguish between a normal article and a disambiguation page. The disambiguation

Re: [Wikitech-l] Distinguishing disambiguation pages

2012-12-24 Thread Jon Robson
I hadn't thought of using categories but that may indeed work for en.wiki :) thanks! On 24 Dec 2012 11:43, John phoenixoverr...@gmail.com wrote: see https://bugzilla.wikimedia.org/show_bug.cgi?id=43210 On Mon, Dec 24, 2012 at 5:12 AM, Matma Rex matma@gmail.com wrote: On Mon, 24 Dec 2012

Re: [Wikitech-l] Distinguishing disambiguation pages

2012-12-24 Thread Jon Robson
Ok I explored this however this solution is not perfect as it requires you know the name of the disambiguation category for a given language. I want this code to run on fr.wiki, en.wiki and all other wikis Any other ideas? On Mon, Dec 24, 2012 at 12:06 PM, Jon Robson jdlrob...@gmail.com

Re: [Wikitech-l] Distinguishing disambiguation pages

2012-12-24 Thread Yuvi Panda
Check the MediaWiki:Disambiguationspage language message - it exists for all languages. It lists all the templates that mark Disambig pages. (https://fr.wikipedia.org/wiki/MediaWiki:Disambiguationspage for the french wikipedia, https://en.wikipedia.org/wiki/MediaWiki:Disambiguationspage for

[Wikitech-l] some issues with missing Files

2012-12-24 Thread Yury Katkov
Hi everyone! I want to move my wiki from one server (A) to another (B). On server A I have a lot of files. I don't need them on server B, but I need all my wikipages. What I've done is: I removed the 'images' directory and ran: php maintainance/rebuildall.php Unfortunately now wiki still thinks

[Wikitech-l] question about UNIQ-QINU exception and parser

2012-12-24 Thread Yury Katkov
Hi guys! During writing my tag extension I've face with the problem: sometimes the UNIQ-QINU MWException has been throwed after my code is finished executing. I've found the fix http://www.mediawiki.org/wiki/QINU_fix that recommends using $parser-parse($input, $parser-mTitle, $parser-mOptions,

Re: [Wikitech-l] Distinguishing disambiguation pages

2012-12-24 Thread Jon Robson
I am actually trying to do this in javascript in the lightest way possible. There is no way that I can to get from outputted html to the Template it came from in Javascript. Ideally I'd like to see something like class=template data-template=TemplateName on all outputted templates to solve this

Re: [Wikitech-l] git-review reaches the FreeBSD ports tree

2012-12-24 Thread Sumana Harihareswara
On 11/28/2012 05:07 AM, Sébastien Santoro wrote: Good morning, I'm glad to announce git-review 1.20 is now available in the FreeBSD port tree. Installation: cd /usr/ports/devel/git-review/ make install Vocabulary: - a port in FreeBSD is a Makefile cookbook to download, compile

Re: [Wikitech-l] question about UNIQ-QINU exception and parser

2012-12-24 Thread Sumana Harihareswara
By the way, Yury I just wanted to ask you to list any UNIQ issues you run into here: https://bugzilla.wikimedia.org/show_bug.cgi?id=26213 (tracking bug) thanks, Sumana On 12/24/2012 10:24 AM, Yury Katkov wrote: Hi guys! During writing my tag extension I've face with the problem: sometimes

Re: [Wikitech-l] question about UNIQ-QINU exception and parser

2012-12-24 Thread bawolff
The issue is you are not allowed to call the parse method while already parsing something. In 99.9% of cases, using the recursiveTagParse method is what you want. (There are a couple cases - like in Babel extension when auto-creating categories where you have to do something more complicated, but

Re: [Wikitech-l] Distinguishing disambiguation pages

2012-12-24 Thread Bináris
Perhaps this helps something if you are familiar with javascript: http://de.wikipedia.org/wiki/MediaWiki:Gadget-bkl-check.js We in huwiki use an adopted version of this script to display links to disambpages with a different colour. -- Bináris ___

Re: [Wikitech-l] Distinguishing disambiguation pages

2012-12-24 Thread bawolff
You could always have a magic word that disables the features, and let the users put it in the relevant templates. Then the users could disable it on all the pages they feel it would be inappropriate for. --bawolff On Mon, Dec 24, 2012 at 2:34 PM, Bináris wikipo...@gmail.com wrote: Perhaps

Re: [Wikitech-l] Distinguishing disambiguation pages

2012-12-24 Thread Ryan Kaldari
I implemented a fix for bug 6754 here: https://gerrit.wikimedia.org/r/#/c/40343/ It's a simple 2 line change to core that adds a 'disambiguation' page property to any page that includes '__DISAMBIG__'. I was originally considering implementing this as an extension, but it seems like a feature

Re: [Wikitech-l] Fwd: Wikimedia/mapping event in Europe early next year?

2012-12-24 Thread Sumana Harihareswara
On 12/20/2012 06:56 AM, Cristian Consonni wrote: 2012/11/28 Erik Moeller e...@wikimedia.org: WMF is not going to organize this, but we can help sponsor travel and bring the key developers from our side who will work on this. Are there any takers for supporting a 20-30 people development event

Re: [Wikitech-l] Secure Coding Documentation

2012-12-24 Thread Sumana Harihareswara
On 12/21/2012 02:55 PM, Matthew Flaschen wrote: On 12/21/2012 02:43 PM, Chris Steipp wrote: Sorry for the delay, this link should work! https://plus.google.com/hangouts/_/8e5a52bc254a36c4c78b2a999110fb10a2a3f32c I started an Etherpad for notes.