Jump to content

Module:User info 2024: Difference between revisions

From Wikipedia, the free encyclopedia
No edit summary
m RAdimer-WMF moved page Module:Babel from csv to Module:User info 2024: better name, since it can store all functions for that template if needed
(No difference)

Revision as of 20:34, 12 July 2024

-- Formats a Babel parser function call from a list of comma-separated language codes. 
-- Intent is to be used in [[Template:User info 2024]] to allow for a Babel parameter, which takes comma-separated values

local p = {}

function p.convert( frame )
	return frame:callParserFunction('#babel', mw.text.split(string.gsub(frame.args[1]," ",""),',',plain))
end

return p