Extension:CSS
From MediaWiki.org
|
CSS Release status: stable |
|
|---|---|
| Implementation | Parser functions |
| Description | A parser-function for adding CSS's to articles |
| Author(s) | User:Nad |
| Version | 1.0.2 (2007-12-31) |
| MediaWiki | 1.6.x and above |
| Download | Extension:CSS.php |
This extension allows CSS stylesheets defined in articles to be included from other pages in a similar way that the MediaWiki:Monobook.css article is added. OrganicDesign:CSS example is an example page using the extension.
Contents |
[edit] Usage
For example, if you have a CSS article called "MyStyles.css", which are the styles intended for use with the article "MyFancyUserPage", you would add the following parser-function syntax to the latter,
{{#css:MyStyles.css}}
[edit] Installation
The extension is a single script which you can obtain from OrganicDesign:Extension:CSS.php and save into your extensions directory and include in your LocalSettings.php file as in the following example,
include("$IP/extensions/CSS.php");
[edit] Bugs
See talk page
[edit] See also
- OrganicDesign:CSS example - a usage example of this extension
- Extension:PageCSS - on-page CSS styles
- Extension:AddScriptCss - a similar extension which allows stylesheets to be added from file

