The "add image to article" functionality in the mobile view is such an awesome idea. I liked it so much I created a simple page suitable for viewing on a mobile device that highlights local articles that need an image:
It uses geonames' wikipedia api to figure out what articles are relevant to your current location, and then the Wikipedia API (currently just en) to determine if the article needs an image. In the process I noticed that some articles that lack images but don't have the handy "add image to article" button. For example:
https://en.m.wikipedia.org/wiki/Coastline_%28sculpture%29
Would it be difficult to add image upload support for articles like this?
//Ed
Ed Summers, 23/04/2013 10:32:
The "add image to article" functionality in the mobile view is such an awesome idea. I liked it so much I created a simple page suitable for viewing on a mobile device that highlights local articles that need an image:
http://inkdroid.org/ici/
Nice! More powerful (?) but less immediate, there's also https://toolserver.org/~magnus/wikishootme/index.html
Nemo
Nice! Do you use the Geonames lookup as well, or do you have some other way of identifying articles relevant for a particular location?
//Ed
On Tue, Apr 23, 2013 at 4:57 AM, Federico Leva (Nemo) nemowiki@gmail.com wrote:
Ed Summers, 23/04/2013 10:32:
The "add image to article" functionality in the mobile view is such an awesome idea. I liked it so much I created a simple page suitable for viewing on a mobile device that highlights local articles that need an image:
http://inkdroid.org/ici/Nice! More powerful (?) but less immediate, there's also https://toolserver.org/~magnus/wikishootme/index.html
Nemo
This is great! We need to continue improving how we detect which articles need a lead image - this is in the mobile web team's backlog of things to do.
In the beta version of the mobile site, we actually expose similar functionality (hopefully it will graduate to stable in the not-to-distant-future). If you opt in to the beta site (nav menu -> settings -> select beta), you will see a new item in the nav called 'Nearby'. This uses the GeoData extension ( http://www.mediawiki.org/wiki/Extension:GeoData) to find articles near your current location. You'll note that articles with a lead image are displayed with a thumbnail of that image in the nearby list - if they do not have an image, a camera icon is displayed again (with the intention of making it easy to identify nearby articles missing photos).
On Tue, Apr 23, 2013 at 2:06 AM, Ed Summers ehs@pobox.com wrote:
Nice! Do you use the Geonames lookup as well, or do you have some other way of identifying articles relevant for a particular location?
//Ed
On Tue, Apr 23, 2013 at 4:57 AM, Federico Leva (Nemo) nemowiki@gmail.com wrote:
Ed Summers, 23/04/2013 10:32:
The "add image to article" functionality in the mobile view is such an awesome idea. I liked it so much I created a simple page suitable for viewing on a mobile device that highlights local articles that need an image:
http://inkdroid.org/ici/Nice! More powerful (?) but less immediate, there's also https://toolserver.org/~magnus/wikishootme/index.html
Nemo
Mobile-l mailing list Mobile-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mobile-l
Hey Ed! Saw your link on Twitter - this is great stuff! The mobile team is thinking about similar things (see the nearby [1] feature) so it would be great to get your input / dev time if you are interested in helping out there. There's loads of things we could do with help on such as native maps apps integration to get directions and caching / article previewing.
In terms of your question regarding https://en.m.wikipedia.org/wiki/Coastline_%28sculpture%29 - currently the API doesn't provide a way to insert images into infoboxes. Uploading images by prepending them to the lead section is currently what we are doing as that is easy and we feared if we inserted them above an infobox this would require someone to move it into the infobox which might annoy existing editors. As a result the lead image upload button does not show on any articles which have infoboxes. It would be great to review this - maybe it wouldn't be such a bad thing? Does anyone fancy exploring whether such a thing could be made possibly with the api?
Out of interest were you aware of the GeoData extension? If so what made you decide to use geonames instead? Was it due to a nicer/more discoverable api experience. Would be great to improve the GeoData extension if necessary.
Keep up the wikipedia/geo mashing up :)
[1] https://en.m.wikipedia.org/wiki/Special:Nearby?mobileaction=beta
On Tue, Apr 23, 2013 at 10:22 AM, Arthur Richards arichards@wikimedia.org wrote:
This is great! We need to continue improving how we detect which articles need a lead image - this is in the mobile web team's backlog of things to do.
In the beta version of the mobile site, we actually expose similar functionality (hopefully it will graduate to stable in the not-to-distant-future). If you opt in to the beta site (nav menu -> settings -> select beta), you will see a new item in the nav called 'Nearby'. This uses the GeoData extension (http://www.mediawiki.org/wiki/Extension:GeoData) to find articles near your current location. You'll note that articles with a lead image are displayed with a thumbnail of that image in the nearby list
- if they do not have an image, a camera icon is displayed again (with the
intention of making it easy to identify nearby articles missing photos).
On Tue, Apr 23, 2013 at 2:06 AM, Ed Summers ehs@pobox.com wrote:
Nice! Do you use the Geonames lookup as well, or do you have some other way of identifying articles relevant for a particular location?
//Ed
On Tue, Apr 23, 2013 at 4:57 AM, Federico Leva (Nemo) nemowiki@gmail.com wrote:
Ed Summers, 23/04/2013 10:32:
The "add image to article" functionality in the mobile view is such an awesome idea. I liked it so much I created a simple page suitable for viewing on a mobile device that highlights local articles that need an image:
http://inkdroid.org/ici/Nice! More powerful (?) but less immediate, there's also https://toolserver.org/~magnus/wikishootme/index.html
Nemo
Mobile-l mailing list Mobile-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mobile-l
-- Arthur Richards Software Engineer, Mobile [[User:Awjrichards]] IRC: awjr +1-415-839-6885 x6687
Mobile-l mailing list Mobile-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mobile-l
On Tue, Apr 23, 2013 at 10:55 AM, Jon Robson jdlrobson@gmail.com wrote:
In terms of your question regarding https://en.m.wikipedia.org/wiki/Coastline_%28sculpture%29 - currently the API doesn't provide a way to insert images into infoboxes. Uploading images by prepending them to the lead section is currently what we are doing as that is easy and we feared if we inserted them above an infobox this would require someone to move it into the infobox which might annoy existing editors. As a result the lead image upload button does not show on any articles which have infoboxes. It would be great to review this - maybe it wouldn't be such a bad thing? Does anyone fancy exploring whether such a thing could be made possibly with the api?
Roughly speaking here's what I'd recommend:
* create some unofficial standard for labeling image placeholders in infobox templates (maybe a special template itself) * request the page over API *with* preprocessor XML tree (this separates out template invocations and parameters and a few other items) * navigate the XML node tree to find the infobox parameter with the placeholder * replace the placeholder with the image reference * collapse the XML tree to plain text (this reconstructs the original wikitext) * save over editing API
Alternately, the processing can be done on the server side through a dedicated POST action, which would make it faster by avoiding sending the entire article back and forth over the wire.
-- brion
On Tue, Apr 23, 2013 at 1:55 PM, Jon Robson jdlrobson@gmail.com wrote:
Out of interest were you aware of the GeoData extension? If so what made you decide to use geonames instead? Was it due to a nicer/more discoverable api experience. Would be great to improve the GeoData extension if necessary.
No I didn't know about GeoData extension when I was doing this! Using it instead of Geonames will simplify it quite a bit, and will hopefully mean better (more current) results -- so I will switch it over.
Keep up the wikipedia/geo mashing up :)
I did recently switch the experimental app over over to placing the articles on a map using leaflet.js:
//Ed
On Tue, Apr 23, 2013 at 1:55 PM, Jon Robson jdlrobson@gmail.com wrote:
Out of interest were you aware of the GeoData extension? If so what made you decide to use geonames instead? Was it due to a nicer/more discoverable api experience. Would be great to improve the GeoData extension if necessary.
I finally got around to updating ici (map of nearby Wikipedia articles) to use the GeoData extension rather than the separate Geonames service:
This was a nice change not only for accuracy/currency of information, but because it allowed me to display different markers for articles that need copy-editing and/or citations, as well as those that need images (which it displayed previously). Suggestions for different templates to recognize [2] and mark on the map are welcome, as are any other suggestions.
//Ed
[1] http://inkdroid.org/ici/ [2] https://github.com/edsu/ici/blob/master/js/app.coffee#L168
Awesome, Ed! This is really cool.
I really like the different icons for different needed actions - I know you had the 'needs a photo' icon previously, but I just noticed a 'citation needed' icon near me :)
On Wed, May 8, 2013 at 10:16 AM, Ed Summers ehs@pobox.com wrote:
On Tue, Apr 23, 2013 at 1:55 PM, Jon Robson jdlrobson@gmail.com wrote:
Out of interest were you aware of the GeoData extension? If so what made you decide to use geonames instead? Was it due to a nicer/more discoverable api experience. Would be great to improve the GeoData extension if necessary.
I finally got around to updating ici (map of nearby Wikipedia articles) to use the GeoData extension rather than the separate Geonames service:
http://inkdroid.org/ici/This was a nice change not only for accuracy/currency of information, but because it allowed me to display different markers for articles that need copy-editing and/or citations, as well as those that need images (which it displayed previously). Suggestions for different templates to recognize [2] and mark on the map are welcome, as are any other suggestions.
//Ed
[1] http://inkdroid.org/ici/ [2] https://github.com/edsu/ici/blob/master/js/app.coffee#L168
Cool, I'm glad that worked. If there are other article templates that I can detect and display different icons for on the map definitely let me know.
//Ed
On Wed, May 8, 2013 at 1:27 PM, Arthur Richards arichards@wikimedia.org wrote:
Awesome, Ed! This is really cool.
I really like the different icons for different needed actions - I know you had the 'needs a photo' icon previously, but I just noticed a 'citation needed' icon near me :)
On Wed, May 8, 2013 at 10:16 AM, Ed Summers ehs@pobox.com wrote:
On Tue, Apr 23, 2013 at 1:55 PM, Jon Robson jdlrobson@gmail.com wrote:
Out of interest were you aware of the GeoData extension? If so what made you decide to use geonames instead? Was it due to a nicer/more discoverable api experience. Would be great to improve the GeoData extension if necessary.
I finally got around to updating ici (map of nearby Wikipedia articles) to use the GeoData extension rather than the separate Geonames service:
http://inkdroid.org/ici/This was a nice change not only for accuracy/currency of information, but because it allowed me to display different markers for articles that need copy-editing and/or citations, as well as those that need images (which it displayed previously). Suggestions for different templates to recognize [2] and mark on the map are welcome, as are any other suggestions.
//Ed
[1] http://inkdroid.org/ici/ [2] https://github.com/edsu/ici/blob/master/js/app.coffee#L168
-- Arthur Richards Software Engineer, Mobile [[User:Awjrichards]] IRC: awjr +1-415-839-6885 x6687
Great stuff. Would be great to integrate this in some form to https://en.wikipedia.org/wiki/Special:GettingStarted ...
On Wed, May 8, 2013 at 10:35 AM, Ed Summers ehs@pobox.com wrote:
Cool, I'm glad that worked. If there are other article templates that I can detect and display different icons for on the map definitely let me know.
//Ed
On Wed, May 8, 2013 at 1:27 PM, Arthur Richards arichards@wikimedia.org wrote:
Awesome, Ed! This is really cool.
I really like the different icons for different needed actions - I know you had the 'needs a photo' icon previously, but I just noticed a 'citation needed' icon near me :)
On Wed, May 8, 2013 at 10:16 AM, Ed Summers ehs@pobox.com wrote:
On Tue, Apr 23, 2013 at 1:55 PM, Jon Robson jdlrobson@gmail.com wrote:
Out of interest were you aware of the GeoData extension? If so what made you decide to use geonames instead? Was it due to a nicer/more discoverable api experience. Would be great to improve the GeoData extension if necessary.
I finally got around to updating ici (map of nearby Wikipedia articles) to use the GeoData extension rather than the separate Geonames service:
http://inkdroid.org/ici/This was a nice change not only for accuracy/currency of information, but because it allowed me to display different markers for articles that need copy-editing and/or citations, as well as those that need images (which it displayed previously). Suggestions for different templates to recognize [2] and mark on the map are welcome, as are any other suggestions.
//Ed
[1] http://inkdroid.org/ici/ [2] https://github.com/edsu/ici/blob/master/js/app.coffee#L168
-- Arthur Richards Software Engineer, Mobile [[User:Awjrichards]] IRC: awjr +1-415-839-6885 x6687