Difference between revisions of "User:Abel/common.js"
Jump to navigation
Jump to search
m |
m |
||
| Line 3: | Line 3: | ||
// because common.js is a specific thing in MediaWiki, and has now been activated. | // because common.js is a specific thing in MediaWiki, and has now been activated. | ||
console.log('+'); | console.log('+'); | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| + | function p3ofarg(checkobj, "id", "Q97"){ | ||
| + | for (var i = 0; i < checkobj.length; i++){ | ||
| + | if ( checkobj.claims.P3[i].mainsnak.datavalue.value[key] == value ) return true; | ||
| + | } | ||
| + | return false; | ||
} | } | ||
Revision as of 00:04, 20 April 2019
// Content previously here now moved to
// https://wiki.personaldata.io/wiki/User:Abel/experimental.js
// because common.js is a specific thing in MediaWiki, and has now been activated.
console.log('+');
function p3ofarg(checkobj, "id", "Q97"){
for (var i = 0; i < checkobj.length; i++){
if ( checkobj.claims.P3[i].mainsnak.datavalue.value[key] == value ) return true;
}
return false;
}