From Wikiversity
Jump to navigation Jump to search

This is a piece of javascript to add a form to a page. The form has a field for a nickname, and a submit button, for logging on to Wikiversity's IRC channel.

To get this to work, add the following code to your monobook.js file.

document.write('<'+'script type="text/javascript" src="'
+ ''
+ '&action=raw&ctype=text/javascript"><'+'/script>');

The form can then be included on any page, using the following code:

<div id="wikichat"/>

It will only work for other users who have the script installed, otherwise nothing will be shown. You can style the form in your monobook.css page using its id , as in the following example, which will add a black border around the form.

#wikichat {border: 1px solid #000000; padding: 10px;}

This script is intended help to get more users in the Wikiversity IRC channel. It uses the IRC gateway at, though it can be configured to use any CGI:IRC installation. Programmers may be interested in the code, which can be found at User:MichaelBillington/ircform.js.

Michael Billington (talkcontribs) 10:57, 12 March 2007 (UTC)