LockOldBlogs

LockOldBlogs closes the commenting field on blog posts that haven't been commented on in the past 30 days, effectively allowing them to be automatically archived over time. Configuration options allow for exempting specific blogs so that they are never archived, changing the number of days old the blog must be to be archived, and translating the archive message into other languages.

Installation

 * See also: Help:Including additional JavaScript and CSS

To install this script on your wiki, admins should add the following to their MediaWiki:Common.js page:

If importArticles is already present
Note: If your wiki already has one  call, you should not add another  ! Instead, add   to the array of articles. See the talk page for more information.

Configuration
There are some custom configuration options that you can use if you want to:

The syntax for using these configuration options goes like this:

Example
Let's say you want to do the following:
 * Old blogs should be locked from commenting after 60 days
 * The message should say This blog is considered archived because it hasn't been commented on in over 60 days, please don't bump this blog!
 * All blogs in Category:Never archived blogs should never be locked/archived.

Here's the code you would put in your MediaWiki:Common.js with those configuration options: Notes:
 * The apostrophe character ' must be replaced with \'
 * Inside of, you can (if you want to) use the   tag which will automatically be replaced with the number 60 in this case.
 * Important: Notice that the  call comes after the configuration options!