Extension:PageCSS

From MediaWiki.org

Jump to: navigation, search
Manual on MediaWiki Extensions
List of MediaWiki Extensions
Page CSS

Release status: stable

Implementation Tag
Description Parser hook to add per-page CSS using the <css> tag
Author(s) Ævar Arnfjörð Bjarmason
Version r24180 (2007-07-16)
MediaWiki 1.10 (maybe also before that)
Download svn:trunk/extensions/PageCSS/PageCSS.php

The Page CSS extension allows CSS styles to be defined on a wiki page. For example, to give a page a yellow background, you could use the following in the wiki text:

  <css>
      #bodyContent { background-color: yellow; }
  </css>

Or to hide the title of the page:

  <css>
      #firstHeading { display: none; }
  </css>

[edit] See also

Personal tools