How to add comment guestbook forum to mediawiki (extension)


Jim R Wilson has made a wonderful extension for MediaWiki which is now using also. I've modified the extension a bit by improving its esthetic value. I've added a CSS and the comments structure is made more clear.


  • First of all, download the comment extension from Wilson at
  • Put it in your extensions directory
  • Go to the special page MediaWiki:Article-comments-new-comment
  • Edit the page with
<div class="comment">
  <div class="commenttop">
    <div class="username">$1</div>
    <div class="date">$4</div>
  <div class="commentpost">$2</div>

Also put the following CSS in your theme-CSS

div.comment {
	border: 1px solid silver;
	padding: 1px;
	margin-bottom: 16px;
div.commenttop {
	padding: 4px;
	background: #EEEEEE;
div.username {
	font: 11px verdana, arial, sans-serif;
	font-weight: bold;
	width: auto;
	float: left;
} {
	width: auto;
	text-align: right;
div.commentpost {
	padding: 4px;
	background: #F9F9F9;

I also removed the URL field by commenting it out by using this:

<comments showurlfield="false" />


Handige links

Reacties (0)

Geen resultaten gevonden