Module:Import style

From MOASSpedia
Revision as of 14:00, 23 November 2021 by Wikipedia>MusikBot II (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)))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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