Hi,
You may try to accomplish this feature using the ArticleComments and HeaderFooter extension
Best Regards Stephane ancelot
Le Fri, 05 Sep 2008 23:37:17 +0200, Jack D. Pond jack.pond@psitex.com a écrit:
Actually, the mechanics would be pretty simple. Determining when you want to do this (on a local or wiki-wide basis) could be a real issue.
I'll look for a better way, but as a temporary measure, you can get this (globally) by patching includes/Article.php in function replaceSection():
Index: Article.php
--- Article.php (revision 40244) +++ Article.php (working copy) @@ -1259,7 +1259,7 @@ # Inserting a new section $subject = $summary ? wfMsgForContent('newsectionheaderdefaultlevel',$summary) . "\n\n" : ''; $text = strlen( trim( $oldtext ) ) > 0
? "{$oldtext}\n\n{$subject}{$text}"
} else {? "{$subject}{$text}\n\n{$oldtext}" : "{$subject}{$text}";
# Replacing an existing section; roll out the big guns
Robert Leverington lcarsdata at googlemail.com Wed Jun 13 19:26:44 UTC 2007
Previous message: [Mediawiki-l] discussion page + tab Next message: [Mediawiki-l] dumpHTML.php Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Well, that would completely muck up any text at the top and also how would you decide where it gets cut off (a new magic word maybe).
On 13/06/07, Frederik Dohr <fdg001 at gmx.net> wrote:
There is currently no option to do this. This would also be pretty difficult to implement as it would require completely changing how the current commenting system works.
Really? I've thought about this too, as it would be very useful. I don't know much about the MW code, so I thought it should be as easy as changing $pageContents = $pageContents + $newComment; to $pageContents = $newComment + $pageContents; (that's pseudo-code, obviously)
Guess I was a bit naive then...
-- F.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l