第43行:
第43行:
end
end
end
end
+
function _split_or_empty(value)
function _split_or_empty(value)
第78行:
第79行:
final_values = _merge_keys(final_values, reversed_values)
final_values = _merge_keys(final_values, reversed_values)
end
end
−
local final_list = ListUtils.set_to_list(final_values)
+
return mw.dumpObject(final_values)
−
_create_list(root, title, final_list)
−
for i, k in ipairs(final_list) do
−
mw.smw.set({[prop]=k})
−
end
end
end
+
end
+
+
-- local final_list = ListUtils.set_to_list(final_values)
+
-- _create_list(root, title, final_list)
+
-- for i, k in ipairs(final_list) do
+
-- mw.smw.set({[prop]=k})
+
-- end
+
-- end
−
if children_title then
+
-- if children_title then
−
local children = p.query_by_reference(name, parent_property)
+
-- local children = p.query_by_reference(name, parent_property)
−
local children_list = ListUtils.set_to_list(children)
+
-- local children_list = ListUtils.set_to_list(children)
−
_create_list(root, children_title, children_list)
+
-- _create_list(root, children_title, children_list)
−
end
+
-- end
−
return root:done()
+
-- return root:done()
−
end
+
-- end
return p
return p