Extension:UserPageStyles
From MediaWiki.org
|
Release status: beta |
|||
|---|---|---|---|
| Implementation | MyWiki | ||
| Description | Allows users to create stylesheets for use on their userpages and subpages. | ||
| Author(s) | Jim R. Wilson (Jimbojw) | ||
| Last Version | 0.1 | ||
| MediaWiki | 1.6.x, 1.8.x, 1.9.x or higher | ||
| License | The MIT License | ||
| Download | UserPageStyles.php | ||
| Example | in use at Meopedia | ||
|
|||
|
check usage (experimental) |
|||
The Extension:UserPageStyles Extension gives users the ability to create custom stylesheets to display on their userpage and subpages thereof.
The way this differs from the built-in user-css functionality is that while vanilla MediaWiki allows you to edit the CSS that you see, UserPageStyles allows you to edit the CSS that everyone sees.
- Project Homepage
- UserPageStyles Extension - Jimbojw.com
- Source Code
- UserPageStyles.php
- Licensing
- UserPageStyles is released under The MIT License.
[edit] Installation
- Download UserPageStyles, and be sure to rename the downloaded file to UserPageStyles.php.
- Drop this script in $IP/extensions
- Note: $IP is your MediaWiki install dir.
- Enable the extension by adding this line to your LocalSettings.php:
require_once('extensions/UserPageStyles.php'); - Allow users to create custom CSS by adding this line to your LocalSettings.php:
$wgAllowUserCss = true;
[edit] Usage
To get started, simply edit:
User:Username/style.css
Where 'Username' is the name of your user. After saving, subsequent visits to your user page (or subpages) will show your custom styles.
Sysops are immune from user styles, and will not see them while logged in. This is to make administration easier (in case someone decided to remove the action buttons for example).