<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.telosrealms.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AEquipment</id>
	<title>Module:Equipment - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.telosrealms.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AEquipment"/>
	<link rel="alternate" type="text/html" href="https://wiki.telosrealms.com/index.php?title=Module:Equipment&amp;action=history"/>
	<updated>2026-06-22T10:32:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.telosrealms.com/index.php?title=Module:Equipment&amp;diff=14232&amp;oldid=prev</id>
		<title>Willow: Auto-pull untiered items from category templates via Module:Equipment</title>
		<link rel="alternate" type="text/html" href="https://wiki.telosrealms.com/index.php?title=Module:Equipment&amp;diff=14232&amp;oldid=prev"/>
		<updated>2026-06-19T10:59:47Z</updated>

		<summary type="html">&lt;p&gt;Auto-pull untiered items from category templates via Module:Equipment&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
-- Renders every {{ItemInfobox}} block from a section of a category template,&lt;br /&gt;
-- so class pages stay 1:1 with the source templates automatically.&lt;br /&gt;
-- Usage: {{#invoke:Equipment|section|Swords/Weapons|Untiered}}&lt;br /&gt;
--        {{#invoke:Equipment|section|Untiered/Heavy/Armours|Helmets}}&lt;br /&gt;
function p.section(frame)&lt;br /&gt;
	local title = mw.text.trim(frame.args[1] or &amp;#039;&amp;#039;)&lt;br /&gt;
	local section = mw.text.trim(frame.args[2] or &amp;#039;&amp;#039;)&lt;br /&gt;
	if title == &amp;#039;&amp;#039; then return &amp;#039;&amp;#039; end&lt;br /&gt;
	local page = mw.title.new(&amp;#039;Template:&amp;#039; .. title)&lt;br /&gt;
	local content = page and page:getContent()&lt;br /&gt;
	if not content then return &amp;quot;&amp;#039;&amp;#039;No items.&amp;#039;&amp;#039;&amp;quot; end&lt;br /&gt;
	if section ~= &amp;#039;&amp;#039; then&lt;br /&gt;
		local s = content:find(&amp;#039;\n&amp;#039; .. section .. &amp;#039;%s*=&amp;#039;)&lt;br /&gt;
		if not s then return &amp;quot;&amp;#039;&amp;#039;No items.&amp;#039;&amp;#039;&amp;quot; end&lt;br /&gt;
		content = content:sub(s + 1)&lt;br /&gt;
		local e = content:find(&amp;#039;\n|%-|&amp;#039;)&lt;br /&gt;
		if e then content = content:sub(1, e - 1) end&lt;br /&gt;
	end&lt;br /&gt;
	local out = {}&lt;br /&gt;
	for block in content:gmatch(&amp;#039;{{ItemInfobox(.-)}}&amp;#039;) do&lt;br /&gt;
		out[#out + 1] = &amp;#039;{{ItemInfobox&amp;#039; .. block .. &amp;#039;}}&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	if #out == 0 then return &amp;quot;&amp;#039;&amp;#039;No items.&amp;#039;&amp;#039;&amp;quot; end&lt;br /&gt;
	return frame:preprocess(&amp;#039;&amp;lt;div class=&amp;quot;display-items&amp;quot;&amp;gt;\n&amp;#039; .. table.concat(out, &amp;#039;\n&amp;#039;) .. &amp;#039;\n&amp;lt;/div&amp;gt;&amp;#039;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Willow</name></author>
	</entry>
</feed>