[Wikidata-bugs] [Maniphest] [Commented On] T191531: Create Lua module to expose local short descriptions of pages to Lua

2018-04-16 Thread RexxS
RexxS added a comment. I agree that caching would introduce predictable lag whenever a short description is changed, but I doubt that the descriptions are going going to be changed very often, if at all. If the worry is vandalism, then the caching is irrelevant. The vandalism is just as likely to

[Wikidata-bugs] [Maniphest] [Commented On] T191531: Create Lua module to expose local short descriptions of pages to Lua

2018-04-16 Thread TheDJ
TheDJ added a comment. API every time the page was reloaded But we have parser output caching, so that means that a page reload doesn't query the api every time (by design). So any change to the value would not be reflected in the HTML, until someone changes the page on commons.wp (or waits until

[Wikidata-bugs] [Maniphest] [Commented On] T191531: Create Lua module to expose local short descriptions of pages to Lua

2018-04-11 Thread RexxS
RexxS added a comment. We may be considering different things here. As I understood it, Mike's suggestion was to be able to display English short descriptions in a page on Commons. That would be what you're thinking of as "where it's used". If the code on the Commons page pulled the value of the sh

[Wikidata-bugs] [Maniphest] [Commented On] T191531: Create Lua module to expose local short descriptions of pages to Lua

2018-04-11 Thread TheDJ
TheDJ added a comment. The problem is not the reading. Its tracking where it is used and being able to inform those uses of any potential changes to the value. And since there is no change event bus between english wikipedia and Commons seems complex to me. (there is a reason we centralized thi

[Wikidata-bugs] [Maniphest] [Commented On] T191531: Create Lua module to expose local short descriptions of pages to Lua

2018-04-11 Thread RexxS
RexxS added a comment. It was Mike Peel who asked for the capability, not I, but the result is the same. I was under the impression that calling the API like this: https://en.wikipedia.org/w/api.php?action=""> was completely cross-wiki compatible. After all, it defines the language of the wiki,

[Wikidata-bugs] [Maniphest] [Commented On] T191531: Create Lua module to expose local short descriptions of pages to Lua

2018-04-11 Thread TheDJ
TheDJ added a comment. I'm reading this as wanting to have a Lua module so that on Commons you can retrieve the description of a english wikipedia page... ? I'm not sure if the new descriptions have the cross wiki capabilities of Wikidata... Remember that for cross wiki functionality, the change

[Wikidata-bugs] [Maniphest] [Commented On] T191531: Create Lua module to expose local short descriptions of pages to Lua

2018-04-11 Thread RexxS
RexxS added a comment. There have already been requests for short descriptions to be available within the text of a wiki-page, especially for Commons, where a page or category may be linked to an article on a Wikipedia. I can imagine the same functionality being of use in other projects as well. S