Exports a function that takes the name of a sanitized CSS page and returns a <templatestyles /> tag. For example, in Module:grc-decl/table, require("Module:TemplateStyles")("Template:grc-decl/style.css"). (See also the documentation for the TemplateStyles extension.)


local frame = mw.getCurrentFrame()
local args = {}

return function (stylesheet)
	args.src = stylesheet
	return frame:extensionTag("templatestyles", nil, args)
end