How to add comment guestbook forum to mediawiki (extension)
Inleiding
Jim R Wilson has made a wonderful extension for MediaWiki which LeerWiki.nl 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.
Stappen
- First of all, download the comment extension from Wilson at MediaWiki.org
- 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>
<div class="commentpost">$2</div>
</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;
}
div.date {
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" />
Tips
Handige links