Tango.info wiki mediawiki: Difference between revisions

From tango.info wiki
Jump to navigation Jump to search
(note on Talk namespace)
Line 32: Line 32:
  //defined in messagesEn.php
  //defined in messagesEn.php
  //$defaultDateFormat = 'ISO 8601';
  //$defaultDateFormat = 'ISO 8601';
[[User:Tobiasco|Tobiasco]] ([[User talk:Tobiasco|talk]]) 21:42, 18 July 2013 (UTC)


==wgCapitalLinks==
==wgCapitalLinks==

Revision as of 2013-07-18T22:42:42

Overview

This page documents some customization to the MediaWiki (MW) installation used by the tango.info wiki.

The page Special:Version shows the installed mediawiki version and some extensions.

Upgrade

Information for upgrade can be found at tango.info wiki mediawiki upgrade.

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';

Tobiasco (talk) 21:42, 18 July 2013 (UTC)

wgCapitalLinks

Has been set to false since the beginning of the wiki.

On 2013-06-13 the setting has been removed and page titles in links are now in sentence case. One can now write in English orthography:

and both instances of "sentence case" link to "Sentence case".

Talk

The "Talk" name space is phased out.

Talk content is either:

  • integrated into the article page
  • moved to a new article page
  • deleted

Example: "Talk:Main Page" has been moved to Talk.