User talk:Nmajdan/welcome newuser.js
From Wikipedia, the free encyclopedia
Contents |
[edit] Documentation
[edit] About
'welcome_newuser is a javascript file that contains a function that allows you to quickly add a welcome template to a new user's talk page. I created this file by modifying Omegatron's 'tag unverified image' script.
[edit] How it works
For this to work, you must be in edit mode on a user's talk page. For most new users, they will not have anything on their talk page so when you go there, it will automatically be in edit mode. When in edit mode, a tab will appear at the top of the screen that says "welcome." Clicking this tab executes the function. It adds whatever template you want (the default template is {{welcomeh}}) to the talk page and adds an edit summary and saves the change.
[edit] Customization
To use a different welcome template, you will need to copy the javascript code directly into your monobook.js file. Then you will need to change the following line:
//The welcome template you are wanting to use var welcome_msg = 'welcomeh'
In place of welcomeh
, replace with whatever welcome template you are wanting to use.
[edit] Requirements
Has been tested in Firefox 2.0, Internet Explorer 6, and the Monobook skin.
[edit] Installation
Add the above scripts and following to your script file (usually found at User:YOUR_USER_NAME_HERE/monobook.js):
/**** welcome new user ****/ document.write('<script type="text/javascript"' + 'src="http://en.wikipedia.org/w/index.php?title=User:Nmajdan/welcome_newuser.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
Remember to refresh your browser's cache (Ctrl-F5 for IE, Shift-Ctrl-R for Firefox) before complaining it doesn't work!
[edit] Discussion
[edit] Enjoy
I hope you all enjoy this new script. Let me know if you have any issues!--NMajdan•talk 16:41, 11 January 2007 (UTC)
[edit] A couple enhancements
I added a couple enhancements, viz. that you can disable watching the user's page (the new default) and that the edit summary is also configurable. See User:Flex/welcome_newuser.js (sorry about the spacing getting messed up). --Flex (talk|contribs) 18:23, 15 February 2007 (UTC)
[edit] Not working
It isn't working. - PatricknoddyTALK (reply here)|HISTORY 10:59, 17 March 2007 (UTC)