Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech

How to create the article from the context of the originating Wiki in another one?

 

 

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded


subscribe at divog

May 14, 2008, 2:25 PM

Post #1 of 5 (160 views)
Permalink
How to create the article from the context of the originating Wiki in another one?

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[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


wikitech-l at antispam

May 14, 2008, 2:28 PM

Post #2 of 5 (150 views)
Permalink
Re: How to create the article from the context of the originating Wiki in another one? [In reply to]

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[at]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[at]lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>



--
Sergey Chernyshev
http://www.sergeychernyshev.com/
_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


roan.kattouw at home

May 15, 2008, 5:15 AM

Post #3 of 5 (143 views)
Permalink
Re: How to create the article from the context of the originating Wiki in another one? [In reply to]

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[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


wikitech-l at antispam

May 15, 2008, 7:24 AM

Post #4 of 5 (143 views)
Permalink
Re: How to create the article from the context of the originating Wiki in another one? [In reply to]

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_0_1_2/PageObjectModel.php

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[at]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[at]lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>



--
Sergey Chernyshev
http://www.sergeychernyshev.com/
_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


roan.kattouw at home

May 15, 2008, 7:47 AM

Post #5 of 5 (143 views)
Permalink
Re: How to create the article from the context of the originating Wiki in another one? [In reply to]

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_0_1_2/PageObjectModel.php
>
> 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 mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.