Module:Set CSV: Difference between revisions
Jump to navigation
Jump to search
illerai>Joeytje50 m crucial missing part lol |
m 1 revision imported |
||
(No difference)
|
Latest revision as of 22:27, 2 November 2024
Module documentation
This documentation is transcluded from Module:Set CSV/doc. [edit] [history] [purge]
Converts a CSV for each named parameter to a list of values to set for the property name corresponding to that parameter.
local p = {}
function p.main(frame)
return p._main( frame:getParent().args )
end
function p._main(args)
local set = {}
for prop, val in pairs(args) do
set[prop] = mw.text.split(val, "%s*,%s*")
end
mw.smw.set(set)
end
return p