Plugin: ArchWikiSortContacts - kynikos/wiki-monkey GitHub Wiki
This ArchWiki-specific plugin sorts the entries of specifically-formatted user lists.
The plugin is disabled by default.
Configuration options and default values
enabled
:false
special_menu
:["Sort staff contacts"]
edit_summary
:"automatically sort list according to recent activity"
The edit summary that will be submitted when saving the page.pages
:[
see below]
Pages
An array of objects.
ArchWiki:Administrators:
title
:"ArchWiki:Administrators"
The name of the article where there is the user list.recent_days
:30
The number of days to consider when counting the users' edits.inactive_limit
:30
The minimum number of edits that have to have been done in the chosen period for a user to be considered active.inactive_message
:"The following Administrators are currently einactive (less than 30 edits in the last 30 days):"
The string that introduces inactive users.
ArchWiki:Maintainers:
title
:"ArchWiki:Maintainers"
recent_days
:30
inactive_limit
:10
inactive_message
:"The following Maintainers are currently inactive (less than 10 edits in the last 30 days):"
Usage
Initialize a list of users in some page like:
<!--START AUTO LIST - DO NOT REMOVE OR MODIFY THIS MARK-->
* [User:Someone](/kynikos/wiki-monkey/wiki/Someone) ([User talk:Someone](/kynikos/wiki-monkey/wiki/talk)) - [Special:EmailUser/Someone](/kynikos/wiki-monkey/wiki/Special:EmailUser/Someone)
* [User:SomeoneElse](/kynikos/wiki-monkey/wiki/SomeoneElse) ([User talk:SomeoneElse](/kynikos/wiki-monkey/wiki/talk)) - [Special:EmailUser/SomeoneElse](/kynikos/wiki-monkey/wiki/Special:EmailUser/SomeoneElse)
* [User:AnotherGuy](/kynikos/wiki-monkey/wiki/AnotherGuy) ([User talk:AnotherGuy](/kynikos/wiki-monkey/wiki/talk)) - [Special:EmailUser/AnotherGuy](/kynikos/wiki-monkey/wiki/Special:EmailUser/AnotherGuy)
<!--END AUTO LIST - DO NOT REMOVE OR MODIFY THIS MARK-->
Note the opening and ending comments, which must be left exactly like that.
Also note that each user entry must match this regular expression.
Feed your Wiki Monkey a custom configuration object like this:
"ArchWikiSortContacts": {
"enabled": true,
"special_menu": ["Sort users"],
"edit_summary": "automatically sort list according to recent activity",
"pages": [{
"title": "Page title with the users list",
"recent_days": 30,
"inactive_limit": 30,
"inactive_message": "The following users are currently inactive (less than 30 edits in the last 30 days):"
}]
}
Go to the wiki's Special:SpecialPages page and click on the new "Sort users" button.