Module:TemplateStyles

From Wiktionary, the free dictionary
Archived revision by Erutuon (talk | contribs) as of 23:24, 10 November 2019.
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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