If I understand correctly,
{{cite doi|10.1103/RevModPhys.69.865}}
essentially includes https://en.wikipedia.org/wiki/Template:Cite_doi/10.1103.2FRevModPhys.69.865 ; if that page does not exist, a bot will fill it (e.g. https://en.wikipedia.org/w/index.php?title=Template:Cite_doi/10.1103.2FRevMo... ).
As such, you could just edit pages with the prefix "Template:Cite_doi/". You'd just have to check for new pages there, and that should be easy to do with a database query.
Merlijn
On 13 June 2014 23:53, Maximilian Klein isalix@gmail.com wrote:
Hello All,
I'm working on the Open-Access Signalling Project[1], which aims to signal and badge when a reference in Wikipedia is Open Access source. I'm writing the bot at the moment to do this, and I'm encountering a question - how do I keep track of the values of the template {{Cite doi | doi=value}}, in as close to real-time as possible?
The most efficient approach I can come up with is to query the SQL servers on Labs in constant loop, returning the results of "What transcludes {{Cite doi}}" and seeing if the last_edited timestamp is newer than previous? If the last_edit is newer, then get the content of the page and see if the {{Cite_doi}} value has changed, checking against a local database.
This seems horribly inefficient still. Is there a hook to know when a template on a page has been edited, rather than having to check every time the page has been edited?
Thanks in advance,
Max Klein ‽ http://notconfusing.com/
[1]
https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Open_Access/Signalling_O... _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l