<?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%3AShinies%2Fdoc</id>
	<title>Module:Shinies/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%3AShinies%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.telosrealms.com/index.php?title=Module:Shinies/doc&amp;action=history"/>
	<updated>2026-06-22T08:37:34Z</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:Shinies/doc&amp;diff=14971&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:Shinies/doc&amp;diff=14971&amp;oldid=prev"/>
		<updated>2026-06-20T11:54:59Z</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:Shinies pulls the {{tl|ItemInfobox}} blocks from a category template and re-renders only the items that have a &amp;quot;Shiny&amp;quot; sprite, swapping in the Shiny image so a page can show a gallery of shiny variants.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
Some untiered items have a rarer &amp;quot;Shiny&amp;quot; version. The shiny version isn&amp;#039;t stored as a separate infobox; instead its image is the normal item image with a &amp;lt;code&amp;gt;Shiny&amp;lt;/code&amp;gt; prefix (e.g. &amp;lt;code&amp;gt;File:Ut-Onyxblade.png&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;File:ShinyUt-Onyxblade.png&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This module scans a category template (like &amp;lt;code&amp;gt;Template:Swords/Weapons&amp;lt;/code&amp;gt;), finds every {{tl|ItemInfobox}} whose image is an untiered &amp;lt;code&amp;gt;Ut-...png&amp;lt;/code&amp;gt; file &amp;#039;&amp;#039;&amp;#039;and&amp;#039;&amp;#039;&amp;#039; for which a matching &amp;lt;code&amp;gt;File:ShinyUt-...png&amp;lt;/code&amp;gt; exists, and re-renders just those items with the shiny image substituted. The result is a gallery of all shiny variants for that category, used on the Shinies overview page. Items without a shiny file are skipped.&lt;br /&gt;
&lt;br /&gt;
It is the same &amp;quot;read the source template live&amp;quot; pattern as {{ml|Equipment}}, so the Shinies page stays in sync with the item templates automatically.&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.fromTemplate&amp;lt;/code&amp;gt; || Loads &amp;lt;code&amp;gt;Template:&amp;lt;arg1&amp;gt;&amp;lt;/code&amp;gt; (optionally narrowed to section &amp;lt;code&amp;gt;arg2&amp;lt;/code&amp;gt;), finds each {{tl|ItemInfobox}} with a &amp;lt;code&amp;gt;Ut-...png&amp;lt;/code&amp;gt; image that has a corresponding &amp;lt;code&amp;gt;File:ShinyUt-...png&amp;lt;/code&amp;gt;, rewrites the image to the Shiny file, wraps the results in &amp;lt;code&amp;gt;&amp;lt;div class=&amp;quot;display-items shiny-frame&amp;quot;&amp;gt;&amp;lt;/code&amp;gt; and renders them. Returns &amp;lt;code&amp;gt;&amp;#039;&amp;#039;No shinies yet.&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; if none qualify. || The {{tl|Shinies}} listing page&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:Shinies|fromTemplate|&amp;lt;TemplateName&amp;gt;|&amp;lt;SectionName&amp;gt;}}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Real examples (from the Shinies listing template/page):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Swords={{#invoke:Shinies|fromTemplate|Swords/Weapons}}&lt;br /&gt;
Katanas={{#invoke:Shinies|fromTemplate|Katanas/Weapons}}&lt;br /&gt;
Emblems={{#invoke:Shinies|fromTemplate|Emblems/Abilities}}&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; — category template title without &amp;lt;code&amp;gt;Template:&amp;lt;/code&amp;gt; (e.g. &amp;lt;code&amp;gt;Swords/Weapons&amp;lt;/code&amp;gt;).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Argument 2&amp;#039;&amp;#039;&amp;#039; (optional) — section name to narrow to, same delimiting rules as {{ml|Equipment}} (line starting &amp;lt;code&amp;gt;&amp;lt;Section&amp;gt; =&amp;lt;/code&amp;gt;, cut at the next &amp;lt;code&amp;gt;|-|&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
Editors add the items themselves to the category templates; the Shinies page just invokes this module per category. You do not maintain a separate shiny list — uploading a correctly named &amp;lt;code&amp;gt;ShinyUt-...png&amp;lt;/code&amp;gt; file is what makes an item appear here.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;File-naming scheme is load-bearing.&amp;#039;&amp;#039;&amp;#039; Detection relies on the untiered-item naming convention: the base image must be &amp;lt;code&amp;gt;Ut-&amp;lt;Name&amp;gt;.png&amp;lt;/code&amp;gt;, and the shiny must be the same name prefixed with &amp;lt;code&amp;gt;Shiny&amp;lt;/code&amp;gt;, i.e. &amp;lt;code&amp;gt;ShinyUt-&amp;lt;Name&amp;gt;.png&amp;lt;/code&amp;gt;. The image regex specifically matches &amp;lt;code&amp;gt;Images = Ut-...png&amp;lt;/code&amp;gt; and rewrites only the first occurrence in the block.&lt;br /&gt;
* Only items with an existing shiny file are emitted; everything else in the template is silently ignored.&lt;br /&gt;
* Output carries the extra &amp;lt;code&amp;gt;shiny-frame&amp;lt;/code&amp;gt; CSS class (on top of &amp;lt;code&amp;gt;display-items&amp;lt;/code&amp;gt;) for the shiny gallery styling.&lt;br /&gt;
* {{ml|Infobox}} itself also auto-adds a Shiny tab to a single-image untiered infobox (same &amp;lt;code&amp;gt;ShinyUt-&amp;lt;/code&amp;gt; rule). This module is the bulk/gallery counterpart: it lists shinies across a whole category rather than per item.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Related:&amp;#039;&amp;#039;&amp;#039; {{ml|Equipment}} (renders all items in a section), {{ml|Infobox}} (the rendering engine and the per-infobox Shiny tab), {{tl|ItemInfobox}}.&lt;/div&gt;</summary>
		<author><name>Willow</name></author>
	</entry>
</feed>