Skin:Modern Skylight

From MediaWiki.org
Jump to: navigation, search
MediaWiki skins manual - category
Crystal Clear device blockdevice.png
Modern Skylight

Release status: stable

Skin Modern Skylight Screenshot.png
Description Modern skin for Mediawiki Engine
Author(s) Fenet-, cafeinlove
Latest version

v1.2 (2015-09-05)

MediaWiki 1.19+
License BSD
Download GitHub page releases
Example http://wiki-chan.net

Translate the Modern Skylight skin if it is available at translatewiki.net

Check usage and version matrix;

The Modern Skylight is modern-look skin which was originally designed for wiki called 'wiki-chan'. This skin is maintained on github page. If you get trouble, please let us know via issue tracker.

This skin uses Simple Search which is originally developed in Skin:Vector.

This skin is tested under MediaWiki version 1.25.1. You can use this skin at version 1.19.+, but it is not recommended.

Installation[edit]

  • Download and place the file(s) in a directory called ModernSkylight in your skins/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
wfLoadSkin( 'ModernSkylight' );
  • YesY Done - Navigate to Special:Version on your wiki to verify that the skin is successfully installed.

To users running MediaWiki 1.24 or earlier:

The instructions above describe the new way of installing skins using wfLoadSkin(), since MediaWiki 1.25. If you need to install this skin in earlier versions, instead of wfLoadSkin( 'ModernSkylight' );, you need to use:

require_once "$IP/skins/ModernSkylight/ModernSkylight.php";

(To run an skin on an earlier release, you may need to download the version of it tagged for that release from Special:SkinDistributor.)

Configuration[edit]

There are two hooks available, ModernSkylightNavigation and ModernSkylightUseRightSidebar.

You may configure top menu bar by editing the wiki message MediaWiki:ModernSkylightMenubar. Nomally it formed unordered list * Text | Link | Option. You can use two-level list to make dropdown menu, and use - to make separator. Option is one of these:

  • accesskey={key}: Set keyboard shortcut.
  • shortcut={key}: Show keyboard shortcut notice. It also set accesskey.
  • backlink=yes: Make backlink menu. This option ignores link.
  • admin=yes: Displays only to administrators.

You can combine several options using &. Here's an example of MediaWiki:ModernSkylightMenubar.

* Main Page | Main Page | accesskey=z
* Random | Special:Random | accesskey=x
* Tools | Special:SpecialPages
** Recent Changes | Special:RecentChanges | shortcut=r
** Watchlist | Special:Watchlist | shortcut=l
** -
** Active User | Special:ActiveUsers
** -
** What links here | | shortcut=b&backlink=yes
** User Merge | Special:UserMerge | admin=yes

Also, you may add footer by editing the wiki message MediaWiki:ModernSkylightFooter. Here's an example.

<div class="column">
    <div class="column-head">Title here</div>
    <div class="column-body">
        <div class="entry">
            [[Main page|Main link here]]
            <p>Description about your site</p>
        </div>
        <div class="entry">
            [[Page A|Another link here]]
            <p>Description about your site</p>
        </div>
    </div>
</div>

For more information, please check github page.