[Wikidata-l] Wikidata country data in a Wikipedia Lua template?

2013-06-04 Thread Quim Gil

Hi, I asked this question at

http://www.wikidata.org/wiki/Help_talk:Lua

but I'm asking here again just in case.

In my own free time, I'm trying to reimplement w:Template:Flagicon on 
Lua just for the fun of it - see the small announcement.


http://en.wikipedia.org/wiki/Wikipedia_talk:WikiProject_Flag_Template#Template:FlagiconLua_started

There is a table where images of flags in Commons are identified with 
the article of their territory in the project where the module is hosted:


http://en.wikipedia.org/wiki/Module:Sandbox/QuimGil/FlagTranslations

Could Wikidata help here?

For instance at http://www.wikidata.org/wiki/Q228 we have all the ISO 
codes related to "Andorra", the flag image and the translations in all 
Wikimedia projects. It would be amazing if this data could be leveraged. 
Maybe not for each template query (that could be expensive) but at least 
to populate and maintain those local tables automatically. The master 
table would be the only one maintained manually and all it would do is 
to state that "Andorra" = Q228, "Berlin" = Q64...


Even that master table could be highly automated one day because we do 
have the ISO 3166 entries etc in Wikidata... but let's go step by step.  :)


--
Quim Gil
Technical Contributor Coordinator @ Wikimedia Foundation
http://www.mediawiki.org/wiki/User:Qgil

___
Wikidata-l mailing list
Wikidata-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-l


Re: [Wikidata-l] Wikidata country data in a Wikipedia Lua template?

2013-06-05 Thread Luca Martinelli
2013/6/4 Quim Gil :
[...]
> In my own free time, I'm trying to reimplement w:Template:Flagicon on Lua
> just for the fun of it - see the small announcement.
>
> http://en.wikipedia.org/wiki/Wikipedia_talk:WikiProject_Flag_Template#Template:FlagiconLua_started
[...]

I left you a message on en.wp. I think we can help you in setting up
the tables for /many/ countries. ;)

-- 
Luca "Sannita" Martinelli
http://it.wikipedia.org/wiki/Utente:Sannita

___
Wikidata-l mailing list
Wikidata-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-l


Re: [Wikidata-l] Wikidata country data in a Wikipedia Lua template?

2013-06-05 Thread Quim Gil

On 06/05/2013 02:25 AM, Luca Martinelli wrote:

2013/6/4 Quim Gil :
[...]

In my own free time, I'm trying to reimplement w:Template:Flagicon on Lua
just for the fun of it - see the small announcement.

http://en.wikipedia.org/wiki/Wikipedia_talk:WikiProject_Flag_Template#Template:FlagiconLua_started

[...]

I left you a message on en.wp. I think we can help you in setting up
the tables for /many/ countries. ;)


That would be great! If someone works adding data then I can continue 
working on feature parity with Template:Flagicon.


But let's move this discussion to 
http://en.wikipedia.org/wiki/Template:FlagiconLua and the dependent modules.


And thank you Wikidata team for your answers at the wiki page and for 
pointing me to


Bug 47930 - allow accessing data from an item not connected to the 
current page

https://bugzilla.wikimedia.org/show_bug.cgi?id=47930

--
Quim Gil
Technical Contributor Coordinator @ Wikimedia Foundation
http://www.mediawiki.org/wiki/User:Qgil

___
Wikidata-l mailing list
Wikidata-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-l