Hello,
I would like to ask for your advise on the solutions for the following issues.
I have two installations of Wiki for two different languages. It is absolutely independent Wikis (each has its own database, its directory of libraries, just like interwiki has).
Both of Wikis have the special page, which is used to create articles.
So, using this special page one can easily create an article in the Wiki, where this page is running (Article::newFromText, doEdit... and that's it). But how to create the article in the second Wiki?
To put in other words, all I want to do is to create the article from the context of the originating Wiki in another one. How can I do this in the best/correct way?
And as a follow-up, using wfLoadExtensionMessages I can load the messages for the current language, but can I load messages for the specific language? I.e. is there something like this: wfLoadExtensionMessages('plugin_name','language_code')?
Try checking out MediaWiki API - I believe trunk version already has some implementation for editing (older ones don't).
Sergey
On Wed, May 14, 2008 at 5:25 PM, Ден subscribe@divog.com.ru wrote:
Hello,
I would like to ask for your advise on the solutions for the following issues.
I have two installations of Wiki for two different languages. It is absolutely independent Wikis (each has its own database, its directory of libraries, just like interwiki has).
Both of Wikis have the special page, which is used to create articles.
So, using this special page one can easily create an article in the Wiki, where this page is running (Article::newFromText, doEdit... and that's it). But how to create the article in the second Wiki?
To put in other words, all I want to do is to create the article from the context of the originating Wiki in another one. How can I do this in the best/correct way?
And as a follow-up, using wfLoadExtensionMessages I can load the messages for the current language, but can I load messages for the specific language? I.e. is there something like this: wfLoadExtensionMessages('plugin_name','language_code')? _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Sergey Chernyshev schreef:
Try checking out MediaWiki API - I believe trunk version already has some implementation for editing (older ones don't).
Sergey
That's right. ApiEditPage is in SVN, but not in 1.12.
Roan Kattouw (Catrope)
Yeh, that's where I saw it - I'm writing some Page Object Model API calls for Ardorado.com (for now only for working directly with template parameters).
http://code.google.com/p/mediawiki-page-object-model/source/browse/tags/REL_...
Do they look reasonable good along the lines of API call implementations? I use 1.11.0 so some useful methods like dieUsageMsg are not available, but I'm hoping to upgrade to 1.12.x relatively soon.
Sergey
On Thu, May 15, 2008 at 8:15 AM, Roan Kattouw roan.kattouw@home.nl wrote:
Sergey Chernyshev schreef:
Try checking out MediaWiki API - I believe trunk version already has some implementation for editing (older ones don't).
Sergey
That's right. ApiEditPage is in SVN, but not in 1.12.
Roan Kattouw (Catrope)
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Sergey Chernyshev schreef:
Yeh, that's where I saw it - I'm writing some Page Object Model API calls for Ardorado.com (for now only for working directly with template parameters).
http://code.google.com/p/mediawiki-page-object-model/source/browse/tags/REL_...
Do they look reasonable good along the lines of API call implementations? I use 1.11.0 so some useful methods like dieUsageMsg are not available, but I'm hoping to upgrade to 1.12.x relatively soon.
Sergey
Looks reasonable. 1.13 will have action=edit in the API, you might want to wrap around that for convenience. Also, it's kind of unusual to use numbers as error codes (the rest of the API uses strings), but there's nothing really wrong with that.
Roan Kattouw (Catrope)
wikitech-l@lists.wikimedia.org