User:Una tantum/vector.js
(Redirected from User:Patafisik/vector.js)
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/**
* Adds 'autofill' link to the references interface if a reference uses one of the following properties:
* - reference URL (P854)
* - PubMed ID (P698)
* - DOI (P356)
*
* The script can populate the following parts of a reference:
* - title
* - publication date
* - retrieved date
*
* Next todo:
* - support populating publication and other parts of the reference
* - improve detection of title language (as this is a monolingual snak, and we need to specify language)
* - i18n
*/
mw.loader.using(['wikibase'], function() {
$.getScript( 'https://www.wikidata.org/w/index.php?title=User:Aude/CiteTool.js&action=raw&ctype=text/javascript', function() {
var citeTool = new wb.CiteTool( 'https://www.wikidata.org/w/index.php?title=User:Aude/CiteProperties.json&action=raw&ctype=text/javascript' );
citeTool.init();
});
});