I have a modified skin to integrate my wiki with my site. It's a little complex because it integrates a Mac wisiwig tool (RapidWeaver) with Mediawiki.
The skin I created based on Monobook and so bits of monobook end up in my RapidWeaver site.
Now I've just noticed that the latest version of monobook has changed subtly in one bit:
<?php if($this->data['catlinks']) { ?><div id="catlinks"><?php $this->html('catlinks') ?></div><?php } ?>
has become:
<?php if($this->data['catlinks']) { $this->html('catlinks'); } ?>
Note the div id="catlinks" is now (obviously) provided by $this->html('catlinks'). I only found this because I validated my page and found an error.
I was wondering if there is a recognized way for people who mod skins to keep up to date or if this kind of thing is just a right royal pain in the ass?
GD
The Gadget Doctor wrote:
I was wondering if there is a recognized way for people who mod skins to keep up to date or if this kind of thing is just a right royal pain in the ass?
This information is readily available from the version control system. MediaWiki uses Subversion. For example, the command to see the differences between 1.12 and 1.13 MonoBook.php is (bash syntax):
svn diff http://svn.wikimedia.org/svnroot/mediawiki/tags/%7BREL1_12_0,REL1_13_0%7D/ph...
If you are using Subversion to manage your code, you can import these changes directly into your skin (if it hadn't diverged much), by changing 'diff' to 'merge', and adding your skin file name to the end of the command.
You can also save the output from 'svn diff' into a file and apply with the 'patch' command.
In both cases, conflicts may happen and you may need to manually fix them.
mediawiki-l@lists.wikimedia.org