Well, it looks like my 2-line fix wasn't very popular. I abandoned that one and wrote an extension instead (plus a hook for core). This extension solves both bug 6754 and bug 35981. It will let us get rid of all the disambiguation code in core, and also stop relying on the MediaWiki:Disambiguationspage hack. Furthermore, it is backwards compatible and will allow the community to migrate to the new system whenever they want to. The old system will continue working in the meantime. In summary, the advantages of this extension over the old system are: 1. It will be trivial to query for which pages are disambiguation pages from the database - just test for the 'disambiguation' page property 2. No longer any need to keep track of all of the different disambiguation templates on all the wikis -- just add __DISAMBIG__ to them and you're done 3. The special page output is identical, but requires fewer queries and is more efficient
4. All the code is in an extension rather than in core (per bug 35981)

I know you're all dying to +2 this new extension (or perhaps tell me why it's a horrible idea), but unfortunately I don't have rights to create new projects on gerritt, and strangely the IRC channels are a ghosttown this evening ;) Perhaps after you've all recovered from your eggnog hangovers someone could great a new project for me on gerrit: ssh -p 29418 gerrit.wikimedia.org gerrit create-project --owner=editor-engagement --parent=mediawiki/extensions --description='"Repository for the Disambiguator MediaWiki extension"' mediawiki/extensions/Disambiguator

Merry Festivus!
Ryan Kaldari


On 12/24/12 5:10 PM, Ryan Kaldari wrote:
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 that would be generally useful to lots of wikis and is a much lighter-weight solution than a full-blown extension.

The reason I used a doubleunderscore magic word is because they don't have to output anything and they automatically set a page property. In other words, they were invented for exactly this sort of purpose.

Ryan Kaldari


On 12/24/12 1:48 PM, bawolff wrote:
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 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
_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to