View source for Module:Comma separated entries
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local p = {}
local function _main( args )
local sep = mw.message.new( 'comma-separator' ):plain()
return table.concat( args, sep )
end
function p.main( frame )
local origArgs
if frame == mw.getCurrentFrame() then
-- We're being called via #invoke. If the invoking template passed any arguments,
-- use them. Otherwise, use the arguments that were passed into the template.
origArgs = frame:getParent().args
for k, v in pairs( frame.args ) do
origArgs = frame.args
break
end
else
-- We're being called from another module or from the debug console, so assume
-- the arguments are passed in directly.
origArgs = frame
000
1:0
Template used on this page:
Return to Module:Comma separated entries.