Module:Link: Difference between revisions

From SPCodex, The Smashing Pumpkins wiki
No edit summary
No edit summary
Line 6: Line 6:
return content
return content
end
end
return content


for _i, subject in ipairs({ 'Butch Vig', 'Billy Corgan' }) do
-- for _i, subject in ipairs({ 'Butch Vig', 'Billy Corgan' }) do
return subject
-- mw.ustring.gsub( content, subject, '[[:Category:Songs produced by ' .. subject .. '|' .. subject .. ']]' )
-- mw.ustring.gsub( content, subject, '[[:Category:Songs produced by ' .. subject .. '|' .. subject .. ']]' )
-- end
end


return content
-- return content
end
end


return str
return str

Revision as of 21:33, 17 April 2020

Documentation for this module may be created at Module:Link/doc

local str = {}

function str.producer( frame )
	local content = frame.args[1]
	if content == '' then
		return content
	end
	
	return content

	-- for _i, subject in ipairs({ 'Butch Vig', 'Billy Corgan' }) do
	-- 	mw.ustring.gsub( content, subject, '[[:Category:Songs produced by ' .. subject .. '|' .. subject .. ']]' )
	-- end

	-- return content
end

return str