The Signpost

Technology report

Mumbai and Brighton hacked; horizontal lists have got class

Mumbai, Brighton Hackathons

Hackers at the Mumbai Hackathon, designed to coincide with WikiConference India.

Two hackathons were held simultaneously over the weekend, one in Mumbai, India, and another in the British seaside town of Brighton. The former was designed to coincide with WikiConference India, a major meetup for editors interested in the expansion in Wikimedia's presence in India (see "In the news").

The Mumbai Hackathon featured work on the Narayam extension, allowing editors to work with non-Latin scripts more easily within MediaWiki. The WebFonts extension, set to be deployed to several wikis on 12 December and aimed at eliminating the "square box" character phenomenon by taking advantage of the latest web technologies, was also tested. Unfortunately, the typeface used for a number of Indic scripts was found to be lacking for certain characters, prompting a number of bug reports to be sent to its maintainer Red Hat.

Hackers at the smaller event in Brighton.

Mumbai also saw work on the Kiwix reader, India-MobileFrontend tie-ins and, more broadly, the hackathon helped to share knowledge among the large number of potential developers and contributors at the event. Overall, internationalisation team member Gerard Meijssen was led to comment that "the [India] hackathon proved as always that when you bring great people together special things can and do happen." Among others, the hackathon was attended by WMF Volunteer Development Co-ordinator Sumana Harihareswara and staff developers Brandon Harris, Tomasz Finc and Patrick Reilly.

The smaller Brighton Hackathon had fewer participants, with work on creating a standalone version of MediaWiki within the Vagrant framework and on bugsmashing (approximately 25 bugs were resolved), among other projects. In attendance were staff developers Roan Kattouw, Antoine Musso and Sam Reed, along with a number of other volunteer developers, Wikimedians and members of the wider free culture movement (notes from Saturday, notes from Sunday).

Horizontal lists have got class

In March 2007, a method for having horizontal lists – especially those in navboxes – rendered as proper, semantically-correct, standards-compliant and more accessible HTML lists was proposed by Andy Mabbett. The following month, he created the {{flatlist}} template for this purpose. In those days, however, support for the necessary CSS styling was severely lacking in some browsers. In March this year, Andy again asked for help to resolve the outstanding issues, but poor CSS support in older Microsoft browsers was still a problem. Despite this, editors increasingly began to add the flatlist template to navboxes.

This November, discussion resumed, prompting Erwin Dokter to do a complete overhaul, using CSS that is supported by all modern browsers, along with a few lines of JavaScript to extend support to older browsers, to achieve horizontal lists without recourse to the previous method of using resource-hungry templates such as {{nowrap}} and {{}}. This method quickly gained the consensus needed to roll out the revised format for horizontal lists en masse. Currently, several editors are in the process of converting navboxes to use the new hlist class, replacing most inline templates. A bot to complete the task has also been requested.

The advantages extend to both readers and editors. In addition to easier editing of navboxes and speedier page-load times, users of screen readers will no longer hear the confusing sequence "one dot two dot three dot..." and instead hear just the list items. Any type of list is permitted, and nested lists are also supported. For more details, see WP:HLIST.

In brief

Not all fixes may have gone live to WMF sites at the time of writing; some may not be scheduled to go live for many weeks.


















Wikipedia:Wikipedia Signpost/2011-11-21/Technology_report