Developers, most of them unpaid, help to write improvements to the MediaWiki software on which WMF wikis are based. Some of these improvements are very specific to running a wiki; however, others could be useful to completely different projects, such as the provision of support for .OGG files and general-purpose handlers of CSS and JavaScript files. Trevor Pascal, one of a handful of paid programmers for the Foundation, has outlined proposals to untangle the specifically MediaWiki-only code from those sections which (i) had either been imported from other projects and would be easier to update in isolation, or (ii) could be reused by other projects in the same way that text and images can already be easily found and reused by others: "Overall, it would be great if we could take a look at this and other ways to better share our work with non-MediaWiki projects, and give back to the open-source community." How this could best be achieved is still up for debate. Suggestions include the use of the PEAR mechanism for sharing PHP modules.
We continue a series of articles about this year's Google Summer of Code (GSoC) with student Peter Potrowl, who describes his project to develop a system for transcluding templates from other wikis:
“ | I have been a daily user of MediaWiki for more than five years and, in the months before the application phase of GSoC, I noticed that sharing templates across wikis would be particularly interesting and could save a lot of energy, especially for the small wikis whose users often have to re-create templates which already exist in bigger wikis. Having some templates (license templates, climate and population charts and, why not, infoboxes) stored on a reference wiki (like the images on Commons) would allow each wiki to transclude them on demand and updating the data on that wiki would update it on the small wikis as well. After consulting MediaWiki's central bug and feature request repository Bugzilla, I found that some feature requests had already been opened for quite a long time and I decided that my proposal for GSoC would be to answer those requests.
After my proposal was accepted, I worked for three months this [northern] summer, supervised by Roan Kattouw (User:Catrope), to implement this "interwiki template transclusion" in MediaWiki's core. The challenge was to produce reliable and efficient code ... to allow its deployment on the WMF's servers. For this, the opinion and advice of the other MediaWiki developers was very helpful and, with them and my mentor, I managed to produce a prototype which is currently running and can be tested by anybody. Further improvements still need to be made before this code is merged into the trunk (i.e. goes live to any sites) and I hope Wikimedia contributors will be able to use this feature in a few months. I plan to continue improving MediaWiki after this. Thanks to all the people who contributed! |
” |
Readers interested in the possibilities of interwiki transclusion may wish to refer to Daniel Kinzler's blog post earlier this month.
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.
Discuss this story
Interwiki transclusion
It would be nice if a tool could automagically render them as seen in the source environment, but this is not merely a matter of transclusion. Is the tool up to it? Can we have a link to the mentioned prototype that "anybody" can try? ~ Ningauble (talk) 19:16, 31 August 2010 (UTC)[reply]