<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://cherry-pi.tailb1a250.ts.net/index.php?action=history&amp;feed=atom&amp;title=Module%3ADependencies%2Fdoc</id>
	<title>Module:Dependencies/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://cherry-pi.tailb1a250.ts.net/index.php?action=history&amp;feed=atom&amp;title=Module%3ADependencies%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://cherry-pi.tailb1a250.ts.net/index.php?title=Module:Dependencies/doc&amp;action=history"/>
	<updated>2026-11-13T05:29:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://cherry-pi.tailb1a250.ts.net/index.php?title=Module:Dependencies/doc&amp;diff=616&amp;oldid=prev</id>
		<title>Gravy: 1 revision imported from :starcitizen:Module:Dependencies/doc</title>
		<link rel="alternate" type="text/html" href="https://cherry-pi.tailb1a250.ts.net/index.php?title=Module:Dependencies/doc&amp;diff=616&amp;oldid=prev"/>
		<updated>2026-11-12T07:47:24Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported from &lt;a href=&quot;https://starcitizen.tools/Module:Dependencies/doc&quot; class=&quot;extiw&quot; title=&quot;starcitizen:Module:Dependencies/doc&quot;&gt;starcitizen:Module:Dependencies/doc&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:47, 12 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key paracosm:diff:1.41:old-615:rev-616 --&gt;
&lt;/table&gt;</summary>
		<author><name>Gravy</name></author>
	</entry>
	<entry>
		<id>https://cherry-pi.tailb1a250.ts.net/index.php?title=Module:Dependencies/doc&amp;diff=615&amp;oldid=prev</id>
		<title>starcitizen&gt;Alistar Bot: Sync from Git (becda4f): draw SVG thumbnails as silhouettes (via update-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://cherry-pi.tailb1a250.ts.net/index.php?title=Module:Dependencies/doc&amp;diff=615&amp;oldid=prev"/>
		<updated>2026-10-08T16:49:54Z</updated>

		<summary type="html">&lt;p&gt;Sync from Git (becda4f): draw SVG thumbnails as silhouettes (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{documentation|git=true}}&lt;br /&gt;
&lt;br /&gt;
The folded Technical details panel on module and template pages: which pages use the page, what it uses, and the functions a module defines.&lt;br /&gt;
&lt;br /&gt;
Module:Documentation shows it on every documented module and template, and [[MediaWiki:Scribunto-doc-page-does-not-exist]] on a module with no &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;/doc&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== For module editors ==&lt;br /&gt;
&lt;br /&gt;
=== API ===&lt;br /&gt;
&lt;br /&gt;
Each page&amp;#039;s row lives in the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;dependencies&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; table of [https://www.mediawiki.org/wiki/Extension:Bucket Extension:Bucket], schema &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;Bucket:Dependencies&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, generated by &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;mise run bucket:schemas&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; from &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;properties.json&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, registered in &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;Module:BucketQuery/manifests.json&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;panel(options) → string&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;: the panel followed by the page&amp;#039;s categories, or the categories alone when the panel would be empty. Writes the page&amp;#039;s row when the render is the page itself.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Field&lt;br /&gt;
! Type&lt;br /&gt;
! Default&lt;br /&gt;
! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;page&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| the current page&lt;br /&gt;
| The page to describe. A &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;/doc&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; page describes the page it documents.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;addCategories&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
| boolean or string&lt;br /&gt;
| true, except on a &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;/doc&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; render&lt;br /&gt;
| Whether to add the categories below.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;sources&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
| list of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{ label, text }&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
| none&lt;br /&gt;
| A Source row above the other rows, one line per entry&amp;#039;s &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;text&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; (wikitext), with each &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;label&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; (plain text) leading the folded header&amp;#039;s facts. Module:Documentation passes the page&amp;#039;s wiki-tools and Wikipedia origins.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;main(frame)&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;panel()&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; for the current page, as &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Dependencies|main}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
* With categories on, a template with at least one invoke joins &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Category:Lua-based templates]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, a module that requires &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;strict&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; joins &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Category:Strict mode modules]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, and a module nothing invokes, requires, or loads joins &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Category:Unused modules]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
* The functions come from [[Module:Module toc]].&lt;br /&gt;
* Uses lists, under Files, the image files the page names: a module string that is a whole file name, a template&amp;#039;s &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[File:…]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or a parameter value that is a whole file name, and media URLs (&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://media.starcitizen.tools/a/ab/&amp;lt;File&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;) in either one or in the page&amp;#039;s own &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;/styles.css&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; when the page loads it. Rendered on the page itself, each file is a thumbnail in a 20px box, which records the page under the file&amp;#039;s File usage; the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;/doc&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and sandbox renders show the name alone. Files are not stored in Bucket.&lt;br /&gt;
&lt;br /&gt;
=== Gotchas ===&lt;br /&gt;
&lt;br /&gt;
* The folded header sits inside &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;summary&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, so it holds plain text only: a link there would be followed instead of opening the panel.&lt;br /&gt;
* A page writes its row only while rendering itself: never from its &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;/doc&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, or a title containing &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;/sandbox&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;/testcases&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, or starting with &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;Sandbox/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, in either namespace. Such a page is never flagged unused. A module&amp;#039;s Used by row reads other pages&amp;#039; rows when the module&amp;#039;s own page renders, so a new dependent appears after that page is next re-parsed.&lt;br /&gt;
* Only literal module names are stored. A dynamic &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;require(&amp;#039;Module:X/&amp;#039; .. name)&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; is shown as &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;Module:X/…&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and stored nowhere.&lt;br /&gt;
* A template that never shows &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Documentation}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; writes no row, so the modules it invokes do not list it; a module whose &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;/doc&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; never shows it writes no row either.&lt;br /&gt;
* Stylesheet pages show no panel, so a stylesheet&amp;#039;s users are listed on the page that owns it: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;Module:Icon&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; lists who loads &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;Module:Icon/styles.css&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; under Styles used by. Only a &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;/styles.css&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; subpage has an owner. Loading a module&amp;#039;s stylesheet does not use its code: a module whose only users load its stylesheet is still unused.&lt;br /&gt;
* When the Bucket lookup fails, a module&amp;#039;s Used by row says the list is unavailable, and the module is not flagged unused.&lt;br /&gt;
* A file drawn as a CSS mask, through &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{filepath:}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or a stylesheet URL, records no use on the pages that show it. The Files thumbnail is the only record, made against the page whose source names the file, and it keeps the file off Special:UnusedFiles.&lt;br /&gt;
* A module&amp;#039;s file name built while the page runs shows as a pattern with no thumbnail, such as &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;Sc-icon-brand-….svg&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, when string literals are joined with names, calls or indexes, or fill a &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;string.format&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; pattern. A pattern with nothing literal but the extension is dropped, and a name built any other way, or in a template from a parameter, is not seen.&lt;br /&gt;
* A file chosen from data (API images, Bucket values) is not seen either. The page that draws it records it only when it draws a &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[File:]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;; drawn as a mask, nothing records it.&lt;br /&gt;
* Any string that is a whole file name counts, even a sentence that happens to end in one.&lt;br /&gt;
* A media URL is checked against its name. A path that is not the md5 of the name is flagged, and so is a file that has moved: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[File:]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; follows the redirect, so the thumbnail still shows, but the URL no longer works. The moved check is one expensive lookup per file named by a URL.&lt;br /&gt;
* A missing file shows as a red link, and MediaWiki adds the page to its hidden &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;Category:Pages with broken file links&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
* An SVG thumbnail is a silhouette in the text colour, the way the wiki draws most icons, so a colour logo shows without its colours. A raster thumbnail keeps its own colours.&lt;/div&gt;</summary>
		<author><name>starcitizen&gt;Alistar Bot</name></author>
	</entry>
</feed>