User:Abel/experimental.js

From Wikibase Personal data
< User:Abel
Revision as of 23:45, 14 May 2019 by Abel (talk | contribs)
Jump to navigation Jump to search

Note: After saving, 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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
// 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'], 96 ],
						   personal_data_id: [ wbEStruct['subclassOfRelations'], 421 ],
						   interface_button_id: [ wbEStruct ['instanceOfRelations'], 487 ]
						};

mw.loader.load( '//wiki.personaldata.io/w/index.php?title=User:Abel/WbProcessor.js&action=raw&ctype=text/javascript' );