The Signpost

Technology report

Gallery improvements launch on Wikipedia

Contribute  —  
Share this
By Adam Cuerden and Kirill Lokshin

Wikipedia's traditional image gallery format, produced by the <gallery> markup, has remained largely unchanged for years. The resulting layout, seen below, does not adapt well to variations in image size, and has been characterized by some critics as aesthetically unappealing.

Now, the gallery markup has been enhanced with the addition of several new display modes. For example, changing <gallery> to <gallery mode=packed> produces a gallery with significantly less wasted space around each image, as shown below.

In addition, the heights parameter becomes very easy to use with the new gallery mode. For example. <gallery mode=packed heights=200px> gives


Five modes are available: "traditional", which reproduces the classic gallery format; "nolines", which behaves identically to "traditional" but removes the box overlays for each image; "packed"; "packed-hover", which is similar to "packed" but with captions that appear when the mouse pointer hovers over the image; and "packed-overlay", in which the captions are placed atop each image. Some examples of these modes can be seen below.

Packed-hover (move your mouse over the images below)
Packed-overlay

It is expected that the "packed" mode will eventually become the preferred layout for article-space galleries on Wikipedia. The "packed-hover" and "packed-overlay" modes are not expected to see significant use in articles, but will probably appear heavily in non-article spaces, such as user pages.

VisualEditor enhancements

In brief

This video (the 1911 film Little Nemo) will expand out when you click on it, for easy viewing.
+ Add a comment

Discuss this story

These comments are automatically transcluded from this article's talk page. To follow comments, add the page to your watchlist. If your comment has not appeared here, you can try purging the cache.

"new user-facing features, like the ability to search within a category, are planned"

Great news! :) Now it would be cool to make it even easier to search by crossing many categories, and allowing searching subcategories as well. --NaBUru38 (talk) 18:54, 31 August 2013 (UTC)[reply]

From conversations, it sounds like those are planned, but realise this is very early stages: The old search was a mess, so it had to be rewritten into a stable version before any other improvements could be done. We're going to get new search features, but I don't think anyone can promise anything until coding's a lot further on. =) Adam Cuerden (talk) 19:24, 31 August 2013 (UTC)[reply]
@Adam Cuerden: How is this any different from incategory:? πr2 (tc) 20:28, 2 September 2013 (UTC)[reply]
That you'd need to ask the developers about. I would presume it would include subcategories, perhaps? Adam Cuerden (talk) 20:04, 4 September 2013 (UTC)[reply]
What we are talking about is incategory:, yes. The major difference we've accomplished here (which I think was lost in the blurb) is that we've made it possible to have multiple incategory: terms in a single search, opening the door for category intersections. ^demon[omg plz] 02:17, 5 September 2013 (UTC)[reply]



       

The Signpost · written by many · served by Sinepost V0.9 · 🄯 CC-BY-SA 4.0