Skin:Example

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
Deutsch • ‎English • ‎español • ‎polski • ‎български • ‎русский • ‎हिन्दी • ‎中文 • ‎日本語 • ‎한국어
MediaWiki skins manual - category
Crystal Clear device blockdevice.png
Example
Release status: beta
ExampleSkin.jpg
Description An example skin showcasing the best practices, a companion to the MediaWiki skinning guide.
Latest version 1.0 (2014-07-21)
MediaWiki 1.23+
License CC0 (public domain)
Download
Translate the Example skin if it is available at translatewiki.net
Check usage and version matrix;

This is an example skin showcasing the best practices, a companion to the MediaWiki skinning guide.

The code is released into public domain, which means you can freely copy it, modify and release as your own skin without providing attribution and with absolutely no restrictions. Remember to change the license information if you do not intend to provide your changes on the same terms.

You can browse the source code at https://phabricator.wikimedia.org/diffusion/SEXA/browse/.

See Manual:Skinning for information on creating skins.

Installation[edit]

  • Download and place the file(s) in a directory called Example in your skins/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
wfLoadSkin( 'Example' );
  • Yes 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( 'Example' );, you need to use:

require_once "$IP/skins/Example/Example.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.)