Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
User:Abel/common.js
(view source)
Revision as of 18:04, 27 April 2019
15 bytes added
,
5 years ago
no edit summary
Line 5:
Line 5:
var wbEStruct = {
var wbEStruct = {
−
subclassOfRelations: 'claims.P4', // location of
P3
relations in wbEntity
+
subclassOfRelations: 'claims.P4', // location of
P4
relations in wbEntity
defaultValRelation: 'claims.P108',
defaultValRelation: 'claims.P108',
instanceOfRelations: 'claims.P3',
instanceOfRelations: 'claims.P3',
Line 54:
Line 54:
}
}
+
// ?
function getA( rel_A ){
function getA( rel_A ){
if ( typeof check(obj, wbEStruct[ rel_A ]) != "undefined" ) {
if ( typeof check(obj, wbEStruct[ rel_A ]) != "undefined" ) {
Line 60:
Line 61:
}
}
+
// ?
function checkAgetB ( rel_A, rel_B ) {
function checkAgetB ( rel_A, rel_B ) {
if ( typeof mw.config.values.wbEntity != "undefined" ) {
if ( typeof mw.config.values.wbEntity != "undefined" ) {
Line 76:
Line 78:
}
}
+
// ?
function iterAcheckBC ( rel_A, rel_B, rel_C, to_check ) {
function iterAcheckBC ( rel_A, rel_B, rel_C, to_check ) {
if ( typeof mw.config.values.wbEntity != "undefined" ) {
if ( typeof mw.config.values.wbEntity != "undefined" ) {
Podehaye
Bureaucrats
, editors,
Interface administrators
,
Ninjas
, nuke,
Administrators
,
Widget editors
15,627
edits
Navigation menu
Personal tools
English
Log in
Request account
Namespaces
User page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
New Item
New Property
All items
All properties
All pages
Active Users
SAR service dev
Query Service
Maintenance
Administrator
Tools
User contributions
Logs
View user groups
Special pages
Printable version
Interaction
Community portal
WebXray
Recent changes
Contact Page
Telegram
Discourse forum
MyData Slack