Extension:MobileSkin

What can this extension do?
This extension automatically detects mobile devices using values in HTTP_USER_AGENT (browser identity) and changes the skin used to display the requested page. If HTTP_USER_AGENT does not contain any known mobile indicators (e.g. "iphone", "smartphone", "blackberry", etc) the page will display with the user's default skin as defined in his or her preferences.

If a mobile device is detected the extension uses the skin selected for that device type. Device types include iPhone, Android, and other "mobile". Desktop or laptop devices use the user's preference.

This extension allows users to have one username that automatically changes skin when the user is using a different type of device. This does assume a skin has been created and set up for each device type.

Localization
This extension does not display any text to users or on the page; it simply changes the skin when displaying wiki pages based on the device. Thererefore, there is no 'MobileSkin.i18n.php' file to contain translations.

Usage
This extension operates without any additional tags or in-page instructions.

Download instructions
Please cut and paste the code found below and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php:

The example above assumes all mobile devices will use the plain 'chick' skin. If you create and install custom skins for the iPhone or Android phones, you can change the mapping to those skins.

User rights
This extension does not modify any user rights.