Module:User info 2024: Difference between revisions
Appearance
Content deleted Content added
Undo revision 27107923 by RAdimer-WMF (talk) |
No edit summary |
||
Line 5: | Line 5: | ||
function p.convert( frame ) |
function p.convert( frame ) |
||
return frame:callParserFunction('#babel', mw.text.split(frame.args[1],',',plain)) |
|||
return "{{#babel:" .. output .. "}}" |
|||
end |
|||
function p.pass( frame ) |
|||
return frame.args[1] |
|||
end |
end |
||
Revision as of 20:29, 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(frame.args[1],',',plain))
end
return p