Chris Thomas | 22 May 2013 17:37
Favicon

Wikimedia / Wikipedua Development Fruits

Hey, just wanted to share the fruits of some Mediawiki API work....

www.mapedia-uk.net

Try doing a search in the Historical types, such as British Prehistory or Roman Britain. Search for these in the UK and the locations you'll find there are Wikipedia articles that feature locations.

Still a WIP, with some teething problems in our system. But.. It does work :)

any feedback welcome,

Cheers 

Chris Thomas - Managing Director





_______________________________________________
Mediawiki-api mailing list
Mediawiki-api <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Liu Chenheng | 15 May 2013 04:47
Picon

Does anybody know what the meaning of rctype="external" in recent change list is

Hi, All,
Does anybody know what the meaning of rctype="external" in recent change list is. I saw a lot of this type of changes.

Thanks.
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Adrián Chaves Fernández | 10 May 2013 08:38
Picon
Gravatar

Checking whether Real Name is enabled or not in a MediaWiki site

Is it possible to check through the MediaWiki API (or another non-interactive way) whether real names are
enabled or not (http://www.mediawiki.org/wiki/Manual:$wgHiddenPrefs) in a MediaWiki site?

_______________________________________________
Mediawiki-api mailing list
Mediawiki-api <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Chux | 8 May 2013 03:33
Picon

Total number of pages in a namespace?

Hi,

I was wondering if there is a way to know how many pages are inside a namespace, for example how many pages are "Categories", or how many pages are "Articles"?

Thanks,
Chux
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Petr Onderka | 6 May 2013 18:10
Picon

Re: Fwd: first image of articles, sequential request

Petr Onderka
[[en:User:Svick]]


On Mon, May 6, 2013 at 5:41 PM, Luigi Assom <luigi.assom <at> gmail.com> wrote:
Hello,

I have another question on pageimages:

I can't get it work with list=search:


could you please help in understanding if i am doing wrong smtg?
also, is there any planned release of api 2.0 ?
What about the legacy and normalization of continue parameters?

thank you!




On Wed, May 1, 2013 at 10:46 AM, Max Semenik <maxsem.wiki <at> gmail.com> wrote:
On 29.04.2013, 22:26 Luigi wrote:

> Thank you Max!
> quick, neat and clear.

> Just a note: I'd see useful the possibility to re-size an image not
> only by largest dimension, but also by width (or height)
> so that one could have all img with same width/height, very yuseful
> for formatting on mobile handsets.

> Do you think it could be useful and would you consider to modify the code for this feature?

It will produce weird results for images with unusual dimensions: very
wide or very narrow. We use pithumbsize with good results for mobile.



--
Best regards,
  Max Semenik ([[User:MaxSem]])




--
Luigi Assom

Skype contact: oggigigi

_______________________________________________
Mediawiki-api mailing list
Mediawiki-api <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api


_______________________________________________
Mediawiki-api mailing list
Mediawiki-api <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Luigi Assom | 6 May 2013 17:41
Picon

Re: Fwd: first image of articles, sequential request

Hello,


I have another question on pageimages:

I can't get it work with list=search:


could you please help in understanding if i am doing wrong smtg?
also, is there any planned release of api 2.0 ?
What about the legacy and normalization of continue parameters?

thank you!




On Wed, May 1, 2013 at 10:46 AM, Max Semenik <maxsem.wiki <at> gmail.com> wrote:
On 29.04.2013, 22:26 Luigi wrote:

> Thank you Max!
> quick, neat and clear.

> Just a note: I'd see useful the possibility to re-size an image not
> only by largest dimension, but also by width (or height)
> so that one could have all img with same width/height, very yuseful
> for formatting on mobile handsets.

> Do you think it could be useful and would you consider to modify the code for this feature?

It will produce weird results for images with unusual dimensions: very
wide or very narrow. We use pithumbsize with good results for mobile.



--
Best regards,
  Max Semenik ([[User:MaxSem]])




--
Luigi Assom

Skype contact: oggigigi
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Chux | 3 May 2013 08:04
Picon

Filtering protected templates when listing templates associated to a page

Hi guys,


So in this scenario, I am able to get a list, but I noticed some of the listed templates here are marked as protected. I am not able to see any attribute in the results that shows this flag.

Any ideas on how can I filter those out?

Thanks,
Chux
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Brad Jorsch | 3 May 2013 02:09
Picon

[Mediawiki-api-announce] Echo breaks meta=userinfo&uiprop=hasmsg

If your bot checks meta=userinfo&uiprop=hasmsg to determine if a talk
page message has been posted in order to stop running, it is currently
broken since Echo disables that along with the orange bar.

This issue is being tracked at
https://bugzilla.wikimedia.org/show_bug.cgi?id=47962

--

-- 
Brad Jorsch
Software Engineer
Wikimedia Foundation

_______________________________________________
Mediawiki-api-announce mailing list
Mediawiki-api-announce <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Luigi Assom | 29 Apr 2013 00:44
Picon

styling and css or "neater" json? api?

Hi all!


I've been studing the api and had a look to the extensions, I have some questions about the proper way to style the html obtained of an article.

I am looking at the parse api.
I wonder if contentformat or contentmodel do the trick to obtain an article with a "cleaner" html or the matched css, so that it can be "re-styled".
Unfortunately, I have not been able to use this parameters:

Could you please give me an example so that i understand what do they do?

Alternatively, i could use mobileformat parameters, which seems to get an adapted and cleaner html.
But still, I would need to find out the scheme of Id and classes used in the html to re-style it.

Where could I find such scheme?

I also would like to get rid of the [edit] or [update] elements: I want the article in "read mode" only.

Is there maybe a parameters providing this output?

If someone of you ever saw the "Dictionary" application in a macbook (pointing at wikipedia) that is the style I am aiming to.

Am I going in the proper direction ?
Do you have any remark or suggestion ?
I was thinking to apply a css on obtained html, if there was a json output with just "bare" elements (such as table, images, paragraphs, links ext, links int, ) it would awesome...

As always, thank you very much for sharing ideas.


--
Luigi Assom

Skype contact: oggigigi
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Platonides | 28 Apr 2013 22:38
Picon

Re: first image of articles, sequential request

On 28/04/13 21:41, Luigi Assom wrote:
> Hi platonides!
> 
> thank you for following up:
> plz have a look to this simple query:
> http://en.wikipedia.org/w/api.php?action=query&prop=pageimages&titles=Albert%20Einstein&format=jsonfm&pithumbsize=100
> 
> as you can see, the height is set to 100, not width.
> Am I missing smtg?

Ok, after investigating it, it turns out that the code is checking that
none of them is bigger than pithumbsize. As Albert Einstein photo has a
portrait orientation, it apparently affects only the height. You can see
the opposite effect in an article with a landscape image, eg.
http://en.wikipedia.org/w/api.php?action=query&prop=pageimages&titles=New%20Jersey&format=jsonfm&pithumbsize=1000

_______________________________________________
Mediawiki-api mailing list
Mediawiki-api <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Platonides | 28 Apr 2013 20:55
Picon

Re: first image of articles, sequential request

On 28/04/13 00:23, Luigi Assom wrote:
> Also, in the documentation is written:
> pithumbsize -> refers to the width
> however, when i set it i got the height 
> do you get same results - i mean are you maybe aware it is just an
> oversight in the documentation?

We (mostly) use the width for thumbnailing. It's strange that it returns
the height. What's the query you're doing?

_______________________________________________
Mediawiki-api mailing list
Mediawiki-api <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Gmane