Difference between pages "Module:Item link" and "Module:Item link/sandbox"

(Difference between pages)
Jump to: navigation, search
Page 1
Page 2
(Unless specifying metadata_id or page, only query in main namespace to avoid potential conflicts.)
 
 
Line 82: Line 82:
 
'items.name = "%s" AND items._pageNamespace = %i',
 
'items.name = "%s" AND items._pageNamespace = %i',
 
tpl_args.item_name_exact,
 
tpl_args.item_name_exact,
cfg.primary_namespace
+
0
 
)
 
)
 
else
 
else
Line 91: Line 91:
 
'items__name_list._value="%s" AND items._pageNamespace = %i',
 
'items__name_list._value="%s" AND items._pageNamespace = %i',
 
tpl_args.item_name,
 
tpl_args.item_name,
cfg.primary_namespace
+
0
 
)
 
)
 
query.join = 'items._ID = items__name_list._rowID'
 
query.join = 'items._ID = items__name_list._rowID'