Extension:Comments/en

The Comments extension adds the parser hook tag to allow commenting on articles where the tag is present.

Comment actions are logged to, but by default they're hidden, just like  log entries. You can set  to show comments log entries in Special:RecentChanges (available in version 2.8+).

Majority of the code fixes were done by Misza and Jack Phoenix.

Usage

 * — basic comment form, sufficient for most things.
 * — only allows the users Derfel, Jack Phoenix and Misza to submit comments.
 * — prevents users from rating comments negatively (thumb down), allowing only positive (thumb up) votes.

Comments of the Day
The extension also comes with a "Comments of the Day" feature, which by default is not enabled. You can enable this feature in the wiki's, by adding the following after the   line:

If the  argument is passed to the parser hook (like this:  ), the parser hook will not use memcached and will just fetch the data from the database instead of cache. This is useful if you want to show the most up-to-date data, but it can be very server-intensive.

User rights
This extension adds the following new user rights:


 * - which allows posting comments
 * - which allows posting external links in comments
 * - which allows deleting user-posted comments
 * - which allows deleting one's own comments, e.g.

By default, everyone, even anonymous users, can post comments, but posting comments that contain external links is limited to autoconfirmed users.

If you want anonymous users to be able to post external links, add this after the :

By default only users in the  group can delete comments.

User points

 * &mdash; amount of points to give out when another user gives "thumbs up" to your comment.
 * &mdash; amount of points to give out when another user adds your comments to their ignore list (Special:CommentIgnoreList).

Parameters

 * &mdash; path to an image which will be displayed instead of an avatar if social tools (SocialProfile extension) aren't installed. Should be 50x50px. Note that there is no default avatar image shipped with this extension. The default is defined in  and links to an external image on   server, an ad driven wiki farm. You may prefer to set this parameter to point to a local file.
 * &mdash; by default, this variable is set to . Set it to   to display comments log entries in Special:RecentChanges, too, in addition to the comments log at.
 * &mdash; by default, this variable is set to . Set it to   to sort comments by date descending, with the new comment box and most recent comments at the top.
 * &mdash; This is the custom group name for AbuseFilter for when the AbuseFilter extension is enabled. It ensures that AbuseFilter only pulls the filters related to Comments. If you would like AbuseFilter to pull all of the filters, enter  here. The default value for this is , which ensures that AbuseFilter will only look for filters specifically written to target comments.

Magic words/Parser functions
Comments includes 2 magic words and a parser function:


 * gives the entire number of comments on the wiki.
 * gives number of comments on the current page.
 * gives number of comments on the given page.

Hooks
Comments extension adds three hooks,, and.

Anti-spam
Though (as of Q3/2023) Comments does not (yet) support ConfirmEdit, MediaWiki's de facto CAPTCHA extension, there are plenty of other anti-spam measures built in, including:
 * restricting who can add comments and/or comments that contain hyperlinks (see the section above)
 * support for  and
 * possibility for extension developers to implement custom spam checks via the  hook point (see the  section above)
 * AbuseFilter interoperability &mdash; AbuseFilter can be made to check if the  variable's value is   to write filters that apply only to comments made via the Comments extension; the   variable contains the actual comment text, and the   variable is calculated on-demand based on the value of the   variable. Refer to AbuseFilter's documentation for more details on how those variables and filters in general work.
 * The new configuration variable  can be set to   to make existing AbuseFilter filters apply to comments as well. By default it is set to , so only filters specifically designed to target comments will be executed against comments made via the Comments extension.

Internationalization
The Comments extension currently has (partial or full) support for 68 different languages, including English. Please visit translatewiki.net if you want to translate Comments or other extensions of the social tools family of extensions into your language, or modify existing translations.