Extension:SemanticComments

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
SemanticComments

Release status:Extension status unmaintained

ImplementationTemplate:Extension#type MyWiki, Special page, Ajax
DescriptionTemplate:Extension#description Manages comments for a page, using a custom Comment namespace.
Author(s)Template:Extension#username Benjamin Langguth & others
Latest versionTemplate:Extension#version 1.0 (2013-02-01)
MediaWikiTemplate:Extension#mediawiki 1.19 - 1.23
PHPTemplate:Extension#php 5.3+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download
README
ExampleTemplate:Extension#example www.bestpracticeswiki.net
ParametersTemplate:Extension#parameters
  • $cegIP
  • $cegScriptPath
  • $cegEnableComment
  • $cegEnableCommentFor
  • $cegEnableRatingForArticles
  • $cegEnableFullDeletion
  • $cegShowCommentsExpanded
  • $cegEnableFileAttachments
  • $cegUseRMUploadFunc
  • $cegDefaultDelimiter
Hooks usedTemplate:Extension#hook
LanguageGetMagicManual:Hooks/LanguageGetMagic
MakeGlobalVariablesScriptManual:Hooks/MakeGlobalVariablesScript
smwhACNamespaceMappings

Translate the SemanticComments extension if it is available at translatewiki.net

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.

The SemanticComments extension was derived by Hypergrove from the Project Halo Collaboration extension.

Setup[edit]

To install SemanticComments, please follow the steps indicated below.

Prerequisite extensions
Install Extension:Variables is necessary.
Download instructions
The latest release may be found at https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/SemanticComments.
Prerequisites
Semantic MediaWiki 1.8+
Variables Extension
ParserFunctions Extension
ImageMagick for thubmnails is required.
Copy Files
Extract the downloaded archive into folder $IP/extensions/SemanticComments/
LocalSettings.php
Add the following to LocalSettings.php:
include_once("$IP/extensions/SemanticComments/SemanticComments.php");
enableSemanticComments();
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.
Options
All configuration options are defined in /SemanticComments/SemanticComments.php.
To reformat the style of existing comments or of the comment form, use the Cascading Style Sheet in the '/skins' directory.

Usage[edit]

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]].

Wishlist[edit]

  • 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 also[edit]