So there's a user gadget which only works with en wiki because the template fields are hardcoded in:
https://en.wikipedia.org/wiki/User:Mvolz/veCiteFromURL
I made this approximately midway through the internship this summer so use with caution :).
Under development is work on the TemplateData extension to map the parameters in a given template to parameters from an external application[1]. This will allow TD to describe the relationship between the parameters produced by the citoid service, and the templates' parameters, in a "map".[2]
Also under development is a mediawiki extension.[3] This will use the data from the TemplateData "maps" as well as a special Mediawiki namespace message[4] to determine which template to use for each citoid data type.
So the answer is that this is being designed to work on any mediawiki installation in any language, by configuring it with a) a special Mediawiki namespace message, and b) a "map" in each template's TemplateData.
As for non-wiki sites, the idea is the service itself, citoid, would be useable any site. Right now it is heavily relying on Zotero[5] to do most of the work, but also has a back-up scraper if Zotero doesn't have a translator[6] available. We're also working on citoid to be able to take any identifier, not just URL, such as DOI or ISBN or PMID (or maybe one day title!)
Right now we have a special "mediawiki" format for citoid designed to be used in conjunction with the TemplateData extension, but export is also available in the native Zotero format[7], and we'll be adding other export formats (such as CSL) as well.
[1] https://gerrit.wikimedia.org/r/#/c/167389/ [2] https://www.mediawiki.org/wiki/User:Mvolz/Weekly_Reports/SampleTD [3] https://gerrit.wikimedia.org/r/#/c/168746/ [4] https://www.mediawiki.org/wiki/User:Mvolz/Weekly_Reports/MediaWiki:Citoid-te... [5] https://github.com/zotero/translation-server [6] https://github.com/zotero/translators [7] https://www.mediawiki.org/wiki/Citoid/API
-Marielle
On Wed, Oct 29, 2014 at 10:13 AM, Petr Kadlec petr.kadlec@gmail.com wrote:
On Mon, Oct 27, 2014 at 8:12 PM, Roan Kattouw rkattouw@wikimedia.org wrote:
To put that into perspective: she's working on a feature in VE that will let you paste in a URL to, say, a New York Times article, and will then automatically generate and insert a {{cite news}} template for you with all the right information (title of the article, author, date, etc.).
Interesting and useful project! I wonder – will this work only on enwiki, or will it work in other languages and for other news websites around the world?
-- [[cs:User:Mormegil | Petr Kadlec]] _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l