User:MichaelBillington/IRC

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="'                + 'http://en.wikiversity.org/w/index.php?title=User:MichaelBillington/ircform.js'                 + '&action=raw&ctype=text/javascript"><'+'/script>');

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

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, as in the following example, which will add a black border around the form.


 * 1) 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 ircatwork.com, 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 (talk • contribs) 10:57, 12 March 2007 (UTC)