Difference between revisions of "User:Abel/experimental.js"
Jump to navigation
Jump to search
m |
m |
||
Line 25: | Line 25: | ||
}; | }; | ||
− | mw.loader. | + | mw.loader.load( '//wiki.personaldata.io/w/index.php?title=User:Abel/WbProcessor.js&action=raw&ctype=text/javascript' ); |
− | + | mw.loader.load( '//wiki.personaldata.io/w/index.php?title=MediaWiki:Gadget-personaldata.js&action=raw&ctype=text/javascript' ); | |
− | + | mw.loader.load( '//wiki.personaldata.io/w/index.php?title=User:Abel/experimaintal.js&action=raw&ctype=text/javascript' ); | |
− | + | ||
console.log('test'); | console.log('test'); |
Revision as of 20:34, 18 May 2019
// License: GPL
// Experimental Main
console.log("'⌣'");
var mwEStruct = {
wbXntity: 'config.values.wbEntity'
},
language = "en",
wbEStruct = {
subclassOfRelations: 'claims.P4', // location of P4 relations in wbEntity
defaultValRelation: 'claims.P108',
concernsRelation: 'claims.P110',
instanceOfRelations: 'claims.P3',
IDPropLoc: 'mainsnak.datavalue.value', // location of ID properties in related entity
IDName: 'numeric-id', // ID property name which checked
qIDPropName: 'id',
standardValue: 'labels' + '.' + language + '.' + 'value'
},
relational_id_list = {
controller_id: [ wbEStruct['instanceOfRelations'], wbEStruct['IDPropLoc'], wbEStruct['IDName'], 96 ],
personal_data_id: [ wbEStruct['subclassOfRelations'], wbEStruct['IDPropLoc'], wbEStruct['IDName'], 421 ],
interface_button_id: [ wbEStruct ['instanceOfRelations'], wbEStruct['IDPropLoc'], wbEStruct['IDName'], 487 ]
};
mw.loader.load( '//wiki.personaldata.io/w/index.php?title=User:Abel/WbProcessor.js&action=raw&ctype=text/javascript' );
mw.loader.load( '//wiki.personaldata.io/w/index.php?title=MediaWiki:Gadget-personaldata.js&action=raw&ctype=text/javascript' );
mw.loader.load( '//wiki.personaldata.io/w/index.php?title=User:Abel/experimaintal.js&action=raw&ctype=text/javascript' );
console.log('test');