<?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%2Fdoc</id>
	<title>Module:Equipment/doc - 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%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.telosrealms.com/index.php?title=Module:Equipment/doc&amp;action=history"/>
	<updated>2026-06-22T07:54:00Z</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/doc&amp;diff=14967&amp;oldid=prev</id>
		<title>Willow: the mass documenting</title>
		<link rel="alternate" type="text/html" href="https://wiki.telosrealms.com/index.php?title=Module:Equipment/doc&amp;diff=14967&amp;oldid=prev"/>
		<updated>2026-06-20T11:54:57Z</updated>

		<summary type="html">&lt;p&gt;the mass documenting&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Module:Equipment re-renders every {{tl|ItemInfobox}} block from a section of a category template, so class pages and listing pages stay automatically in sync with the item templates.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
The wiki keeps each item&amp;#039;s infobox once, inside a category template such as &amp;lt;code&amp;gt;Template:Swords/Weapons&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;Template:Untiered/Heavy/Armours&amp;lt;/code&amp;gt;. Those templates are split into named sections (e.g. &amp;lt;code&amp;gt;Untiered&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Helmets&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Chestplates&amp;lt;/code&amp;gt;) separated by &amp;lt;code&amp;gt;|-|&amp;lt;/code&amp;gt; table-row markers.&lt;br /&gt;
&lt;br /&gt;
This module lets another page pull just one section of one of those templates and display all the {{tl|ItemInfobox}} blocks it contains. The main use is on class pages (Knight, Assassin, Huntress, Arcanist, Necromancer, Samurai, etc.), which list the gear a class can use by pointing at the relevant section of each category template. Because the items are read live from the source template, the class page never needs to be edited when an item is added or changed — it always mirrors the template.&lt;br /&gt;
&lt;br /&gt;
== Functions / entry points ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function (#invoke) !! What it does !! Called by&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;p.section&amp;lt;/code&amp;gt; || Loads &amp;lt;code&amp;gt;Template:&amp;lt;arg1&amp;gt;&amp;lt;/code&amp;gt;, optionally narrows it to the section named by &amp;lt;code&amp;gt;arg2&amp;lt;/code&amp;gt;, finds every &amp;lt;code&amp;gt;{{ItemInfobox...}}&amp;lt;/code&amp;gt; block in that range, wraps them in a &amp;lt;code&amp;gt;&amp;lt;div class=&amp;quot;display-items&amp;quot;&amp;gt;&amp;lt;/code&amp;gt;, and renders them. Returns &amp;lt;code&amp;gt;&amp;#039;&amp;#039;No items.&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; if the template/section is missing or empty. || Class pages, e.g. {{tl|Knight}}, {{tl|Assassin}}, {{tl|Huntress}}, {{tl|Arcanist}}, {{tl|Necromancer}}, {{tl|Samurai}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== How it&amp;#039;s used ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;{{#invoke:Equipment|section|&amp;lt;TemplateName&amp;gt;|&amp;lt;SectionName&amp;gt;}}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Real examples from class pages:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{#invoke:Equipment|section|Swords/Weapons|Untiered}}&lt;br /&gt;
{{#invoke:Equipment|section|Untiered/Heavy/Armours|Helmets}}&lt;br /&gt;
{{#invoke:Equipment|section|Cloaks/Abilities|Untiered}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Argument 1&amp;#039;&amp;#039;&amp;#039; is the category template title without the &amp;lt;code&amp;gt;Template:&amp;lt;/code&amp;gt; prefix (the module adds it). Slashes are kept as-is, so &amp;lt;code&amp;gt;Swords/Weapons&amp;lt;/code&amp;gt; means &amp;lt;code&amp;gt;Template:Swords/Weapons&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Argument 2&amp;#039;&amp;#039;&amp;#039; is the section name to extract. If omitted (or empty) the whole template is scanned. The section is delimited by a line matching &amp;lt;code&amp;gt;&amp;lt;Section&amp;gt; =&amp;lt;/code&amp;gt; at the start and the next &amp;lt;code&amp;gt;|-|&amp;lt;/code&amp;gt; row marker.&lt;br /&gt;
&lt;br /&gt;
Editors normally just place these invoke lines on a class/listing page (or inside a tabber). The actual item data is edited in the category templates, not here.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
* Section extraction is purely text-based: it looks for a line beginning with the section name followed by &amp;lt;code&amp;gt;=&amp;lt;/code&amp;gt;, then cuts off at the next &amp;lt;code&amp;gt;\n|-|&amp;lt;/code&amp;gt; marker. The section names therefore must match the labels used in the category template&amp;#039;s tabber rows.&lt;br /&gt;
* It collects content by matching &amp;lt;code&amp;gt;{{ItemInfobox(.-)}}&amp;lt;/code&amp;gt;, so only {{tl|ItemInfobox}} blocks are picked up. Each block is then expanded normally, so it renders through {{ml|Infobox}} like any other item infobox.&lt;br /&gt;
* Output is wrapped in &amp;lt;code&amp;gt;&amp;lt;div class=&amp;quot;display-items&amp;quot;&amp;gt;&amp;lt;/code&amp;gt; for the grid styling used on listing pages.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Related modules:&amp;#039;&amp;#039;&amp;#039; {{ml|Shinies}} (same pattern, but only emits the Shiny version of untiered items), {{ml|Reskins}} (lists/renders reskin variants), and {{ml|Infobox}} (the engine that actually renders each block).&lt;/div&gt;</summary>
		<author><name>Willow</name></author>
	</entry>
</feed>