dev

AutoCreateUserPages allows automatically creating your own userpage and talkpage on wikis which you have contributed to at least once, whether by editing or posting a message, comment or Discussions post. It was originally made with personal-only use in mind, however, many wikis started using it sitewidely in lieu of a welcome tool.

Installation

Configuration

Configuration options for this script are stored under a global window.AutoCreateUserPagesConfig object. The following options are available:

The script also fires a AutoCreateUserPages.loaded hook when all pages are created, with the array of created page names as the argument, in case developers want to execute further actions on these after their creation.

Example

The following configuration, for a user named User1, will create pages User:User1 and User talk:User1 (on a wiki with talkpages enabled) once they make their first edit or post, where the userpage will be created with {{:w:User:User1}} and the talkpage will be created with {{:w:User:User1/talk}}, and the user will be notified with a link to their userpage. The summary used when creating the page will be "Creating my pages".

window.AutoCreateUserPagesConfig = {
    content: {
        2: '{{:w:User:User1}}',
        3: '{{:w:User:User1/talk}}'
    },
    summary: 'Creating my pages',
    notify: '<a href="/wiki/User:$2">Here is a link to your userpage, $1!</a>'
};
Text above can be found here (edit)