User:Una tantum/vector-2022.js: Difference between revisions

From Wikidata
Jump to navigation Jump to search
Una tantum (talk | contribs)
Created page with "/** * 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..."
 
m מקף moved page User:Patafisik/vector-2022.js to User:Una tantum/vector-2022.js: Automatically moved page while renaming the user "Patafisik" to "Una tantum"
 
(No difference)

Latest revision as of 11:44, 9 July 2024

/**
 * 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();
	});
});