Extension:SkinCustomiser

The SkinCustomiser customises existing skins for a complete wiki family. It adds Scripts and Meta data just before the  tag of the wiki; and it translates individual entries in the sidebar.

Customising Skins
MediaWiki skins can be customised in the files,  ,  ,  ,  ,  , and   respectively. However, if a wiki farm is operated, it is impractical to set up and maintain these files in every wiki on that farm.

Instead, all these CSS instructions can be collected centrally in this extension and included globally in all wikis of the wiki farm.

Customising Sidebars
Customisation also includes further entries via the sidebar, which on the one hand are to be managed centrally in a wiki farm and on the other hand are also to be translated into other languages.

This can be done by entering these labels and their translations in the i18n files of this extension.

Configuration
Unlike the vast majority of extensions, this one cannot be used in its original state, but must first be adapted for a specific wiki farm.

Skins
MediaWiki skins can be customised in files,  ,  ,  ,  , and   respectively. However, if a wiki farm is operated, it is impractical to set up and maintain these files in each wiki of this farm.

If a different skin is used, the  file must be renamed accordingly and this change must also be made in the   file.  In the file tree:

 In the  file:

 In the  file:

 

Sidebar
A wiki farm can be customised in the sidebar. The customised labels and their translations can be managed in this way:

In addition, some standard messages from mediawiki can also be customised there.

Customising the  file:

For more details see: localisation file format

Head data
Disable with

Scheme
To configure the head data, add the following to "LocalSettings.php" after the installation line:

Meta data
Disable with

Scheme
To configure the head meta data, add the following to "LocalSettings.php" after the installation line:

Examples
Example (from Extension:AgeClassification):

Scripts
One or more head scripts can be added to the wiki. The head scripts can consist of any HTML and/or JavaScript.

Disable with

Scheme
To configure the head script, add the following to "LocalSettings.php" after the installation line:

Leave untouched the first and last line with START_END_MARKER stuff, this is a special syntax of PHP (without it, it would be tricky to deal with apostrophes inside the script). Do not add whitespaces around the last line’s marker, it would break it (more details about this syntax). Do add new line after.

To add additional scripts, simply include them between the markers:

You may specify a name for the script too if needed, add the following after the installation line:

Examples
Example (from Extension:Google Analytics Integration):

Bottom Display
$wgSkinCustomiserDisplayBottom adds items at the end of a page, at the bottom but still within the content frame.

Disable with