Tango.info wiki mediawiki: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 27: | Line 27: | ||
//defined in messagesEn.php | //defined in messagesEn.php | ||
//$defaultDateFormat = 'ISO 8601'; | //$defaultDateFormat = 'ISO 8601'; | ||
==wgCapitalLinks== | |||
* http://www.mediawiki.org/wiki/Manual:$wgCapitalLinks | |||
Has been set to false since the beginning of the wiki. As of 2013-06-12 pages are being moved to capital title, to allow to switch this to true. |
Revision as of 2013-06-12T14:49:27
Overview
This page documents some customization to the MediaWiki (MW) installation used by the tango.info wiki.
TOC
There is no TOC if there is no headline in the markup.
If there is one headline, then there is a TOC (MW default is having a TOC only for pages with at least 3(?) headlines) and the TOC is placed before any content (MW default is placing it directly before the first headline).
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';
wgCapitalLinks
Has been set to false since the beginning of the wiki. As of 2013-06-12 pages are being moved to capital title, to allow to switch this to true.