Module:TemplateStyles

From Wiktionary, the free dictionary
Jump to navigation Jump to search

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.)


return function (CSS_page)
	return mw.getCurrentFrame():extensionTag{
		name = "templatestyles", args = { src = CSS_page }
	}
end