Tango.info wiki mediawiki: Difference between revisions

From tango.info wiki
Jump to navigation Jump to search
No edit summary
Line 13: Line 13:
</pre>
</pre>


==Date format==
==Date and time format==
  ???
  ???
  //defined in messagesEn.php
  //defined in messagesEn.php
  //$defaultDateFormat = 'ISO 8601';
  //$defaultDateFormat = 'ISO 8601';

Revision as of 2013-04-07T14:46:45

TOC on every page

In LocalSettings.php

$wgHooks['InternalParseBeforeLinks'][] = 'ForceTocOnEveryPage_renderForceToc';
 
function ForceTocOnEveryPage_renderForceToc( &$parser, &$text ) {
        global $mediaWiki;
        if( !isset($mediaWiki) ) return true;
        if( $parser->getTitle()->getNamespace() != 0 ) return true;
        $text = "__TOC__\n".$text;
        return true;
}

Date and time format

???
//defined in messagesEn.php
//$defaultDateFormat = 'ISO 8601';