Phabricator project: #MediaWiki-skins-Modern
Skin:Modern
From MediaWiki.org
|
Modern Release status: stable |
|
|---|---|
| MediaWiki | no longer built in since 1.24+ |
| License | GPLv2+ |
| Download | |
| Example | https://en.wikipedia.org/w/index.php?useskin=modern |
|
Translate the Modern skin if it is available at translatewiki.net |
|
| Check usage and version matrix; code metrics | |
| Open tasks · Report a bug | |
Modern is one of the skins which was bundled with MediaWiki by default. It is derived from the monobook skin.
Installation[edit | edit source]
This skin is included in the MediaWiki download tarball. You only need to install it separately if you installed MediaWiki using a different method.
- Download and place the file(s) in a directory called
Modernin yourskins/folder. - Add the following code at the bottom of your LocalSettings.php:
wfLoadSkin( 'Modern' );
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( 'Modern' );, you need to use:
require_once "$IP/skins/Modern/Modern.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.)
| This skin is being used on one or more Wikimedia projects. This probably means that the skin is stable and works well enough to be used by such high-traffic websites. Look for this skin's name in Wikimedia's CommonSettings.php and InitialiseSettings.php configuration files to see where it's installed. A full list of the skins installed on a particular wiki can be seen on the wiki's Special:Version page. |