Skip to content

Plugin: ArchWikiSortContacts

Dario Giovannetti edited this page Sep 16, 2019 · 3 revisions

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|Someone]] ([[User talk:Someone|talk]]) - [[Special:EmailUser/Someone]]
* [[User:SomeoneElse|SomeoneElse]] ([[User talk:SomeoneElse|talk]]) - [[Special:EmailUser/SomeoneElse]]
* [[User:AnotherGuy|AnotherGuy]] ([[User talk:AnotherGuy|talk]]) - [[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.