<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.schitzopunk.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AReliability%2Fdoc</id>
	<title>Module:Reliability/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.schitzopunk.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AReliability%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.schitzopunk.com/index.php?title=Module:Reliability/doc&amp;action=history"/>
	<updated>2026-11-03T16:30:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.schitzopunk.com/index.php?title=Module:Reliability/doc&amp;diff=288&amp;oldid=prev</id>
		<title>Gershon: Documentation for the only executable code here</title>
		<link rel="alternate" type="text/html" href="https://wiki.schitzopunk.com/index.php?title=Module:Reliability/doc&amp;diff=288&amp;oldid=prev"/>
		<updated>2026-09-05T23:01:21Z</updated>

		<summary type="html">&lt;p&gt;Documentation for the only executable code here&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Documentation for [[Module:Reliability]], which is the only executable code on this wiki and the single source of truth for the reliability tags.&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
&lt;br /&gt;
The module holds one table of tags. Each entry carries a label, a colour, the meaning shown on hover, and the tracking category the tag files a page into. Two functions read that table:&lt;br /&gt;
&lt;br /&gt;
; &amp;lt;code&amp;gt;p.tag&amp;lt;/code&amp;gt; : Called by {{tl|R}}. Renders one tag as an inline chip and, in the main namespace only, adds the tracking category.&lt;br /&gt;
; &amp;lt;code&amp;gt;p.legend&amp;lt;/code&amp;gt; : Called by {{tl|Legend}}. Renders the whole table as the legend shown on the [[Main Page]] and in [[Help:Reading this wiki]].&lt;br /&gt;
&lt;br /&gt;
Both read the same table, which is the point: &amp;#039;&amp;#039;&amp;#039;the legend cannot fall out of step with the tags in use.&amp;#039;&amp;#039;&amp;#039; Add a tag to the module and it appears in the legend by itself.&lt;br /&gt;
&lt;br /&gt;
== Adding a tag ==&lt;br /&gt;
&lt;br /&gt;
Add an entry to &amp;lt;code&amp;gt;tags&amp;lt;/code&amp;gt; and its key to &amp;lt;code&amp;gt;order&amp;lt;/code&amp;gt;. The order is the order of the legend, and it is not alphabetical &amp;amp;mdash; it runs from what one person will swear to down through what nobody will stand behind. Put a new tag where it belongs on that scale.&lt;br /&gt;
&lt;br /&gt;
Then create the tracking category named in the entry, and give it a description, and file it under [[:Category:Reliability tags]].&lt;br /&gt;
&lt;br /&gt;
Aliases go in &amp;lt;code&amp;gt;aliases&amp;lt;/code&amp;gt;. Anything unrecognised falls back to &amp;lt;code&amp;gt;unverified&amp;lt;/code&amp;gt;, which is also the default when the first parameter is empty or missing.&lt;br /&gt;
&lt;br /&gt;
== Notes for anyone editing it ==&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;TemplateStyles is not installed on this wiki.&amp;#039;&amp;#039;&amp;#039; All styling is inline, deliberately. Do not extract it into a stylesheet that does not exist.&lt;br /&gt;
* Colours are dark with light text so they survive whatever skin a reader is using. They are also required to be visually distinct from each other &amp;amp;mdash; with one exception, noted in the source: &amp;lt;code&amp;gt;astroturf&amp;lt;/code&amp;gt; is deliberately close to &amp;lt;code&amp;gt;firsthand&amp;lt;/code&amp;gt;, because that is what astroturf is built to resemble.&lt;br /&gt;
* Categories are added in the main namespace only. A template or help page demonstrating a tag should not appear as though it were making a claim.&lt;br /&gt;
* &amp;lt;code&amp;gt;p.tag&amp;lt;/code&amp;gt; accepts being called either through {{tl|R}} or directly via &amp;lt;code&amp;gt;#invoke&amp;lt;/code&amp;gt;, and does not assume a parent frame exists.&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;br /&gt;
&lt;br /&gt;
The module is plain Lua 5.1 apart from its use of &amp;lt;code&amp;gt;mw.text&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;mw.ustring&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mw.title&amp;lt;/code&amp;gt;. It can be exercised outside the wiki by stubbing those three, which is how the current version was checked before it was imported &amp;amp;mdash; 52 assertions covering tag resolution, aliases, defaults, namespace gating, attribute escaping, the direct-invoke path, and that every chip colour is still distinct.&lt;br /&gt;
&lt;br /&gt;
If you change the module, run something equivalent. A broken module does not fail quietly here: it puts a script error on every page that carries a tag, which is most of them.&lt;br /&gt;
&lt;br /&gt;
[[Category:Wiki apparatus]]&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>Gershon</name></author>
	</entry>
</feed>