<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.stiles.casa/index.php?action=history&amp;feed=atom&amp;title=Module%3AIcon%2Fdata%2Fdoc</id>
	<title>Module:Icon/data/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.stiles.casa/index.php?action=history&amp;feed=atom&amp;title=Module%3AIcon%2Fdata%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.stiles.casa/index.php?title=Module:Icon/data/doc&amp;action=history"/>
	<updated>2026-05-07T07:15:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://wiki.stiles.casa/index.php?title=Module:Icon/data/doc&amp;diff=5779&amp;oldid=prev</id>
		<title>Maxwells: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.stiles.casa/index.php?title=Module:Icon/data/doc&amp;diff=5779&amp;oldid=prev"/>
		<updated>2022-06-11T21:01:45Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&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 15:01, 11 June 2022&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key wikidb:diff::1.12:old-5778:rev-5779 --&gt;
&lt;/table&gt;</summary>
		<author><name>Maxwells</name></author>
	</entry>
	<entry>
		<id>https://wiki.stiles.casa/index.php?title=Module:Icon/data/doc&amp;diff=5778&amp;oldid=prev</id>
		<title>en&gt;Mr. Stradivarius: document the link field</title>
		<link rel="alternate" type="text/html" href="https://wiki.stiles.casa/index.php?title=Module:Icon/data/doc&amp;diff=5778&amp;oldid=prev"/>
		<updated>2021-08-29T11:10:51Z</updated>

		<summary type="html">&lt;p&gt;document the link field&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Module rating|protected}}&lt;br /&gt;
This module stores icon data for [[Module:Icon]].&lt;br /&gt;
&lt;br /&gt;
== Adding icons ==&lt;br /&gt;
&lt;br /&gt;
To add a new icon, add a table in the following format:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	code = {&lt;br /&gt;
		image = &amp;quot;My image name.xyz&amp;quot;,&lt;br /&gt;
		tooltip = &amp;quot;My tooltip text&amp;quot;,&lt;br /&gt;
		link = true,&lt;br /&gt;
	},&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The code should be in lower case.&lt;br /&gt;
&lt;br /&gt;
=== Fields ===&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;image&amp;lt;/code&amp;gt;: the image to be displayed. This should be without the &amp;lt;code&amp;gt;File:&amp;lt;/code&amp;gt; prefix. So, if you wanted to add [[:File:Featured article star.svg]], you would use {{code|&amp;quot;Featured article star.svg&amp;quot;|lua}} here. If any of the text you add has double quotes in, you will need to escape it with backslashes like this: {{code|&amp;quot;My \&amp;quot;quoted\&amp;quot; image.svg&amp;quot;|lua}}.&lt;br /&gt;
* &amp;lt;code&amp;gt;tooltip&amp;lt;/code&amp;gt;: the tooltip to be displayed when hovering the mouse above the image. This is optional, although it is recommended you include it.&lt;br /&gt;
* &amp;lt;code&amp;gt;link&amp;lt;/code&amp;gt;: if false, the link to the file description page is suppressed. You should only set this to false if the icon image is in the public domain, or is released under a license that does not require attribution (such as [[CC-0]]). For images released under licenses that require attribution such as [[CC-BY-SA]] and the [[GFDL]], you should set this to true to preserve the link to the file description page.&lt;br /&gt;
&lt;br /&gt;
=== Aliases ===&lt;br /&gt;
&lt;br /&gt;
If you want to add aliases for the code, add an &amp;lt;code&amp;gt;aliases&amp;lt;/code&amp;gt; table as follows:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	code = {&lt;br /&gt;
		aliases = {&amp;quot;alias1&amp;quot;, &amp;quot;alias2&amp;quot;},&lt;br /&gt;
		image = &amp;quot;My image name.xyz&amp;quot;,&lt;br /&gt;
		tooltip = &amp;quot;My tooltip text&amp;quot;,&lt;br /&gt;
		link = true,&lt;br /&gt;
	},&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please make sure that any codes and aliases that you add don&amp;#039;t match any existing codes or aliases. If they do, one of them will be overwritten with the other (and it&amp;#039;s not possible to say for certain which will be overwritten with which).&lt;br /&gt;
&lt;br /&gt;
== Removing icons ==&lt;br /&gt;
&lt;br /&gt;
Removing icons is fairly easy. Just remove the relevant entry from the data table. You should not remove the _DEFAULT entry, as [[Module:Icon]] relies on it being there, and removing it will cause script errors.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox | |&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>en&gt;Mr. Stradivarius</name></author>
	</entry>
</feed>