Changes

Jump to navigation Jump to search
no edit summary
Line 1: Line 1:  
// taken from https://www.wikidata.org/wiki/User:MichaelSchoenitzer/quickpresets.js
 
// taken from https://www.wikidata.org/wiki/User:MichaelSchoenitzer/quickpresets.js
 +
// non exhaustive list of modifications:
 +
// P31 and P(subclass) ---> P3 and P4  (see #P31, pid == 3)
 +
// wd, wdt --> pdio, pdiot
 +
// importScript and importStyleSheet replaced
 +
//
 +
 
mw.notify("Launching User:Podehaye/quickpresets.js")
 
mw.notify("Launching User:Podehaye/quickpresets.js")
importStylesheet( 'MediaWiki:quickpresets.css' );
+
mw.loader.load( '/w/index.php?title=MediaWiki:quickpresets.css&action=raw&ctype=text/css', 'text/css' );
 
mw.notify("Launching User:Podehaye/quickpresets.js")
 
mw.notify("Launching User:Podehaye/quickpresets.js")
   Line 126: Line 132:  
     quickpresets_addclaim(claim,  "<p>Added "+pname+" "+toname+"</p>");
 
     quickpresets_addclaim(claim,  "<p>Added "+pname+" "+toname+"</p>");
 
     // Check if we now support it with another element of the config
 
     // Check if we now support it with another element of the config
     if(pid == 3) { // MODIFIED LINE
+
     if(pid == 3) {
 
$('#quickpresets').remove();
 
$('#quickpresets').remove();
 
for( var t = 0; t<quick_props.length; t++) {
 
for( var t = 0; t<quick_props.length; t++) {

Navigation menu