Extension:PageCSS

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual
Crystal Clear action run.png
PageCSS

Release status: stable

Implementation Tag
Description Parser hook to add per-page CSS using the <css> tag
Author(s) Ævar Arnfjörð Bjarmasontalk
Latest version r106136 (2011-12-14)
MediaWiki 1.12 (1.6 for the first version)
License GPL v2+
Download Template:WikimediaDownload/svn
Hooks used
ParserFirstCallInit

Translate the PageCSS extension if it is available at translatewiki.net

Check usage and version matrix; code metrics

The PageCSS 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>

Note that this extension does not work correctly with more recent versions of MediaWiki. An update, compatible with version 1.16.0 is linked to below.

See also[edit | edit source]

Language: English  • français