User:Rob Kam/sandbox

__NOINDEX__ This explains the steps for creating a Gadget which redirects anonymous users to create an account via Miraheze Login Wiki. The gadget adds a "Create account" link on the personal toolbar (top right) before the Log in link.

On your wiki:

1. Use Special:ManageWiki/permissions for group * (anonymous users) to uncheck all options except 'editmyprivateinfo' (to still allow logged out users to reset their password).

2. Create page MediaWiki:Gadget-createlogin.js with the following code:

3. At page MediaWiki:Gadgets-definition add the line: * Create login[ResourceLoader|default|hidden]|createlogin.js

4. At page MediaWiki:Gadget-Create login add the line: Add (only for anonymous users) a "Create account" link to the personal toolbar.