Open main menu


MediaWiki extensions manual
OOjs UI icon advanced.svg
Release status: beta
Implementation MyWiki, Special page, Ajax
Description Manages comments for a page, using a custom Comment namespace.
Latest version 2.0.0 (not yet released) (2018-02-20)
MediaWiki 1.19 - 1.27
PHP 5.3+ - 7.0+
Database changes No
License GNU General Public License 2.0 or later
  • $cegIP
  • $cegScriptPath
  • $cegEnableComment
  • $cegEnableCommentFor
  • $cegEnableRatingForArticles
  • $cegEnableFullDeletion
  • $cegShowCommentsExpanded
  • $cegEnableFileAttachments
  • $cegUseRMUploadFunc
  • $cegDefaultDelimiter
Hooks used
Translate the SemanticComments extension if it is available at
Check usage and version matrix.

The SemanticComments extension displays & manages comments and replies that are attached to any page in a wiki. This extension stores comments in semantic properties attached to pages in the "Comment" namespace which are queried by a special page.

This extension was derived by Hypergrove from the Project Halo Collaboration extension.



  • Prerequisites:
- Semantic MediaWiki extension (version 1.8 or later, tested with 2.5.5)
- Variables extension
- ParserFunctions extension
- ImageMagick for thubmnails is required.
  • Download, extract and place the file(s) in a directory called SemanticComments in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/SemanticComments/SemanticComments.php";
  • Configure as required
  • Import ontology
SemanticComments comes with a small ontology to provide functionality for displaying and querying existing comments and some icons. Go to Special:Import and upload /extensions/SemanticComments/import/SemanticComments.xml
  • Import graphics
To use the delivered icons you need to upload the following files in your wiki:
  1. /extensions/SemanticComments/skins/icons/bad_active.png
  2. /extensions/SemanticComments/skins/icons/neutral_active.png
  3. /extensions/SemanticComments/skins/icons/good_active.png
  4. /extensions/SemanticComments/skins/icons/defaultuser.gif
  5. /extensions/SemanticComments/skins/icons/Comment_icon_crystal.png
Please be sure that you keep the original file names.
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.


All configuration options are defined in /SemanticComments/SemanticComments.php.


Enter {{ShowComments|show=True}} to any article where you want to get a list of all 'related comments' and a form that allows you to enter new comments.

From the list of Special pages, go to page “Special:SemanticComments”.

Add the property "User image" to the user page for individual user images, e. g. [[User image::File:Myimage.png]].


  • Store all comments and their replies in subobjects on a single page in the Comment namespace instead of a page per comment.
  • Provide date ascending and descending sort options

See alsoEdit