Jump to content

Extension:SemanticComments: Difference between revisions

From mediawiki.org
Content deleted Content added
No edit summary
m prepare for translation
Line 1: Line 1:
{{Extension|templatemode =
{{ {{TNTN|Extension}} |templatemode =
|name = SemanticComments
|name = SemanticComments
|status = beta
|status = beta
Line 14: Line 14:
|imagesize =
|imagesize =
|version = 1.0
|version = 1.0
|update = February 1, 2013
|update = 2013-02-01
|mediawiki = 1.19+
|mediawiki = 1.19+
|php = 5.3+
|php = 5.3+
|license = GNU GENERAL PUBLIC LICENSE, Version 2, June 1991
|license = GNU GENERAL PUBLIC LICENSE, Version 2, June 1991
|download = {{WikimediaDownload}}
|download = {{TNT|WikimediaDownload}}
|needs-updatephp = no
|needs-updatephp = no
|readme = {{git file|action=raw|project=mediawiki/extensions/SemanticComments|file=INSTALL|text=README}}
|readme = {{git file|action=raw|project=mediawiki/extensions/SemanticComments|file=INSTALL|text=README}}
Line 44: Line 44:
To install SemanticComments, please follow the steps indicated below.
To install SemanticComments, please follow the steps indicated below.
;Prerequisite extensions
;Prerequisite extensions
:Install [[Extension:Variables]] is necessary.
:Install [[Special:MyLanguage/Extension:Variables|Extension:Variables]] is necessary.
;Download instructions
;Download instructions
:The latest release may be found at https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/SemanticComments.
:The latest release may be found at https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/SemanticComments.
;Prerequisites
;Prerequisites
:[[Extension:SemanticMediaWiki|Semantic MediaWiki 1.8+]]
:[[Special:MyLanguage/Extension:SemanticMediaWiki|Semantic MediaWiki 1.8+]]
:[[Extension:Variables|Variables Extension]]
:[[Special:MyLanguage/Extension:Variables|Variables Extension]]
:[[Extension:ParserFunctions|ParserFunctions Extension]]
:[[Special:MyLanguage/Extension:ParserFunctions|ParserFunctions Extension]]
;Copy Files
;Copy Files
:Extract the downloaded archive into folder $IP/extensions/SemanticComments/
:Extract the downloaded archive into folder $IP/extensions/SemanticComments/
;LocalSettings.php
;LocalSettings.php
:Add the following to [[Manual:LocalSettings.php|LocalSettings.php]]:
:Add the following to [[Special:MyLanguage/Manual:LocalSettings.php|LocalSettings.php]]:
:<syntaxhighlight lang="php">include_once("$IP/extensions/SemanticComments/SemanticComments.php");</syntaxhighlight>
:<syntaxhighlight lang="php">include_once("$IP/extensions/SemanticComments/SemanticComments.php");</syntaxhighlight>
:<syntaxhighlight lang="php">enableSemanticComments();</syntaxhighlight>
:<syntaxhighlight lang="php">enableSemanticComments();</syntaxhighlight>
Line 87: Line 87:
* Provide date ascending and descending sort options
* Provide date ascending and descending sort options
* Provide ability to display user pictures instead of standard user icon
* Provide ability to display user pictures instead of standard user icon

[[Category:Discussion and forum extensions]]
[[Category:Semantic MediaWiki extensions]]


==See also==
==See also==
* [[semantic-mw:OntoLTS/Semantic_Comments|OntoLTS/Semantic Comments]], semantic-mediawiki.org (external link)
* [[semantic-mw:OntoLTS/Semantic_Comments|OntoLTS/Semantic Comments]], semantic-mediawiki.org (external link)
* [[Extension:SMWCollaboration]]
* [[Special:MyLanguage/Extension:SMWCollaboration]]
* [[semantic-mw:Collaboration|Collaboration]], semantic-mediawiki.org (external link)
* [[semantic-mw:Collaboration|Collaboration]], semantic-mediawiki.org (external link)

[[Category:Discussion and forum extensions{{translation}}]]
[[Category:Semantic MediaWiki extensions{{translation}}]]

Revision as of 03:53, 2 July 2014

MediaWiki extensions manual
SemanticComments
Release status: beta
Implementation MyWiki , Special page , Ajax
Description This extension manages comments for a page, using a custom Comment namespace.
Author(s) Benjamin Langguth & others
Latest version 1.0 (2013-02-01)
MediaWiki 1.19+
PHP 5.3+
Database changes No
  • $cegIP
  • $cegScriptPath
  • $cegEnableComment
  • $cegEnableCommentFor
  • $cegEnableRatingForArticles
  • $cegEnableFullDeletion
  • $cegShowCommentsExpanded
  • $cegEnableFileAttachments
  • $cegUseRMUploadFunc
  • $cegDefaultDelimiter
Licence GNU GENERAL PUBLIC LICENSE, Version 2, June 1991
Download
README
Example www.bestpracticeswiki.net
Translate the SemanticComments extension if it is available at translatewiki.net

SemanticComments is an extension that 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

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

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

Languages

SemanticComments has support for three languages so far:

  • English
  • German
  • French

Wishlist

  • 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
  • Provide ability to display user pictures instead of standard user icon

See also

[[Category:Discussion and forum extensionsTemplate:Translation]] [[Category:Semantic MediaWiki extensionsTemplate:Translation]]