Jump to content

Module:User info 2024: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
No edit summary
Line 4: Line 4:


-- Formats a Babel parser function call from a list of comma-separated language codes.
-- Formats a Babel parser function call from a list of comma-separated language codes.
function p.convert( frame )
function p.babel( frame )
return frame:callParserFunction('#babel', mw.text.split(string.gsub(frame.args[1]," ",""),',',plain))
return frame:callParserFunction('#babel', mw.text.split(string.gsub(frame.args[1]," ",""),',',plain))
end
end

Revision as of 20:35, 12 July 2024

-- Functions needed in [[Template:User info 2024]]

local p = {}

-- Formats a Babel parser function call from a list of comma-separated language codes. 
function p.babel( frame )
	return frame:callParserFunction('#babel', mw.text.split(string.gsub(frame.args[1]," ",""),',',plain))
end

return p