Module:Import style

This module implements Template:Import style, and allows it to be used with an unlimited number of parameters.



local p = {}

function p.main()
	out = ''
	for _, style in ipairs(mw.getCurrentFrame():getParent().args) do
		out = out .. mw.getCurrentFrame():extensionTag(
			'templatestyles',
			'',
			{
				src = 'Import style/' .. style .. '.css'
			}
		)
	end
	return out
end

return p