Module:Wikitable: Difference between revisions

Content deleted Content added
convenience module for using wikitable markup inside templates
 
make quote removal optional
Line 3:
local args, buffer = require'Module:Arguments'.getArgs(frame, {removeBlanks=false,trim=false}), require'Module:Buffer''{|'
for k, v in pairs(args) do
if type(k) ~= 'number' then buffer:_(string.format(string.match(v, '^["\']') and ' %s=%s' or ' %s="%s"', k, v)) end
end
buffer:_'\n'