Hi,
is there a howto available for comfortably transferring an existing usemod-wiki (meaning its contents) to a newly installed mediawiki besides copying each single article manually and adjusting the links? About 1000 articles in question.
Very useful would be some function for influencing "usemod article name" -> "mediawiki article name", so an old article "NamingConventions" can be chosen to become "Naming Conventions" in mediawiki as well for the title as for the links themselves in any article they appear?
Philipp
Philipp wrote:
Hi,
is there a howto available for comfortably transferring an existing usemod-wiki (meaning its contents) to a newly installed mediawiki besides copying each single article manually and adjusting the links? About 1000 articles in question.
Very useful would be some function for influencing "usemod article name" -> "mediawiki article name", so an old article "NamingConventions" can be chosen to become "Naming Conventions" in mediawiki as well for the title as for the links themselves in any article they appear?
Philipp
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
I'm suprised that isnt in the documentation - Wikipedia moved from UseMod to MediaWiki a few years back itself!
Hello,
I'm suprised that isnt in the documentation -
So was I ...
Wikipedia moved from UseMod to MediaWiki a few years back itself!
... I spent a remarkable amount of time having this information in mind and thinking "there must be a writeup how they did it", but I found nothing, thus this question here.
Bye Philipp
On Nov 16, 2004, at 2:49 AM, Philipp wrote:
is there a howto available for comfortably transferring an existing usemod-wiki (meaning its contents) to a newly installed mediawiki besides copying each single article manually and adjusting the links? About 1000 articles in question.
AFAIK there's no documentation, but a UseMod->MediaWiki converter script is in the maintenance subdirectory of the distribution: importUseModWiki.php
Set the $wgRootDirectory at the top to the appropriate path to your UseMod page database, and run the script. It will output a bunch of SQL statements; save these to a file. Install a fresh MediaWiki, then import the generated SQL dump into MySQL.
Very useful would be some function for influencing "usemod article name" -> "mediawiki article name", so an old article "NamingConventions" can be chosen to become "Naming Conventions" in mediawiki as well for the title as for the links themselves in any article they appear?
You could probably hack the script to do that.
-- brion vibber (brion @ pobox.com)
Hello,
AFAIK there's no documentation, but a UseMod->MediaWiki converter script is in the maintenance subdirectory of the distribution: importUseModWiki.php
Ah, thank you. I'll continue research here.
You could probably hack the script to do that.
OK, plenty of space for experiments. :) Thank you again.
Bye Philipp
On Nov 16, 2004, at 10:51 PM, Philipp wrote:
You could probably hack the script to do that.
OK, plenty of space for experiments. :) Thank you again.
I've added conversion of /Subpage and CamelCase links (by saving a new revision with the brackets added). You could probably further hack that if you want renaming of actual pages.
The update is checked into CVS, and should appear shortly at: http://cvs.defau.lt/phase3/maintenance/importUseModWiki.php
-- brion vibber (brion @ pobox.com)
Brion Vibber <brion <at> pobox.com> writes:
I've added conversion of /Subpage and CamelCase links (by saving a new revision with the brackets added). You could probably further hack that if you want renaming of actual pages.
The update is checked into CVS, and should appear shortly at: http://cvs.defau.lt/phase3/maintenance/importUseModWiki.php
Tahanks a lot but I'm running into problems with this version: it just stops after getting the first lemma (are they called so in UseMod?). The only output is:
-- Checking page directory /home/cddoc/local/wiki/db/page/A
-- Importing page AufgabenEinesEinspielungsverantwortlichen
... and EOF there.
Running the old script with the same $wgRootDirectory still works (when hacked around iconv, but that was no problem here). :-?
Best regards Philipp
On Nov 18, 2004, at 11:14 PM, Philipp wrote:
Tahanks a lot but I'm running into problems with this version: it just stops after getting the first lemma (are they called so in UseMod?). The only output is:
-- Checking page directory /home/cddoc/local/wiki/db/page/A
-- Importing page AufgabenEinesEinspielungsverantwortlichen
... and EOF there.
Running the old script with the same $wgRootDirectory still works (when hacked around iconv, but that was no problem here). :-?
Remove the @ from the iconv call; I stuck it in because it was outputting non-fatal notice warnings which screwed up the SQL output where a page included an illegal character. However this might be hiding a fatal error if you don't have iconv support.
If you don't have iconv, replace the call with utf8_encode() (if your wiki was 8-bit latin-1) or take it out (if your wiki was utf-8).
-- brion vibber (brion @ pobox.com)
Brion Vibber <brion <at> pobox.com> writes:
Remove the <at> from the iconv call; I stuck it in because it was outputting non-fatal notice warnings which screwed up the SQL output where a page included an illegal character. However this might be hiding a fatal error if you don't have iconv support.
If you don't have iconv, replace the call with utf8_encode() (if your wiki was 8-bit latin-1) or take it out (if your wiki was utf-8).
Thanks, that helped. Now for the inevitable manual cleanup of exceptions. :)
Bye Philipp
wikitech-l@lists.wikimedia.org