第68行:
第68行:
end
end
−
local x = ""
for i, prop in ipairs(properties) do
for i, prop in ipairs(properties) do
local title = frame.args[prop.."_title"]
local title = frame.args[prop.."_title"]
第80行:
第79行:
final_values = _merge_keys(final_values, reversed_values)
final_values = _merge_keys(final_values, reversed_values)
end
end
−
x = x.. mw.dumpObject(final_values)
+
+
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
end
−
return x
−
end
−
-- local final_list = ListUtils.set_to_list(final_values)
+
if children_title then
−
-- _create_list(root, title, final_list)
+
local children = p.query_by_reference(name, parent_property)
−
-- for i, k in ipairs(final_list) do
+
local children_list = ListUtils.set_to_list(children)
−
-- mw.smw.set({[prop]=k})
+
_create_list(root, children_title, children_list)
−
-- end
+
end
−
-- end
−
-- if children_title then
+
return root:done()
−
-- local children = p.query_by_reference(name, parent_property)
+
end
−
-- local children_list = ListUtils.set_to_list(children)
−
-- _create_list(root, children_title, children_list)
−
-- end
−
−
-- return root:done()
−
-- end
return p
return p