Hi again
I created the mediawiki:editpagenotice page which is there and can be quoted using {{MediaWiki:Editpagenotice}}. I wrote the extension and added the require_once() in LocalSettings.php. Here's the script:
PHP Code:
<?php
$wgExtensionCredits['other'][] = array(
'name' => 'EdipageInstructions',
'author' =>'Burkhard',
'url' => 'http://www.mwusers.com/forums/showthread.php?14326-Customizing-edit-and-preview-pages',
'description' => 'Display MediaWiki:editpagenotice on top of every edit/preview page'
);
$wgHooks['EditPage::showEditForm:initial'][] = 'fnEditInstructions';
function fnEditInstructions( &$editpage ) {
## $editpage->editFormPageTop .= wfMsgWikiHtml('editpagenotice');
$editpage->editFormPageTop .= wfMsg('editpagenotice');
## $editpage->editFormPageTop .= '<br>Test<br>';
return true;
}
?>
Comments removed for brevity. In Special:Version, I can see the extension and the hook used but I don't see the output on any edit page. None of the three above versions seem to work (although I frequently invalidate the cache with ctrl-shift-r (Firefox 3.5.8) or even logout/login. Writing editpagenotice with a capital E didn't help either.
What's wrong?
Bookmarks