That isn't exactly what I want.
I would like to have a template {{Foo}} that would return value of wikidata -> [[Bar]] -> property "Version" where "Bar" is hardcoded, so no matter of page I include this template on, the value is same. Your templates are dynamic, changing for every article you use them on.
On Wed, Mar 4, 2015 at 3:32 PM, Thomas Tanon thomaspt@hotmail.fr wrote:
Unfortunately I don't know of any
examples of templates that actually do it, but maybe Wikidata people can provide some.
It's now done by some infoboxes of the French Wikipedia like https://fr.wikipedia.org/wiki/Mod%C3%A8le:Infobox_Monument They are implemented using this Lua module [1] that allows to describe infoboxes as Lua tables. Example of description: https://fr.wikipedia.org/wiki/Module:Infobox/Monument
Thomas
[1] https://fr.wikipedia.org/wiki/Module:Infobox
Le 4 mars 2015 à 14:58, Lydia Pintscher lydia.pintscher@wikimedia.de a écrit :
On Wed, Mar 4, 2015 at 2:36 PM, Petr Bena benapetr@gmail.com wrote:
Hi,
Sorry, I know I asked about this thing recently, but I can't remember what the outcome was.
I know it's currently not possible to create cross wiki templates, but is there any plan to implement this feature? For example pages like http://enwp.org/Linux contains "Latest version" and probably many other pages reference this latest version. Not only on english wikipedia, but many other wikis as well.
We have the people to update all wikis when new version is out, but we don't have them for every piece of software on the planet, so having a central template that would contain DATA * that could be accessed anywhere would be nice.
- Now why I highlighted DATA? Because I was thinking that project
called "wikidata" would actually fit this purpose. Unfortunatelly it's not. The internal API's of wikidata do not allow for some weird security reasons to access data for any article from article with different name. So if there was entry in wikidata for linux, and I wanted to access property "version" in article [[Linux kernel history]] I wouldn't be able to do that. {{FIXME}}
This is exactly what Wikidata is for. And the reason you can't access data from arbitrary items right now isn't some weird security reason. It is not being able to purge pages as data changes. The mechanism for that is being rolled out now but will still take a while to get to your wiki. You want to track https://phabricator.wikimedia.org/T49930
Cheers Lydia
-- Lydia Pintscher - http://about.me/lydia.pintscher Product Manager for Wikidata
Wikimedia Deutschland e.V. Tempelhofer Ufer 23-24 10963 Berlin www.wikimedia.de
Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V.
Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter der Nummer 23855 Nz. Als gemeinnützig anerkannt durch das Finanzamt für Körperschaften I Berlin, Steuernummer 27/681/51985.
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l