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

Reply via email to