User:Dantman/groups.js

/* */ //////////////////////////////////// // INFO: Group list. // //      Can be included into any // //      type of user or skin .js // //      to provide a list of the // //      wiki's group tags. // ////////////////////////////////////

/**** GENERATION: **** Most of this info can be generated by copying the source inside the group select box at Special:Listusers and then running it through a regex with a expression of: ([^<]+) and a replacement of: (Yes the extra line break is included.)	{ value: '\1', data: '\2' },

Then just remove the, off the last one and replace the content inside of the array.

var mwGroups = new Array(	{ value: '', data: '(all)' },	{ value: 'bot', data: 'Bots' },	{ value: 'sysop', data: 'Sysops' },	{ value: 'bureaucrat', data: 'Bureaucrats' },	{ value: 'checkuser', data: 'checkuser' },	{ value: 'staff', data: 'staff' },	{ value: 'rollback', data: 'rollback' } );