Extension:SemanticComments
Description
SemanticComments is an extension that displays & manages any number of comments and replies that are attached to any page in a wiki. This extension stores comments in semantic properties while also providing an alternative to TALK namespaces for each SUBJECT namespace in a wiki.
The SemanticComments extension was derived from the Project Halo Collaboration extension by Hypergrove.
Setup
Download instructions
The latest release may be found .
Installation
To install SemanticComments, please follow the steps indicated below.
Copy Files
Extract the downloaded archive into your extension folder so that you get the following path $IP/extensions/SemanticComments/
LocalSettings.php
Add the following to LocalSettings.php:
include_once("$IP/extensions/SemanticComments/SemanticComments.php");
enableSemanticComments();
Process the extension setup
SemanticComments comes with a small ontology to provide functionality for displaying and querying existing comments and some icons.
For that go to Special:Import, select and upload '/extensions/SemanticComments/import/SemanticComments.xml'
To use the delivered icons you need to upload the following files in your wiki:
- '/extensions/SemanticComments/skins/icons/bad_active.png'
- '/extensions/SemanticComments/skins/icons/neutral_active.png'
- '/extensions/SemanticComments/skins/icons/good_active.png'
- '/extensions/SemanticComments/skins/icons/defaultuser.gif'
- '/extensions/SemanticComments/skins/icons/Comment_icon_crystal.png'
Please be sure that you keep the original file names.
Options:
==
All configuration options are defined and described in /SemanticComments/SemanticComments.php.
To reformat the style of existing comments or of the comment form, use the provided Cascading Style Sheet in '/skins' directory.
Testing your installation
Now you can enter
{{#set: |Article has average rating={{#averagerating:}} }} {{#showcommentform:}}
{{#ask: Belongs to article::Extension:SemanticComments
| ?Has comment person | ?Has comment date | ?Has comment text | ?Has comment rating | ?Belongs to comment | ?Comment was deleted#true,false | ?Has comment editor | ?Modification date | ?Has attached article | format=template | template=CommentResult | sort=Has comment date | order=asc | link=none | limit=100
}}
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”.
Languages supported
SemanticComments has support for three languages so far:
- English
- German
- French
Extension Wishlist
- Store all comments and their replies in subobjects on a single page in the Comment namespace.