meteorpedia / meteorpedia-mediawiki

Adds some mediawiki features to meteorpedia, {{}}, [[]], categories, tables, links, etc.
GNU General Public License v3.0
17 stars 3 forks source link

import of mediawiki database dumps #1

Open guaka opened 11 years ago

guaka commented 11 years ago

At some point I might want to migrate some of my MediaWiki projects to meteorpedia. meteorpedia-mediawiki seems a good place to think about this.

Related: https://github.com/guaka/mediawikixml2meteor2phonegap Some of this code might be useful for MW import.

gadicc commented 11 years ago

Oh wow, I'm amazed at all the excitement around this! Thanks :)

I think anything production on Meteorpedia is a bit premature now, but I'm happy to answer the question.

In short, mediawikixml2meteor2phonegap makes this really really easy. You could do it in a few lines, running on the client... go to the wiki, login as a client, load the json output from mediawikixml2meteor2phonegap, loop over the rows, and then insert to the wiki with this method call:

  Meteor.call('edit', null, pageName, text, '', function(error, result) { console.log(error, result) };

text should be the original unparsed page wiki text from mediawiki.