* Added beginnings of WatchlistTicker extension. Works for most cases only,
authorLeon Weber <leon@users.mediawiki.org>
Mon, 30 Apr 2007 22:29:56 +0000 (22:29 +0000)
committerLeon Weber <leon@users.mediawiki.org>
Mon, 30 Apr 2007 22:29:56 +0000 (22:29 +0000)
  not yet documented, no i18n, not cleaned up; do not use.
* Therefore added 'MonoBookTemplateAboveColumnContent' hook.

RELEASE-NOTES
docs/hooks.txt
skins/MonoBook.php

index befce49..e2ed758 100644 (file)
@@ -129,6 +129,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   better localization.  Change is reverse-compatible and can be ignored for
   most wikis.
 * Adding a 'reason' field to Special:Userrights
+* Added 'MonoBookTemplateAboveColumnContent' hook; see docs/hooks.txt for more information
 
 == Bugfixes since 1.9 ==
 
index 9f5d289..5e81eae 100644 (file)
@@ -48,7 +48,7 @@ would handle this as follows (note: not real code, here):
        
        # code to actually show the article goes here
     }
-    
+
 An extension writer, or a local admin, will often add custom code to
 the function -- with or without a global variable. For example,
 someone wanting email notification when an article is shown may add:
@@ -431,6 +431,10 @@ $mathRenderer: instance of MathRenderer
 $errmsg: error message, in HTML (string). Nonempty indicates failure
  of rendering the formula
 
+'MonoBookTemplateAboveColumnContent': Monobook output, above div#column-content. Any string
+you echo here will be printed above the div#column-content element on every page.
+$outObj: instance of the output class
+
 'OutputPageBeforeHTML': a page has been processed by the parser and
 the resulting HTML is about to be displayed.  
 $parserOutput: the parserOutput (object) that corresponds to the page 
index 50d7f00..a8a829b 100644 (file)
@@ -95,6 +95,11 @@ class MonoBookTemplate extends QuickTemplate {
 <?php if($this->data['body_onload'    ]) { ?>onload="<?php     $this->text('body_onload')     ?>"<?php } ?>
  class="mediawiki <?php $this->text('nsclass') ?> <?php $this->text('dir') ?> <?php $this->text('pageclass') ?>">
        <div id="globalWrapper">
+<?php
+               // this is meant to be above div#column-content
+               wfRunHooks( 'MonoBookTemplateAboveColumnContent', array( &$this ) );
+
+?>
                <div id="column-content">
        <div id="content">
                <a name="top" id="top"></a>