Extension:TransformChanges

From MediaWiki.org

Jump to: navigation, search

         

Manual on MediaWiki Extensions
List of MediaWiki Extensions
Crystal Clear action run.png
TransformChanges

Release status: stable

Implementation  User activity, Special page
Description Makes recent-changes and watchlists render in nice columns for easier reading, see this example.
Author(s)  User:Nad
Last Version  1.1.7 (2009-09-05)
MediaWiki  1.9.0+
License GPL
Download TransformChanges.php

check usage (experimental)

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.

Contents

[edit] Installation

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

[edit] CSS Styles

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; }

[edit] Change log

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

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

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

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

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

  • Works for all recent versions now

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

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

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

  • Disable enhanced recent changes

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

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

  • Made it work properly in any language

[edit] See also