Difference between revisions of "Module:Element List"
Jump to navigation
Jump to search
(attempting to fix navbox) |
m (extra padding on space characters) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
function p.main( | function p.main(frame) | ||
local args = . | local args = frame.args | ||
local sep = | local argsc = {} | ||
for i, v in pairs(args) do | |||
return table.concat( | if v~="" then argsc[i] = v end | ||
end | |||
local sep = argsc["s"] | |||
argsc["s"] = nil | |||
return table.concat(argsc," " .. sep .. " ") | |||
end | end | ||
return p | return p |
Latest revision as of 08:10, 16 June 2021
Documentation for this module may be created at Module:Element List/doc
local p = {} function p.main(frame) local args = frame.args local argsc = {} for i, v in pairs(args) do if v~="" then argsc[i] = v end end local sep = argsc["s"] argsc["s"] = nil return table.concat(argsc," " .. sep .. " ") end return p