[Wiki Loves Monuments] Tool to add Coordinates

Vacio vacio at riseup.net
Sat Sep 14 18:51:43 UTC 2013


@Naveen, yes but you have to have administrative privileges in local 
Wikiproject. First, you need to make a JavaScript page with the title 
/MediaWiki:WLMcoord.js/ copying the source code of this page 
<https://hy.wikipedia.org/wiki/MediaWiki:WLMcoord.js> (there are things 
that need to be translated from Armenian... I can help you with this 
Monday..)

Then, you add the following script to the /MediaWiki:Common.js/ of your 
Wikiproject:

///Script allowing to add coordinates to list of monuments for WLM//
//if (mw.config.get('wgNamespaceNumber') === 0 && 
mw.config.get('wgPageName').search(/TITLEATTRIBUTE) > 0) //
//{//
//mw.loader.load('//hy.wikipedia.org/w/index.php?title=MediaWiki:WLMcoord.js&action=raw&ctype=text/javascript'); 
//
//}/

"TITLEATTRIBUTE" is a phrase in the title of the articles where the tool 
should be activated (without it the script would run on any article..). 
For instance, if you replace "TITLEATTRIBUTE" with "List of heritage 
in", the tool will only work in articles where the title contains the 
phrase "List of heritage in...".

You also need to replace "hy" with your local Wikipedia language code. 
Good luck (-:

@Aubrey, I would definitely prefer OSM over Google Maps, but in most 
cases you really need satellite images to correctly identify the 
location of a monument..

Vacio

On 09/14/13 07:28 , Naveen Francis wrote:
>
> Good tool !!!!
>
> Is it possible to enable in en wikipedia ?
>
> Indian monuments are poorly located
>
> --
> WLM India team
>
> On 14 Sep 2013 03:57, "Vacio" <vacio at riseup.net 
> <mailto:vacio at riseup.net>> wrote:
>
>
>     Hi guys,
>
>     In Armenian Wikipedia, we have now a tool which allows users to
>     add coordinates of a monument using Google-maps in a pop-up
>     window. See example below:
>
>
>
>     This might be useful if a lot of coordinates are missing from your
>     lists (like in our case). The JavaScript can be found here:
>     [[:hy:MediaWiki:WLMcoord.js]]
>     <https://hy.wikipedia.org/wiki/MediaWiki:WLMcoord.js>). It was
>     developed by [[u:HrantKhachatrian]].
>
>     If you want to integrate the tool to your local Wikipedia and/or
>     have any questions, let us know :)
>
>     Vacio
>
>     _______________________________________________
>     Wiki Loves Monuments mailing list
>     WikiLovesMonuments at lists.wikimedia.org
>     <mailto:WikiLovesMonuments at lists.wikimedia.org>
>     https://lists.wikimedia.org/mailman/listinfo/wikilovesmonuments
>     http://www.wikilovesmonuments.org
>
>
>
> _______________________________________________
> Wiki Loves Monuments mailing list
> WikiLovesMonuments at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikilovesmonuments
> http://www.wikilovesmonuments.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/wikilovesmonuments/attachments/20130914/7210d281/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 379174 bytes
Desc: not available
URL: <http://lists.wikimedia.org/pipermail/wikilovesmonuments/attachments/20130914/7210d281/attachment-0001.png>


More information about the WikiLovesMonuments mailing list