Jump to content

Module:Import style

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Tol (talk | contribs) at 01:50, 23 November 2021 (fix loop). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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