User:Justin/Extensions

This page details the extensions which I have created. All of these are currently installed on Zelda Wiki unless otherwise specified.

Patrolled Edits and Patrolled Magic
Patrolled Edits is a simple extension which adds several parser functions to display how many edits a user has patrolled. It can be accessed with, where type is either patrol or autopatrol (for edits marked as patrolled or edits made by the user which are automatically marked as patrolled) and namespace is the numerical namespace to count edits from. Type and namespace are optional and will show every patrolled edit (both those automatically marked patrolled and those marked by hand) in every namespace.

Patrolled Magic adds in several magic words which will output the total number of patrolled edits on the wiki. They are as follows:

Contact Us*
The Contact Us extension adds a special page allowing users to contact specific staff of a wiki based on what they need. Admittedly not as useful for us, but can be configured to email all specified users, which will help us keep track of user requests and such.

Configuration:

$wgContactUs_Groups['name'] = 'Message'; "Name" is the name of the group. It's what should be used when assigning groups to users. Be sure you keep track of the group names, because misconfiguring them could mean that a user isn't receiving emails when they should be. "Message" is what to call it on the select field in the form.
 * This extension is still in development! Users are free to pull and test the code provided, but are NOT advised to use it onto production sites! It does not fully function!
 * Be sure to specify the user with ['user'], or it won't work properly, because this is meant to be an array inside of an array. PHP added in the ability to assign an array with brackets [] (known as the shorthand array syntax) recently ($var = [1,2,3];), so it may not be present on all servers. If your server runs a version of PHP below 5.4, it can also be assigned with $wgContactUs_Recipients['user'] = array('group1', 'group2', 'group3');
 * The syntax for this is as follows: