User:MichaelBillington/IRC
From Wikiversity
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 id , as in the following example, which will add a black border around the form.
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.

