<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AClass%2Fdoc</id>
	<title>Module:Class/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AClass%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Module:Class/doc&amp;action=history"/>
	<updated>2026-11-01T14:27:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://elite.mistflux.co.uk/w/index.php?title=Module:Class/doc&amp;diff=125205&amp;oldid=prev</id>
		<title>Wikipedia&gt;2600 etc at 02:21, 19 October 2024</title>
		<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Module:Class/doc&amp;diff=125205&amp;oldid=prev"/>
		<updated>2024-10-19T02:21:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{high-use}}&lt;br /&gt;
{{cascade-protected template|page=module}}&lt;br /&gt;
{{Lua|Module:Arguments|Module:Class/definition.json}}&lt;br /&gt;
{{TemplateStyles|Module:Class/styles.css}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
This module implements [[Template:Class]], [[Template:Class/icon]] and [[Template:Class/colour]].&lt;br /&gt;
&lt;br /&gt;
==Documentation for [[Module:Class/definition.json]]==&lt;br /&gt;
Following are notes documenting the model for the class definition JSON.&lt;br /&gt;
&lt;br /&gt;
* The top-level JSON object contains a number of objects. Each is either a class definition, or an alias. The keys are &amp;quot;class codes&amp;quot; that can be used as input. The keys containing class definitions are the canonical class codes. Class codes should be lowercase (except the special code &amp;lt;code&amp;gt;DEFAULT&amp;lt;/code&amp;gt;) and canonical class codes are, so far, strictly alphabetic (&amp;lt;code&amp;gt;bplus&amp;lt;/code&amp;gt;, not &amp;lt;code&amp;gt;b+&amp;lt;/code&amp;gt;)&lt;br /&gt;
* An alias should be an object with exactly one property &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;alias&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; that contains the canonical class code string.&lt;br /&gt;
* A class definition can have a number of properties:&lt;br /&gt;
*;&amp;lt;code&amp;gt;categoryRoot&amp;lt;/code&amp;gt;: &amp;#039;&amp;#039;(string)&amp;#039;&amp;#039; The root of a category name for articles of the quality class. For example, the top-level category for featured articles is [[:Category:FA-Class articles]], and subject-level categories might exist at &amp;quot;Category:FA-Class &amp;#039;&amp;#039;subject&amp;#039;&amp;#039; articles&amp;quot;, so its root is &amp;lt;code&amp;gt;FA-Class&amp;lt;/code&amp;gt;.&lt;br /&gt;
*;&amp;lt;code&amp;gt;colour&amp;lt;/code&amp;gt;&lt;br /&gt;
: &amp;#039;&amp;#039;(object)&amp;#039;&amp;#039; An object containing colour-related properties; each value within should be a string that can be used as a CSS colour value, e.g. &amp;lt;code&amp;gt;#6699ff&amp;lt;/code&amp;gt;&lt;br /&gt;
*:;&amp;lt;code&amp;gt;base&amp;lt;/code&amp;gt;: &amp;#039;&amp;#039;(string)&amp;#039;&amp;#039; a colour string reflecting a base background colour&amp;lt;ref group=&amp;quot;model&amp;quot;&amp;gt;This is assumed to be a light-mode colour; it might be desirable to split this into light- and dark-mode properties.&amp;lt;/ref&amp;gt;&lt;br /&gt;
*:;&amp;lt;code&amp;gt;textOnBlack&amp;lt;/code&amp;gt;: &amp;#039;&amp;#039;(string)&amp;#039;&amp;#039; a colour string reflecting a suitable colour to use for text on a black background&lt;br /&gt;
*:;&amp;lt;code&amp;gt;textOnWhite&amp;lt;/code&amp;gt;: &amp;#039;&amp;#039;(string)&amp;#039;&amp;#039; a colour string reflecting a suitable colour to use for text on a white background&lt;br /&gt;
*;&amp;lt;code&amp;gt;icon&amp;lt;/code&amp;gt;&lt;br /&gt;
*: &amp;#039;&amp;#039;(object)&amp;#039;&amp;#039; An object containing icon-related properties:&lt;br /&gt;
*:;&amp;lt;code&amp;gt;file&amp;lt;/code&amp;gt;: &amp;#039;&amp;#039;(string)&amp;#039;&amp;#039; A filename, without &amp;lt;code&amp;gt;File:&amp;lt;/code&amp;gt; prefix, preferably formatted with underscores,&amp;lt;ref group=&amp;quot;model&amp;quot; name=&amp;quot;underscores&amp;quot;/&amp;gt; e.g. &amp;lt;code&amp;gt;Featured_article_star.svg&amp;lt;/code&amp;gt;&lt;br /&gt;
*:;&amp;lt;code&amp;gt;default&amp;lt;/code&amp;gt;: &amp;#039;&amp;#039;(boolean)&amp;#039;&amp;#039; Whether the icon should be displayed by default—usually only high quality ranks display icons by default&lt;br /&gt;
*:;&amp;lt;code&amp;gt;requiresAttribution&amp;lt;/code&amp;gt;: &amp;#039;&amp;#039;(boolean)&amp;#039;&amp;#039; &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; if the &amp;lt;code&amp;gt;file&amp;lt;/code&amp;gt; property refers to a file that is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; public domain or CC0-licensed. When a file &amp;#039;&amp;#039;is&amp;#039;&amp;#039; PD/CC0 and thus this property &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;, we can disable image linking and alt text, which is good for accessibility for purely-decorative images.&lt;br /&gt;
*;&amp;lt;code&amp;gt;labels&amp;lt;/code&amp;gt;&lt;br /&gt;
*: &amp;#039;&amp;#039;(object)&amp;#039;&amp;#039; An object containing label strings. All the label properties are particularly tentative.&lt;br /&gt;
*:;&amp;lt;code&amp;gt;adjective&amp;lt;/code&amp;gt;: &amp;#039;&amp;#039;(string)&amp;#039;&amp;#039; A label string describing an adjective that could be used to describe a page with this class. Prefer lowercase or title case.&amp;lt;ref group=&amp;quot;model&amp;quot; name=&amp;quot;lowerTitle&amp;quot;/&amp;gt; This property is highly tentative.&lt;br /&gt;
*:;&amp;lt;code&amp;gt;full&amp;lt;/code&amp;gt;: &amp;#039;&amp;#039;(string)&amp;#039;&amp;#039; A label string describing a noun phrase that could be used to describe a page with this class. Prefer lowercase or title case.&amp;lt;ref group=&amp;quot;model&amp;quot; name=&amp;quot;lowerTitle&amp;quot;/&amp;gt; This property is highly tentative.&lt;br /&gt;
*:;&amp;lt;code&amp;gt;short&amp;lt;/code&amp;gt;: &amp;#039;&amp;#039;(string)&amp;#039;&amp;#039; A label string describing a short name for the class that can be used in context. This may frequently be the same as the class code, but should usually be capitalized (e.g. &amp;lt;code&amp;gt;Redirect&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;GA&amp;lt;/code&amp;gt;). One particular precedent imported to this property is that class code &amp;lt;code&amp;gt;unassessed&amp;lt;/code&amp;gt; uses &amp;lt;code&amp;gt;???&amp;lt;/code&amp;gt; as its short label. This property is highly tentative.&lt;br /&gt;
*:;&amp;lt;code&amp;gt;tooltip&amp;lt;/code&amp;gt;: &amp;#039;&amp;#039;(string)&amp;#039;&amp;#039; A label string with a tooltip that should be used to describe the class if more details are needed. This property is optional and probably should only be specified if needed.&lt;br /&gt;
*;&amp;lt;code&amp;gt;page&amp;lt;/code&amp;gt;: &amp;#039;&amp;#039;(string)&amp;#039;&amp;#039; The full page name of a wiki page describing the quality class, preferably formatted with spaces,&amp;lt;ref group=&amp;quot;model&amp;quot; name=&amp;quot;spaces&amp;quot;/&amp;gt; e.g. &amp;lt;code&amp;gt;Wikipedia:Featured articles&amp;lt;/code&amp;gt;&lt;br /&gt;
*At the moment, there&amp;#039;s no definition of which properties might be mandatory or optional for class definitions; for now, it&amp;#039;s probably safest to assume that &amp;quot;label&amp;quot; properties are mandatory.&lt;br /&gt;
*Tentatively a special &amp;lt;code&amp;gt;DEFAULT&amp;lt;/code&amp;gt; object, using capitalization to separate it from other keys, defines defaults that can be used. This should either be a complete object (all properties mandatory) or an alias to a complete object. In English Wikipedia&amp;#039;s case this is currently an alias to the &amp;lt;code&amp;gt;unassessed&amp;lt;/code&amp;gt; class definition.&lt;br /&gt;
&lt;br /&gt;
===Object model notes===&lt;br /&gt;
&amp;lt;references group=&amp;quot;model&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;ref group=&amp;quot;model&amp;quot; name=&amp;quot;spaces&amp;quot;&amp;gt;Spaces are probably better for referencing wiki pages because they&amp;#039;re easily used as strings or in wikitext; use in URLs would have to do other transformations anyway.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref group=&amp;quot;model&amp;quot; name=&amp;quot;underscores&amp;quot;&amp;gt;Underscores are probably better for file names because they&amp;#039;re more easily used in URLs, and don&amp;#039;t hurt anything being used in wikitext.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;ref group=&amp;quot;model&amp;quot; name=&amp;quot;lowerTitle&amp;quot;&amp;gt;Lowercase is better for full or generic words, e.g. &amp;quot;featured&amp;quot;, but title case is better for constructed values, e.g. &amp;quot;Start-Class&amp;quot;.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;/references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Module documentation pages]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;2600 etc</name></author>
	</entry>
</feed>