Line 26: |
Line 26: |
| }; | | }; |
| | | |
− | mw.loader.using( ['ext.gadget.WbProcessor', 'ext.gadget.PersonalDataBase', 'ext.gadget.PDOOUI'], function () { | + | mw.loader.load( '//wiki.personaldata.io/w/index.php?title=/w/User:Abel/WbProcessor.js&action=raw&ctype=text/javascript' ); |
− | console.log('Wbprocessor active');
| |
− | console.log('Personaldatabase active');
| |
− | console.log('User Interface active');
| |
− | | |
− | var wbproc = new wbContainer(mw, mwEStruct['wbXntity']),
| |
− | | |
− | // Check whether the current page is in a relation of interest to an id of interest
| |
− | current_entity = wbproc.checkentity( relational_id_list, [ wbEStruct['IDPropLoc'], wbEStruct['IDName'] ] );
| |
− | // This should return an object of relations and ids
| |
− | | |
− | console.log(current_entity);
| |
− | | |
− | // for each match, render the corresponding ui elements
| |
− | // current_entity.forEach(pdooui.render);
| |
− | | |
− | });
| |