Jump to content

Module:Import style: Difference between revisions

From Wikipedia, the free encyclopedia
fix loop
m Protected "Module:Import style": High-risk template or module: 11434 transclusions (more info) ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))
 
(No difference)

Latest revision as of 18:00, 23 November 2021

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