CustomComments

<includeonly>
CustomComments is a versatile script that allows administrators to easily customize comments or messages for users in a given group.
== ==
== Customization ==
This script adds custom classes to user's comments and messages in the selected group.
=== Adding groups ===
The recommended way to add user groups is through the MediaWiki:Custom-comment-groups.json page on your wiki, as this allows for fast and easy customization without it going through the review process. However, by doing it this way, you need to make sure you do not introduce any errors in the JSON as doing so can cause the custom comments to stop working. You may copy this example and customize it to your liking. (Note: when creating this page, you will see two braces {} in the page. These must be removed before adding anything.)
Alternatively, you may define window.customCommentGroups in your MediaWiki:Common.js file. This method is simpler to understand, but doing it this way means that any changes must be reviewed before going live. This can delay the changes made to the groups. Again, you may use the example below to customize the users in the group.
Note: in both examples, the group name cannot have spaces and are case-sensitive when using CSS to customize the classes.
=== Styling comments ===
Styling is pretty straightforward. Comments and messages for users in a group will have a special class added to them. The above examples have users put into group1 and group2. You may copy and customize the following example to your MediaWiki:Common.css file.