Extension:GoogleWave

Note
Google Waves are still experimental, and only open to a few invited people at this time so bugs may be present both in the extension code and in the Wave code itself. Waves are meant to go public later in 2009. The code have only been tested in MediaWiki v. 1.15 but might work with earlier versions too (please leave a note on the talk page if you find that it doesn't). Waves are only supported for new versions of Firefox, Google Chrome and Safari so it won't work in e.g. Internet explorer at this time (unless you use the Google Chrome Frame extension).

What can this extension do?
The GoogleWave extension makes it possible to embed Google Waves in your installation of MediaWiki using the The Google Wave Embed API.

Usage
You can use this extension to embed Waves in your wiki. This can be achieved with the wave-tag and id attribute like this:



Place the tag in your regular WikiML code in any page and you should be good to go (you must of course change the id to the actual id of the wave that you want to embed).

The MediaWiki wave tag now supports all the attributes that a wave can handle: Only the id attribute is required how ever. You can specify a wave server with this attribute:
 * id (required)
 * height
 * width
 * color
 * bgcolor
 * font
 * fontsize
 * waveServer

waveServer="http://wave.google.com/a/wavesandbox.com/" The extension defaults to the Google Wave sandbox server at this time (this will probably change once I figure out which server is best for a default value). A full wave tag could e.g. look like this:



The Google wave docs specify that only pts format works for fontsize attribute, but px seems to work ok as well.

svn
You can download the latest version of the code from svn with the command:

Make sure you issue this command from the directory.

Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Archive
Download the code tar.gzzip, unpack the archive and place the folder named  in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php:

Known issues

 * This extension doesn´t work very well with memcached, other types of caching is untested. If you use memcached you need to purge the page each time you wish to see the wave.

Wave Servers other than sandbox server
Using the Google sandbox wave server, a wave is displayed properly inline on a wiki page. I have not been able to reproduce this behavior with other wave servers I have tried. If someone could shed a light on this it would be more than welcome. These are the wave servers I have tried:
 * http://wave.google.com/a/wavesandbox.com/ - The sandbox wave server, a trailing slash works, no trailing slash doesn't.
 * https://wave.google.com/wave - The Google wave server, no trailing slash produces the inbox of my wave account, where as a trailing slash produces a grey background only, no content.
 * http://pygowave.net/waves/ - PyGoWave server, no trailing slash produces an error, a trailing slash shows inbox.

Should you find another bug, please report it at the talk page.