Extension:TransformChanges

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.svg
TransformChanges

Release status:Extension status stable

ImplementationTemplate:Extension#type User activity, Special page
DescriptionTemplate:Extension#description Makes recent-changes and watchlists render in nice columns for easier reading, see this example.
Author(s)Template:Extension#username User:Nad
Latest versionTemplate:Extension#version 1.1.7 (2009-09-05)
MediaWikiTemplate:Extension#mediawiki 1.9.0+
LicenseTemplate:Extension#license GPL
Download TransformChanges.php

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

Check usage and version matrix.

I've found the format of the recent changes and watchlists to be difficult to read and generally unpleasent looking, so I've made a quick extension to reformat them from a bullet list into a table. It also adds CSS classes to the table, rows and columns for easy customisation of styles.

Note Note: The Enhanced recent changes user option is deactivated by this extension.

Installation[edit]

Save the code from OrganicDesign:Extension:TransformChanges.php into a file and include in your LocalSettings.php file as usual.

CSS Styles[edit]

To make it render properly some CSS styles should be added to your stylesheet (usually your MediaWiki:Common.css article), for example here's the styles that we've added on the Organic Design recent changes. See Manual:Interface/Stylesheets for more details about adding CSS rules to your wiki.

tr.mw-line-even          { background:white; }
tr.mw-line-odd           { background:#eee; }

table.changes            { border:none; width:100%; }
table.changes tr         { margin:0; padding:0; }
table.changes td         { margin:0; padding: 1px 4px 0 4px; vertical-align: top; }
table.changes td.heading { font-size: 110%; font-weight:bold; padding-top:10px; }
table.changes td.comment { width:100%; }

table.changes td.talk,
table.changes td.diff    { font-size: 90%; }

table.changes td.user,
table.changes td.talk,
table.changes td.diff,
table.changes td.info    { white-space: nowrap; }

Change log[edit]

Version 1.1.7 (2009-09-05)[edit]

  • Was failing to render log items properly in 1.15, fixed now

Version 1.1.5 (2009-03-24)[edit]

  • Was failing to render log items properly in 1.14, fixed now

Version 1.1.2 (2009-01-29)[edit]

  • Works for all recent versions now

Version 1.1.0 (2009-01-13)[edit]

  • Started support for MediaWiki 1.12+ (not quite working yet)

Version 1.0.7 (2007-09-08)[edit]

  • Disable enhanced recent changes

Version 1.0.4 (2007-05-20)[edit]

Version 1.0.3 (2007-05-17)[edit]

  • Made it work properly in any language

See also[edit]