×
Namespaces

Variants
Actions

FNWiki:Modifications

From Nokia Developer Wiki
Jump to: navigation, search

The configuration of MediaWiki used to run the has a number of settings changed from the default options. These are described below.


Contents

A custom logo for the top-left corner image is used in place of the default MediaWiki logo. The logo image is at /htdocs/S60Wiki/stylesheets/monobook/wiki.png. Take a copy of this and create a new logo image of the same size. Update the file.

Sidebar links

The MediaWiki:Sidebar have been modified from the original MediaWiki configuration, to remove the Donations and Current Events, which are not used, and to add links, like Contacts, Help on editing).

See http://meta.wikimedia.org/wiki/Layout_customization has information about editing the sidebar.

File links

File links (file://) have been enabled.

Add the following to LocalSettings.php. See $wgUrlProtocols in includes/DefaultSettings.php.

  $wgUrlProtocols = 'http:\/\/|https:\/\/|ftp:\/\/|irc:\/\/|gopher:\/\/|news:|mailto:|file:\/\/';

Subpages

Subpages have been enabled for all namespaces.

Subpages can be created by putting a slash (/) at the front of a link on a page, making it a subpage. A breadcrumb trail of links will be shown at the top of the subpages linking back to the parent page(s).

Add the following to LocalSettings.php. See $wgNamespacesWithSubpages in includes/DefaultSettings.php.

  1. Enable subpages in the main namespace

$wgNamespacesWithSubpages[NS_MAIN] = true;

Copyright settings

The copyright link and text settings have been changed to Nokia versions.

They have been changed in LocalSettings.php:

 $wgRightsUrl = "http://www.connecting.nokia.com/legal/";
 $wgRightsText = "Nokia Copyright";

System messages

Some system messages have been modified to fit with Nokia policies.

Changes

The MediaWiki:copyrightwarning is modified to:

Please note that all contributions to {{SITENAME}} are considered to be
released under Nokia Copyright (see $1 for details). If you don't want
your writing to be edited mercilessly and redistributed at will, then
don't submit it here.

Inter-wiki links

Inter-wiki links have been defined to simplify linking between S60 and MSW wikis.

Changes

See http://meta.wikimedia.org/wiki/Help:Guide_for_system_administrators_for_setting_up_interwiki_linking for information on inter-wiki linking.

Links should be configured such that [[s:<page name>]] will link to the S60 wiki, and [[m:<page name>]] will link to the MSW wiki.


Main Page customisation

  • __NOTOC__ __NOEDITSECTION__ words added to make it cleaner
  • Main page divided into 3 sections each implemented by separate template

RSS feed

  • Special:Wiki Feeds extension installed to support better RSS feeds for categories.
  • Added the following line into LocalSettings.php
    include_once('extensions/SpecialWikiFeeds.php'); 

Search related changes

  • MediaWiki:Nogomatch page edited to include feedback link when Search finds nothing
  • Minimum word length for indexing set to 3 (instead of 4) in mySQL database engine config $wgDBminWordLen). Many of the abbreviations, like API, RAM, required this.

Own templates created

Other extensions added

Non-image file extensions added

The types .doc, .ppt, .xls, and .ndl added to $wgFileExtensions to allow better integration to used tools.

SQL search query modified

The file includes\SearchMySQL4.php modified:

$searchon .= $terms[1] . $wgContLang->stripForSearch( $terms[2] );
# Following lines added.
if (count ($m) >= 1) {
   $searchon .= '*'; # Match to the beginning of each given term
}
...
This causes SQL query
MATCH AGAINST('+word1* +word2* +word3*')
etc instead of
MATCH AGAINST('+word1 +word2 +word3')
. Based on experience improves searches.