View source for Module:Subobjecthelper
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local p = {}
function p.main(frame)
local args = frame.args
local subobj = {}
for k,v in pairs(args) do
if not (k == 'splitpoint' or k == 'subobjectname') then
v = v:gsub('[\r\n]', '')
subobj[k] = mw.text.split(v, args.splitpoint or '&split&')
end
end
if args.subobjectname then
mw.smw.subobject(subobj, args.subobjectname)
else
mw.smw.subobject(subobj)
end
end
return p
000
1:0
Template used on this page:
Return to Module:Subobjecthelper.