We all love Wikipedia. But Wikipedia's 2002-era web editing tech leaves something to be desired. Last week Hackpad was invited in to the Wikimedia Foundation offices in downtown San Francisco to whip up a prototype for live-edited MediaWiki pages.
Live editing a wiki page makes a lot of sense for things like storing meeting minutes and writing specs. Anywhere where multiple people need to update a page at the same time.
Eventually, with enough polish we're hopeful that the Wikipedia community might adopt collaborative editing to enable group editing sessions, and this prototype is a first step towards that goal.
Here is a recap of the steps required to get this prototype running for any MediaWiki instance, so you can try it out yourself. It doesn't require administrator access, and instead leverages MediaWiki user scripts.
FIrst, create a new user page called vector.js (or equivelent based on your MediaWiki theme) underneath your user home page, and insert the following:
Here's an example script defined for user Igorkofman on mediawiki.org:
After you save the vector.js file you'll see a HackPad tab at the top of pages you visit. Clicking the HackPad tab will create a new anonymous pad loaded with the wikitext of the page, or join an existing pad for that page if others are currently editing.
Your changes and changes from others will show up in real-time with the author's username shown in the margin.
When you're finished editing collaboratively, just click the Save button as normal and the pad text is saved back to MediaWiki, with author names automatically filled in the comment section.
If you administer a MediaWiki and you'd like to try this out, see the
directions here to install a user script for all users.
In the coming days we'll be working with WikiMedia to get a shared code repository setup, so this integration can evolve to better support collaborative editing within MediaWiki. Exciting stuff!