<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.hoodedhorse.com/ENDLESS_Legend_2/index.php?action=history&amp;feed=atom&amp;title=Module%3AUtils%2FTemplateStyles</id>
	<title>Module:Utils/TemplateStyles - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.hoodedhorse.com/ENDLESS_Legend_2/index.php?action=history&amp;feed=atom&amp;title=Module%3AUtils%2FTemplateStyles"/>
	<link rel="alternate" type="text/html" href="https://wiki.hoodedhorse.com/ENDLESS_Legend_2/index.php?title=Module:Utils/TemplateStyles&amp;action=history"/>
	<updated>2026-10-23T20:08:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.5</generator>
	<entry>
		<id>https://wiki.hoodedhorse.com/ENDLESS_Legend_2/index.php?title=Module:Utils/TemplateStyles&amp;diff=505&amp;oldid=prev</id>
		<title>76561198143239701: transcluded from el1 wiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoodedhorse.com/ENDLESS_Legend_2/index.php?title=Module:Utils/TemplateStyles&amp;diff=505&amp;oldid=prev"/>
		<updated>2026-08-01T04:15:57Z</updated>

		<summary type="html">&lt;p&gt;transcluded from el1 wiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local function import_css(src)&lt;br /&gt;
	return mw.getCurrentFrame():extensionTag(&lt;br /&gt;
		&amp;quot;templatestyles&amp;quot;,&lt;br /&gt;
		&amp;quot;&amp;quot;,&lt;br /&gt;
		{src = src}&lt;br /&gt;
	)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
local function render_with_styles(elt, ...)&lt;br /&gt;
	local srcs = {...} -- css files passed as arguments (varargs)&lt;br /&gt;
	local builder = mw.html.create()&lt;br /&gt;
	for _, src in ipairs(srcs) do&lt;br /&gt;
		builder:node(import_css(src)) -- import the css files&lt;br /&gt;
	end&lt;br /&gt;
	builder:node(elt) -- add the HTML output to be styled&lt;br /&gt;
	return builder&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
return {&lt;br /&gt;
	render_with_styles = render_with_styles&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>76561198143239701</name></author>
	</entry>
</feed>