Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
MediaWiki:Gadget-QuickPresets.js
(view source)
Revision as of 22:28, 2 January 2020
3 bytes removed
,
4 years ago
no edit summary
Line 147:
Line 147:
*/
*/
function quickpresets_addstringstatement(qid, pid, pname, str) {
function quickpresets_addstringstatement(qid, pid, pname, str) {
+
mw.notify("adding str "+qid+" "+pid+" "+pname+" "+str)
var claim = {
var claim = {
id: (new wb.utilities.ClaimGuidGenerator("q" + qid)).newGuid(),
id: (new wb.utilities.ClaimGuidGenerator("q" + qid)).newGuid(),
Line 184:
Line 185:
if(typeqid === null) // the null prescription for when there is no "instance of"
if(typeqid === null) // the null prescription for when there is no "instance of"
{
{
−
mw.notify("exit 3")
quickpresets_addinterface(qid, prop);
quickpresets_addinterface(qid, prop);
}
}
}
}
else {
else {
−
mw.notify("exit 4")
if ( typeqid === 0 ) {
if ( typeqid === 0 ) {
// the 0 prescription, applicable to all items which are instance of something
// the 0 prescription, applicable to all items which are instance of something
Podehaye
Bureaucrats
, editors,
Interface administrators
,
Ninjas
, nuke,
Administrators
,
Widget editors
15,627
edits
Navigation menu
Personal tools
English
Log in
Request account
Namespaces
Message
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
Special pages
Printable version
Interaction
Community portal
WebXray
Recent changes
Contact Page
Telegram
Discourse forum
MyData Slack